aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/stack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openssl/src/stack.rs')
-rw-r--r--openssl/src/stack.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openssl/src/stack.rs b/openssl/src/stack.rs
index 87aa86c5..584ead8c 100644
--- a/openssl/src/stack.rs
+++ b/openssl/src/stack.rs
@@ -5,6 +5,7 @@ use std::convert::AsRef;
use std::marker::PhantomData;
use libc::c_int;
use std::mem;
+use ffi;
use {cvt, cvt_p};
use error::ErrorStack;
@@ -37,6 +38,7 @@ pub struct Stack<T: Stackable>(*mut T::StackType);
impl<T: Stackable> Stack<T> {
pub fn new() -> Result<Stack<T>, ErrorStack> {
unsafe {
+ ffi::init();
let ptr = try!(cvt_p(OPENSSL_sk_new_null()));
Ok(Stack(ptr as *mut _))
}