diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index c30b70d419..3553e9ab73 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -102,7 +102,7 @@ pub fn init() { static INIT: Once = Once::new(); INIT.call_once(|| unsafe { - OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS, ptr::null_mut()); + OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_NO_ATEXIT, ptr::null_mut()); }) } diff --git a/openssl-sys/src/ssl.rs b/openssl-sys/src/ssl.rs index a1f5a22a64..0d1a706981 100644 --- a/openssl-sys/src/ssl.rs +++ b/openssl-sys/src/ssl.rs @@ -1398,6 +1398,8 @@ cfg_if! { #[cfg(ossl110)] pub const OPENSSL_INIT_LOAD_SSL_STRINGS: u64 = 0x00200000; +#[cfg(ossl110)] +pub const OPENSSL_INIT_NO_ATEXIT: u64 = 0x00080000; extern "C" { #[cfg(ossl110)]