Commit 81a25321 authored by Charlie Li's avatar Charlie Li
Browse files

LibreSSL 3.3.2 uses different values for SSL_OP_NO_DTLSv1{,_2}

parent 3d0bb3f4
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -311,10 +311,15 @@ pub const SSL_OP_NO_TLSv1_1: c_ulong = 0x10000000;
pub const SSL_OP_NO_TLSv1_2: c_ulong = 0x08000000;

pub const SSL_OP_NO_TLSv1: c_ulong = 0x04000000;
#[cfg(any(ossl102, libressl332))]
cfg_if! {
    if #[cfg(ossl102)] {
        pub const SSL_OP_NO_DTLSv1: c_ulong = 0x04000000;
#[cfg(any(ossl102, libressl332))]
        pub const SSL_OP_NO_DTLSv1_2: c_ulong = 0x08000000;
    } else if #[cfg(libressl332)] {
        pub const SSL_OP_NO_DTLSv1: c_ulong = 0x40000000;
        pub const SSL_OP_NO_DTLSv1_2: c_ulong = 0x80000000;
    }
}
#[cfg(ossl111)]
pub const SSL_OP_NO_TLSv1_3: c_ulong = 0x20000000;