summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_bn.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/openssl/ossl_bn.h')
-rw-r--r--ext/openssl/ossl_bn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/openssl/ossl_bn.h b/ext/openssl/ossl_bn.h
index a19ba19487..1cc041fc22 100644
--- a/ext/openssl/ossl_bn.h
+++ b/ext/openssl/ossl_bn.h
@@ -13,7 +13,8 @@
extern VALUE cBN;
extern VALUE eBNError;
-extern BN_CTX *ossl_bn_ctx;
+BN_CTX *ossl_bn_ctx_get(void);
+#define ossl_bn_ctx ossl_bn_ctx_get()
#define GetBNPtr(obj) ossl_bn_value_ptr(&(obj))