aboutsummaryrefslogtreecommitdiffstats
path: root/openssl.x509.altname.lua
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 /openssl.x509.altname.lua
parent048e5f3b22e512ed4b4273306511fea3f1c29161 (diff)
downloadluaossl-a9d25b6567fa1fb4bba8642b356089483768096c.tar.gz
luaossl-a9d25b6567fa1fb4bba8642b356089483768096c.tar.bz2
luaossl-a9d25b6567fa1fb4bba8642b356089483768096c.zip
-n
add lua code wrappers
Diffstat (limited to 'openssl.x509.altname.lua')
-rw-r--r--openssl.x509.altname.lua13
1 files changed, 13 insertions, 0 deletions
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