diff options
author | daurnimator <quae@daurnimator.com> | 2015-12-18 22:37:58 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2015-12-21 19:31:51 +1100 |
commit | 65248290ed3a412e9ce0caa7204b1a42fc9fe192 (patch) | |
tree | b797e8f02e9fd58364b64f7ba10935de5992249f | |
parent | e3e33aee0b6ae6454ef2fcb2826124d9d575041f (diff) | |
download | luaossl-65248290ed3a412e9ce0caa7204b1a42fc9fe192.tar.gz luaossl-65248290ed3a412e9ce0caa7204b1a42fc9fe192.tar.bz2 luaossl-65248290ed3a412e9ce0caa7204b1a42fc9fe192.zip |
bignum: exposing existing math operators as methods
-rw-r--r-- | src/openssl.c | 6 |
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: | |||
1941 | 1941 | ||
1942 | 1942 | ||
1943 | static const luaL_Reg bn_methods[] = { | 1943 | static const luaL_Reg bn_methods[] = { |
1944 | { "add", &bn__add }, | ||
1945 | { "sub", &bn__sub }, | ||
1946 | { "mul", &bn__mul }, | ||
1947 | { "div", &bn__div }, | ||
1948 | { "mod", &bn__mod }, | ||
1949 | { "pow", &bn__pow }, | ||
1944 | { "tobin", &bn_tobin }, | 1950 | { "tobin", &bn_tobin }, |
1945 | { NULL, NULL }, | 1951 | { NULL, NULL }, |
1946 | }; | 1952 | }; |