Commit 3d0bb3f4 authored by Charlie Li's avatar Charlie Li
Browse files

Expose DTLS support in LibreSSL 3.3.2

parent a3b3ad16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -311,9 +311,9 @@ 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(ossl102)]
#[cfg(any(ossl102, libressl332))]
pub const SSL_OP_NO_DTLSv1: c_ulong = 0x04000000;
#[cfg(ossl102)]
#[cfg(any(ossl102, libressl332))]
pub const SSL_OP_NO_DTLSv1_2: c_ulong = 0x08000000;
#[cfg(ossl111)]
pub const SSL_OP_NO_TLSv1_3: c_ulong = 0x20000000;
+4 −4
Original line number Diff line number Diff line
@@ -211,14 +211,14 @@ bitflags! {

        /// Disables the use of DTLSv1.0
        ///
        /// Requires OpenSSL 1.0.2 or newer.
        #[cfg(any(ossl102, ossl110))]
        /// Requires OpenSSL 1.0.2 or LibreSSL 3.3.2 or newer.
        #[cfg(any(ossl102, ossl110, libressl332))]
        const NO_DTLSV1 = ffi::SSL_OP_NO_DTLSv1;

        /// Disables the use of DTLSv1.2.
        ///
        /// Requires OpenSSL 1.0.2, or newer.
        #[cfg(any(ossl102, ossl110))]
        /// Requires OpenSSL 1.0.2 or LibreSSL 3.3.2 or newer.
        #[cfg(any(ossl102, ossl110, libressl332))]
        const NO_DTLSV1_2 = ffi::SSL_OP_NO_DTLSv1_2;

        /// Disables the use of all (D)TLS protocol versions.