diff --git a/openssl-sys/src/tls1.rs b/openssl-sys/src/tls1.rs index 86c6c8f35aae1bfe71e3d269f4b44db3088c8f4a..d02f5c049748edc4ccdccfe4aaed17b38702c27e 100644 --- a/openssl-sys/src/tls1.rs +++ b/openssl-sys/src/tls1.rs @@ -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; diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 7443066961acb30da3ede971407287d0685c4134..6896a22f1067ec8cedc5446e9a12a4213ac8decd 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -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); }