diff options
Diffstat (limited to 'src/openssl.x509.name.lua')
-rw-r--r-- | src/openssl.x509.name.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/openssl.x509.name.lua b/src/openssl.x509.name.lua new file mode 100644 index 0000000..f33339a --- /dev/null +++ b/src/openssl.x509.name.lua @@ -0,0 +1,14 @@ +local name = require"_openssl.x509.name" +local auxlib = require"openssl.auxlib" + +name.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 name |