Unverified Commit 71acbdfa authored by Steven Fackler's avatar Steven Fackler Committed by GitHub
Browse files

Merge pull request #1844 from sfackler/revert-1829-1827_dTLSv1_2_support

Revert "Add DTLS 1.2 support in newer releases of SSL libs."
parents 61156331 4a630b78
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -679,7 +679,6 @@ cfg_if! {
            pub fn TLS_server_method() -> *const SSL_METHOD;

            pub fn TLS_client_method() -> *const SSL_METHOD;

        }
    } else {
        extern "C" {
@@ -700,18 +699,12 @@ cfg_if! {

            pub fn DTLSv1_method() -> *const SSL_METHOD;

            // DTLS 1.2 support started in OpenSSL 1.0.2, LibreSSL 3.3.2
            #[cfg(any(ossl102,libressl332))]
            #[cfg(ossl102)]
            pub fn DTLSv1_2_method() -> *const SSL_METHOD;
        }
    }
}

extern "C" {
    #[cfg(ossl110)]
    pub fn DTLSv1_2_method() -> *const SSL_METHOD;
}

extern "C" {
    pub fn SSL_get_error(ssl: *const SSL, ret: c_int) -> c_int;
    pub fn SSL_get_version(ssl: *const SSL) -> *const c_char;