From e4cdcc5eb020b937182b7a8660c644485a188531 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 13 Aug 2018 15:11:26 +1000 Subject: add name:each() as an alias for the __pairs metamethod __pairs is not respected in lua 5.1 --- src/openssl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 827aa7d..4ffad71 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -5121,6 +5121,7 @@ static int xn__tostring(lua_State *L) { static const auxL_Reg xn_methods[] = { { "add", &xn_add }, { "all", &xn_all }, + { "each", &xn__pairs }, { NULL, NULL }, }; -- cgit v1.2.3-59-g8ed1b