aboutsummaryrefslogtreecommitdiffstats
path: root/src/openssl.x509.altname.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/openssl.x509.altname.lua')
-rw-r--r--src/openssl.x509.altname.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/openssl.x509.altname.lua b/src/openssl.x509.altname.lua
new file mode 100644
index 0000000..e8222a0
--- /dev/null
+++ b/src/openssl.x509.altname.lua
@@ -0,0 +1,14 @@
+local altname = require"_openssl.x509.altname"
+local auxlib = require"openssl.auxlib"
+
+altname.interpose("__tostring", function (self)
+ local t = { }
+
+ for k, v in auxlib.pairs(self) do
+ t[#t + 1] = k .. ":" .. v
+ end
+
+ return table.concat(t, ", ")
+end)
+
+return altname