aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2015-12-18 22:37:58 +1100
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2015-12-21 19:31:51 +1100
commit65248290ed3a412e9ce0caa7204b1a42fc9fe192 (patch)
treeb797e8f02e9fd58364b64f7ba10935de5992249f /src
parente3e33aee0b6ae6454ef2fcb2826124d9d575041f (diff)
downloadluaossl-65248290ed3a412e9ce0caa7204b1a42fc9fe192.tar.gz
luaossl-65248290ed3a412e9ce0caa7204b1a42fc9fe192.tar.bz2
luaossl-65248290ed3a412e9ce0caa7204b1a42fc9fe192.zip
bignum: exposing existing math operators as methods
Diffstat (limited to 'src')
-rw-r--r--src/openssl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openssl.c b/src/openssl.c
index afd1f61..304ff9a 100644
--- a/src/openssl.c
+++ b/src/openssl.c
@@ -1941,6 +1941,12 @@ sslerr:
static const luaL_Reg bn_methods[] = {
+ { "add", &bn__add },
+ { "sub", &bn__sub },
+ { "mul", &bn__mul },
+ { "div", &bn__div },
+ { "mod", &bn__mod },
+ { "pow", &bn__pow },
{ "tobin", &bn_tobin },
{ NULL, NULL },
};