From f92de22b8d59fe2bd7160f6cbadd692850829e99 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sat, 3 Mar 2018 14:57:38 -0800 Subject: [PATCH] Add SslOptions::ENABLE_MIDDLEBOX_COMPAT --- openssl/src/ssl/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openssl/src/ssl/mod.rs b/openssl/src/ssl/mod.rs index 1ae480c5..5431df13 100644 --- a/openssl/src/ssl/mod.rs +++ b/openssl/src/ssl/mod.rs @@ -214,6 +214,13 @@ bitflags! { #[cfg(any(all(feature = "v102", ossl102), all(feature = "v110", ossl110), all(feature = "v111", ossl111)))] const NO_SSL_MASK = ffi::SSL_OP_NO_SSL_MASK; + + /// Enable TLSv1.3 Compatibility mode. + /// + /// This is on by default in OpenSSL 1.1.1. A future version may have this + /// disabled by default. + #[cfg(all(feature = "v111", ossl111))] + const ENABLE_MIDDLEBOX_COMPAT = ffi::SSL_OP_ENABLE_MIDDLEBOX_COMPAT; } }