Skip to content

Commit

Permalink
Merge pull request #479 from remicollet/patch-1
Browse files Browse the repository at this point in the history
SSL_CTX_set_max_proto_version requires openssl 1.1
  • Loading branch information
mpenick authored Jul 21, 2020
2 parents ee21516 + 464bdd6 commit 53dfbcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ssl/ssl_openssl_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,10 @@ OpenSslContext::OpenSslContext()
, trusted_store_(X509_STORE_new()) {
SSL_CTX_set_cert_store(ssl_ctx_, trusted_store_);
SSL_CTX_set_verify(ssl_ctx_, SSL_VERIFY_NONE, ssl_no_verify_callback);
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
// Limit to TLS 1.2 for now. TLS 1.3 has broken the handshake code.
SSL_CTX_set_max_proto_version(ssl_ctx_, TLS1_2_VERSION);
#endif
#if DEBUG_SSL
SSL_CTX_set_info_callback(ssl_ctx_, ssl_info_callback);
#endif
Expand Down

0 comments on commit 53dfbcf

Please sign in to comment.