Commit 4f0d5bfe authored by Charlie Li's avatar Charlie Li
Browse files

Expose TLS1_3_VERSION when using LibreSSL 3.4.0+

parent 8ab8915c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ use *;
pub const TLS1_VERSION: c_int = 0x301;
pub const TLS1_1_VERSION: c_int = 0x302;
pub const TLS1_2_VERSION: c_int = 0x303;
#[cfg(ossl111)]
#[cfg(any(ossl111, libressl340))]
pub const TLS1_3_VERSION: c_int = 0x304;

pub const TLS1_AD_DECODE_ERROR: c_int = 50;
+2 −2
Original line number Diff line number Diff line
@@ -611,8 +611,8 @@ impl SslVersion {

    /// TLSv1.3
    ///
    /// Requires OpenSSL 1.1.1 or newer.
    #[cfg(ossl111)]
    /// Requires OpenSSL 1.1.1 or LibreSSL 3.4.0 or newer.
    #[cfg(any(ossl111, libressl340))]
    pub const TLS1_3: SslVersion = SslVersion(ffi::TLS1_3_VERSION);
}