summaryrefslogtreecommitdiff
path: root/openssl.x509.altname.lua
diff options
context:
space:
mode:
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 @@
1local altname = require"_openssl.x509.altname"
2
3altname.interpose("__tostring", function (self)
4 local t = { }
5
6 for k, v in pairs(self) do
7 t[#t + 1] = k .. ":" .. v
8 end
9
10 return table.concat(t, ", ")
11end)
12
13return altname