From f54e3e3b146d88f5658e338c64e90acd79df40dc Mon Sep 17 00:00:00 2001 From: Joe Birr-Pixton Date: Tue, 13 Aug 2024 12:12:42 +0100 Subject: [PATCH] OPENSSL_init_ssl: relax rejection of `settings` --- rustls-libssl/src/entry.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rustls-libssl/src/entry.rs b/rustls-libssl/src/entry.rs index 937e519..922bc43 100644 --- a/rustls-libssl/src/entry.rs +++ b/rustls-libssl/src/entry.rs @@ -56,12 +56,9 @@ pub struct OpenSslInitSettings; type OPENSSL_INIT_SETTINGS = OpenSslInitSettings; entry! { - pub fn _OPENSSL_init_ssl(_opts: u64, settings: *const OPENSSL_INIT_SETTINGS) -> c_int { + pub fn _OPENSSL_init_ssl(_opts: u64, _settings: *const OPENSSL_INIT_SETTINGS) -> c_int { const VERSION: &str = env!("CARGO_PKG_VERSION"); - if !settings.is_null() { - return Error::not_supported("settings").raise().into(); - } env_logger::init(); log::trace!("OPENSSL_init_ssl in rustls-libssl {VERSION}"); C_INT_SUCCESS