From a63e737bd12e466937223c848387d0b704f02e31 Mon Sep 17 00:00:00 2001 From: William Ahern Date: Fri, 24 Jun 2016 19:00:25 -0700 Subject: refactor and add ashb's regression test for #53 --- src/openssl.x509.altname.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/openssl.x509.altname.lua') diff --git a/src/openssl.x509.altname.lua b/src/openssl.x509.altname.lua index 66f16e7..e8222a0 100644 --- a/src/openssl.x509.altname.lua +++ b/src/openssl.x509.altname.lua @@ -1,9 +1,10 @@ local altname = require"_openssl.x509.altname" +local auxlib = require"openssl.auxlib" altname.interpose("__tostring", function (self) local t = { } - for k, v in pairs(self) do + for k, v in auxlib.pairs(self) do t[#t + 1] = k .. ":" .. v end -- cgit v1.2.3-59-g8ed1b