diff options
Diffstat (limited to 'openssl/src')
| -rw-r--r-- | openssl/src/bn.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openssl/src/bn.rs b/openssl/src/bn.rs index e3de8672..46d7d8f3 100644 --- a/openssl/src/bn.rs +++ b/openssl/src/bn.rs @@ -52,7 +52,10 @@ foreign_type! { impl BigNumContext { /// Returns a new `BigNumContext`. pub fn new() -> Result<BigNumContext, ErrorStack> { - unsafe { cvt_p(ffi::BN_CTX_new()).map(BigNumContext) } + unsafe { + ffi::init(); + cvt_p(ffi::BN_CTX_new()).map(BigNumContext) + } } } |