Initialize algorithms in init

Required to deserialize PKCS12 on 0.9.8, looks like
This commit is contained in:
Steven Fackler 2016-08-14 12:51:33 -07:00
parent e6c4135c53
commit 912f7499cd
1 changed files with 2 additions and 1 deletions

View File

@ -516,6 +516,7 @@ pub fn init() {
unsafe { unsafe {
SSL_library_init(); SSL_library_init();
SSL_load_error_strings(); SSL_load_error_strings();
OPENSSL_add_all_algorithms_noconf();
let num_locks = CRYPTO_num_locks(); let num_locks = CRYPTO_num_locks();
let mut mutexes = Box::new(Vec::new()); let mut mutexes = Box::new(Vec::new());
@ -895,8 +896,8 @@ extern "C" {
siglen: c_int, dsa: *mut DSA) -> c_int; siglen: c_int, dsa: *mut DSA) -> c_int;
pub fn SSL_library_init() -> c_int; pub fn SSL_library_init() -> c_int;
pub fn SSL_load_error_strings(); pub fn SSL_load_error_strings();
pub fn OPENSSL_add_all_algorithms_noconf();
#[cfg(feature = "sslv2")] #[cfg(feature = "sslv2")]
pub fn SSLv2_method() -> *const SSL_METHOD; pub fn SSLv2_method() -> *const SSL_METHOD;