Skip to content

Commit

Permalink
OPENSSL_init_ssl: relax rejection of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed Aug 13, 2024
1 parent feba67d commit 553db56
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rustls-libssl/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 553db56

Please sign in to comment.