aboutsummaryrefslogtreecommitdiffstats
path: root/openssl.c
diff options
context:
space:
mode:
authorLibravatarLibravatar William Ahern <william@server.local> 2012-10-09 14:59:12 -0700
committerLibravatarLibravatar William Ahern <william@server.local> 2012-10-09 14:59:12 -0700
commit59a5e0593bb4611e97dafa685c833153031e891b (patch)
treef2b51a7bdc4b9ed483cba07d230e524cd189dce0 /openssl.c
parent1d485825e76be03576fe57d73f4c9b27f0b62af5 (diff)
downloadluaossl-59a5e0593bb4611e97dafa685c833153031e891b.tar.gz
luaossl-59a5e0593bb4611e97dafa685c833153031e891b.tar.bz2
luaossl-59a5e0593bb4611e97dafa685c833153031e891b.zip
-n
add ipairs metamethod to X.509 chain object
Diffstat (limited to 'openssl.c')
-rw-r--r--openssl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openssl.c b/openssl.c
index fdff179..e6f6cc9 100644
--- a/openssl.c
+++ b/openssl.c
@@ -2665,9 +2665,10 @@ static const luaL_Reg xl_methods[] = {
};
static const luaL_Reg xl_metatable[] = {
- { "__pairs", &xl__pairs },
- { "__gc", &xl__gc },
- { NULL, NULL },
+ { "__pairs", &xl__pairs },
+ { "__ipairs", &xl__pairs },
+ { "__gc", &xl__gc },
+ { NULL, NULL },
};
static const luaL_Reg xl_globals[] = {