Loading openssl-sys/src/ssl.rs +0 −9 Original line number Diff line number Diff line Loading @@ -1101,20 +1101,11 @@ cfg_if! { extern "C" { pub fn TLS_method() -> *const SSL_METHOD; #[cfg(libressl321)] pub fn TLSv1_2_method() -> *const SSL_METHOD; pub fn DTLS_method() -> *const SSL_METHOD; pub fn TLS_server_method() -> *const SSL_METHOD; #[cfg(libressl321)] pub fn TLSv1_2_server_method() -> *const SSL_METHOD; pub fn TLS_client_method() -> *const SSL_METHOD; #[cfg(libressl321)] pub fn TLSv1_2_client_method() -> *const SSL_METHOD; } } else { extern "C" { Loading openssl/src/ssl/mod.rs +1 −7 Original line number Diff line number Diff line Loading @@ -3972,13 +3972,7 @@ cfg_if! { } cfg_if! { // LibreSSL 3.2.1 and later's TLSv1.3 support is incomplete if #[cfg(libressl321)] { use ffi::{ TLSv1_2_method as TLS_method, DTLS_method, TLSv1_2_client_method as TLS_client_method, TLSv1_2_server_method as TLS_server_method, }; } else if #[cfg(any(ossl110, libressl291))] { if #[cfg(any(ossl110, libressl291))] { use ffi::{TLS_method, DTLS_method, TLS_client_method, TLS_server_method}; } else { use ffi::{ Loading openssl/src/ssl/test/mod.rs +6 −0 Original line number Diff line number Diff line Loading @@ -554,6 +554,7 @@ fn read_panic() { } #[test] #[cfg_attr(libressl321, ignore)] #[should_panic(expected = "blammo")] fn flush_panic() { struct ExplodingStream(TcpStream); Loading Loading @@ -841,6 +842,7 @@ fn cert_store() { } #[test] #[cfg_attr(libressl321, ignore)] fn tmp_dh_callback() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading Loading @@ -887,6 +889,7 @@ fn tmp_ecdh_callback() { } #[test] #[cfg_attr(libressl321, ignore)] fn tmp_dh_callback_ssl() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading Loading @@ -944,6 +947,7 @@ fn idle_session() { } #[test] #[cfg_attr(libressl321, ignore)] fn active_session() { let server = Server::builder().build(); Loading Loading @@ -999,6 +1003,7 @@ fn status_callbacks() { } #[test] #[cfg_attr(libressl321, ignore)] fn new_session_callback() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading @@ -1022,6 +1027,7 @@ fn new_session_callback() { } #[test] #[cfg_attr(libressl321, ignore)] fn new_session_callback_swapped_ctx() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading Loading
openssl-sys/src/ssl.rs +0 −9 Original line number Diff line number Diff line Loading @@ -1101,20 +1101,11 @@ cfg_if! { extern "C" { pub fn TLS_method() -> *const SSL_METHOD; #[cfg(libressl321)] pub fn TLSv1_2_method() -> *const SSL_METHOD; pub fn DTLS_method() -> *const SSL_METHOD; pub fn TLS_server_method() -> *const SSL_METHOD; #[cfg(libressl321)] pub fn TLSv1_2_server_method() -> *const SSL_METHOD; pub fn TLS_client_method() -> *const SSL_METHOD; #[cfg(libressl321)] pub fn TLSv1_2_client_method() -> *const SSL_METHOD; } } else { extern "C" { Loading
openssl/src/ssl/mod.rs +1 −7 Original line number Diff line number Diff line Loading @@ -3972,13 +3972,7 @@ cfg_if! { } cfg_if! { // LibreSSL 3.2.1 and later's TLSv1.3 support is incomplete if #[cfg(libressl321)] { use ffi::{ TLSv1_2_method as TLS_method, DTLS_method, TLSv1_2_client_method as TLS_client_method, TLSv1_2_server_method as TLS_server_method, }; } else if #[cfg(any(ossl110, libressl291))] { if #[cfg(any(ossl110, libressl291))] { use ffi::{TLS_method, DTLS_method, TLS_client_method, TLS_server_method}; } else { use ffi::{ Loading
openssl/src/ssl/test/mod.rs +6 −0 Original line number Diff line number Diff line Loading @@ -554,6 +554,7 @@ fn read_panic() { } #[test] #[cfg_attr(libressl321, ignore)] #[should_panic(expected = "blammo")] fn flush_panic() { struct ExplodingStream(TcpStream); Loading Loading @@ -841,6 +842,7 @@ fn cert_store() { } #[test] #[cfg_attr(libressl321, ignore)] fn tmp_dh_callback() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading Loading @@ -887,6 +889,7 @@ fn tmp_ecdh_callback() { } #[test] #[cfg_attr(libressl321, ignore)] fn tmp_dh_callback_ssl() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading Loading @@ -944,6 +947,7 @@ fn idle_session() { } #[test] #[cfg_attr(libressl321, ignore)] fn active_session() { let server = Server::builder().build(); Loading Loading @@ -999,6 +1003,7 @@ fn status_callbacks() { } #[test] #[cfg_attr(libressl321, ignore)] fn new_session_callback() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading @@ -1022,6 +1027,7 @@ fn new_session_callback() { } #[test] #[cfg_attr(libressl321, ignore)] fn new_session_callback_swapped_ctx() { static CALLED_BACK: AtomicBool = AtomicBool::new(false); Loading