From 436209e6400764817be4126b35712ba07abe3870 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 3 Jan 2016 11:20:53 +1100 Subject: bignum: Use openssl function names --- src/openssl.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/openssl.c b/src/openssl.c index 499bcce..991cba5 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -2000,18 +2000,18 @@ sslerr: static const luaL_Reg bn_methods[] = { - { "add", &bn__add }, - { "sub", &bn__sub }, - { "mul", &bn__mul }, - { "idiv", &bn__idiv }, - { "mod", &bn__mod }, - { "pow", &bn__pow }, - { "shl", &bn__shl }, - { "shr", &bn__shr }, - { "tobin", &bn_tobin }, - { "todec", &bn_todec }, - { "tohex", &bn_tohex }, - { NULL, NULL }, + { "add", &bn__add }, + { "sub", &bn__sub }, + { "mul", &bn__mul }, + { "idiv", &bn__idiv }, + { "mod", &bn__mod }, + { "exp", &bn__pow }, + { "lshift", &bn__shl }, + { "rshift", &bn__shr }, + { "tobin", &bn_tobin }, + { "todec", &bn_todec }, + { "tohex", &bn_tohex }, + { NULL, NULL }, }; static const luaL_Reg bn_metatable[] = { -- cgit v1.2.3-59-g8ed1b