Init in bn_ctx constructor
This commit is contained in:
parent
d1a42598d7
commit
f34af83653
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue