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