aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2012-10-09 18:15:47 -0700
committerLibravatarLibravatar William Ahern <william@server.local> 2012-10-09 18:15:47 -0700
commita9d25b6567fa1fb4bba8642b356089483768096c (patch)
tree8bab13e97e2a7f25cb9b1229cfc5b003739007a4
parent048e5f3b22e512ed4b4273306511fea3f1c29161 (diff)
downloadluaossl-a9d25b6567fa1fb4bba8642b356089483768096c.tar.gz
luaossl-a9d25b6567fa1fb4bba8642b356089483768096c.tar.bz2
luaossl-a9d25b6567fa1fb4bba8642b356089483768096c.zip
-n
add lua code wrappers
-rw-r--r--openssl.bignum.lua3
-rw-r--r--openssl.pubkey.lua4
-rw-r--r--openssl.x509.altname.lua13
-rw-r--r--openssl.x509.chain.lua3
-rw-r--r--openssl.x509.lua3
-rw-r--r--openssl.x509.name.lua13
-rw-r--r--openssl.x509.store.lua3
7 files changed, 42 insertions, 0 deletions
diff --git a/openssl.bignum.lua b/openssl.bignum.lua
new file mode 100644
index 0000000..3090a68
--- /dev/null
+++ b/openssl.bignum.lua
@@ -0,0 +1,3 @@
+local bignum = require"_openssl.bignum"
+
+return bignum
diff --git a/openssl.pubkey.lua b/openssl.pubkey.lua
new file mode 100644
index 0000000..6dc5614
--- /dev/null
+++ b/openssl.pubkey.lua
@@ -0,0 +1,4 @@
+local pubkey = require"_openssl.pubkey"
+
+return pubkey
+
diff --git a/openssl.x509.altname.lua b/openssl.x509.altname.lua
new file mode 100644
index 0000000..66f16e7
--- /dev/null
+++ b/openssl.x509.altname.lua
@@ -0,0 +1,13 @@
+local altname = require"_openssl.x509.altname"
+
+altname.interpose("__tostring", function (self)
+ local t = { }
+
+ for k, v in pairs(self) do
+ t[#t + 1] = k .. ":" .. v
+ end
+
+ return table.concat(t, ", ")
+end)
+
+return altname
diff --git a/openssl.x509.chain.lua b/openssl.x509.chain.lua
new file mode 100644
index 0000000..e89dec8
--- /dev/null
+++ b/openssl.x509.chain.lua
@@ -0,0 +1,3 @@
+local chain = require"_openssl.x509.chain"
+
+return chain
diff --git a/openssl.x509.lua b/openssl.x509.lua
new file mode 100644
index 0000000..2d469cf
--- /dev/null
+++ b/openssl.x509.lua
@@ -0,0 +1,3 @@
+local x509 = require"_openssl.x509.cert"
+
+return x500
diff --git a/openssl.x509.name.lua b/openssl.x509.name.lua
new file mode 100644
index 0000000..a531502
--- /dev/null
+++ b/openssl.x509.name.lua
@@ -0,0 +1,13 @@
+local name = require"_openssl.x509.name"
+
+name.interpose("__tostring", function (self)
+ local t = { }
+
+ for k, v in pairs(self) do
+ t[#t + 1] = k .. "=" .. v
+ end
+
+ return table.concat(t, ", ")
+end)
+
+return name
diff --git a/openssl.x509.store.lua b/openssl.x509.store.lua
new file mode 100644
index 0000000..a717870
--- /dev/null
+++ b/openssl.x509.store.lua
@@ -0,0 +1,3 @@
+local store = require"_openssl.x509.store"
+
+return store