Skip to content

Commit dcb3310

Browse files
committed
fix build with old openssl version
1 parent b5e6a16 commit dcb3310

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openssl/src/ssl/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5028,7 +5028,7 @@ cfg_if! {
50285028

50295029
cfg_if! {
50305030
if #[cfg(not(boringssl))] {
5031-
ffi::SSL_CTX_get_ex_new_index(0, ptr::null_mut(), None, None, Some(f))
5031+
ffi::SSL_CTX_get_ex_new_index(0, ptr::null_mut(), None, None, f)
50325032
} else {
50335033
ffi::SSL_CTX_get_ex_new_index(0, ptr::null_mut(), ptr::null_mut(), None, f)
50345034
}
@@ -5046,7 +5046,7 @@ cfg_if! {
50465046
});
50475047

50485048
#[cfg(not(boringssl))]
5049-
return ffi::SSL_get_ex_new_index(0, ptr::null_mut(), None, None, Some(f));
5049+
return ffi::SSL_get_ex_new_index(0, ptr::null_mut(), None, None, f);
50505050
#[cfg(boringssl)]
50515051
return ffi::SSL_get_ex_new_index(0, ptr::null_mut(), ptr::null_mut(), None, f);
50525052
}

0 commit comments

Comments
 (0)