From 553db560df6354ec8d83b1f8d03cbe857d3fe4db 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 8972353..f7b8b7b 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