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 { - unsafe { cvt_p(ffi::BN_CTX_new()).map(BigNumContext) } + unsafe { + ffi::init(); + cvt_p(ffi::BN_CTX_new()).map(BigNumContext) + } } }