We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee21516 + 464bdd6 commit 53dfbcfCopy full SHA for 53dfbcf
src/ssl/ssl_openssl_impl.cpp
@@ -539,8 +539,10 @@ OpenSslContext::OpenSslContext()
539
, trusted_store_(X509_STORE_new()) {
540
SSL_CTX_set_cert_store(ssl_ctx_, trusted_store_);
541
SSL_CTX_set_verify(ssl_ctx_, SSL_VERIFY_NONE, ssl_no_verify_callback);
542
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
543
// Limit to TLS 1.2 for now. TLS 1.3 has broken the handshake code.
544
SSL_CTX_set_max_proto_version(ssl_ctx_, TLS1_2_VERSION);
545
+#endif
546
#if DEBUG_SSL
547
SSL_CTX_set_info_callback(ssl_ctx_, ssl_info_callback);
548
#endif
0 commit comments