]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: disable TLS 1.3 middlebox compatibility
authorJouni Malinen <j@w1.fi>
Fri, 12 Jul 2019 19:29:33 +0000 (22:29 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 12 Jul 2019 19:29:33 +0000 (22:29 +0300)
This will hopefully not be needed for EAP-TLS use cases since there
should not really be a middlebox that looks at the TLS layer details in
case of EAP authentication.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls_openssl.c

index d45543e664895d95e3bf0487fd3620d8f46f23e2..39f453d61d7256dd2c7118b2da2a42cdbdd97bce 100644 (file)
@@ -1574,6 +1574,11 @@ struct tls_connection * tls_connection_init(void *ssl_ctx)
        options |= SSL_OP_NO_COMPRESSION;
 #endif /* SSL_OP_NO_COMPRESSION */
        SSL_set_options(conn->ssl, options);
+#ifdef SSL_OP_ENABLE_MIDDLEBOX_COMPAT
+       /* Hopefully there is no need for middlebox compatibility mechanisms
+        * when going through EAP authentication. */
+       SSL_clear_options(conn->ssl, SSL_OP_ENABLE_MIDDLEBOX_COMPAT);
+#endif
 
        conn->ssl_in = BIO_new(BIO_s_mem());
        if (!conn->ssl_in) {