aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-12-10 07:00:24 +0000
committerGravatar Sadie Powell2022-12-10 07:00:24 +0000
commit20a1892e31d8b71fa37c69bc6aaf715cf1640f17 (patch)
tree5b67e1c5bebee69fabede78da9dab1e9307433cc /src/modules
parentRemove test-build now its no longer used. (diff)
parentFix building with the Intel C++ compiler. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_ssl_openssl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp
index a38813f26..e6a533762 100644
--- a/src/modules/extra/m_ssl_openssl.cpp
+++ b/src/modules/extra/m_ssl_openssl.cpp
@@ -344,6 +344,12 @@ namespace OpenSSL
setoptions |= SSL_OP_NO_TLSv1_2;
#endif
+#ifdef SSL_OP_NO_TLSv1_3
+ // Enable TLSv1.3 by default.
+ if (!tag->getBool("tlsv13", true))
+ setoptions |= SSL_OP_NO_TLSv1_3;
+#endif
+
if (!setoptions && !clearoptions)
return; // Nothing to do