From 59a5e0593bb4611e97dafa685c833153031e891b Mon Sep 17 00:00:00 2001 From: William Ahern Date: Tue, 9 Oct 2012 14:59:12 -0700 Subject: -n add ipairs metamethod to X.509 chain object --- openssl.c | 7 ++++--- 1 file 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[] = { -- cgit v1.2.3-59-g8ed1b