From 65248290ed3a412e9ce0caa7204b1a42fc9fe192 Mon Sep 17 00:00:00 2001
From: daurnimator <quae@daurnimator.com>
Date: Fri, 18 Dec 2015 22:37:58 +1100
Subject: bignum: exposing existing math operators as methods

---
 src/openssl.c | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src')

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 },
 };
-- 
cgit v1.2.3-55-g6feb