Commit 24f20ce2 authored by Charlie Li's avatar Charlie Li
Browse files

Add corresponding TLSv1_2_method function imports

parent 43ad751d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1101,11 +1101,20 @@ 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" {