diff options
| author | Steven Fackler <[email protected]> | 2016-11-07 20:50:57 +0000 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-11-07 20:50:57 +0000 |
| commit | 18c5d1f771172aa1c532553d49de48242d4434ec (patch) | |
| tree | 2a3e82ec69900323b788e2e8a6dfb18b8e7e1e25 /openssl/src/conf.rs | |
| parent | Add an X509ReqBuilder (diff) | |
| download | rust-openssl-18c5d1f771172aa1c532553d49de48242d4434ec.tar.xz rust-openssl-18c5d1f771172aa1c532553d49de48242d4434ec.zip | |
Add init calls to new constructors
Diffstat (limited to 'openssl/src/conf.rs')
| -rw-r--r-- | openssl/src/conf.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openssl/src/conf.rs b/openssl/src/conf.rs index 140c1817..5483955d 100644 --- a/openssl/src/conf.rs +++ b/openssl/src/conf.rs @@ -7,7 +7,10 @@ pub struct ConfMethod(*mut ffi::CONF_METHOD); impl ConfMethod { pub fn default() -> ConfMethod { - unsafe { ConfMethod(ffi::NCONF_default()) } + unsafe { + ffi::init(); + ConfMethod(ffi::NCONF_default()) + } } pub unsafe fn from_ptr(ptr: *mut ffi::CONF_METHOD) -> ConfMethod { |