summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Li <git@vishwin.info>2020-11-25 12:33:21 -0500
committerCharlie Li <git@vishwin.info>2020-12-05 23:11:45 -0500
commit8e585e288a004cbff2bcbae881afdd9c2a375a53 (patch)
treedef4684350af5c7771a3ca174efc039f93586a6f
parentebc5779e866b60ee352122bed3b2f4b3cff17668 (diff)
downloadrust-openssl-8e585e288a004cbff2bcbae881afdd9c2a375a53.zip
Expose NO_TLSV1_3 for LibreSSL 3.2.1 and later
-rw-r--r--openssl/src/ssl/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs
index fc507c50..8934b267 100644
--- a/openssl/src/ssl/mod.rs
+++ b/openssl/src/ssl/mod.rs
@@ -203,8 +203,8 @@ bitflags! {
/// Disables the use of TLSv1.3.
///
- /// Requires OpenSSL 1.1.1 or newer.
- #[cfg(ossl111)]
+ /// Requires OpenSSL 1.1.1 or LibreSSL 3.2.1 or newer.
+ #[cfg(any(ossl111, libressl321))]
const NO_TLSV1_3 = ffi::SSL_OP_NO_TLSv1_3;
/// Disables the use of DTLSv1.0