Skip to content

Commit ef06b91

Browse files
Merge branch 'v0.20'
2 parents 035cf1d + feea658 commit ef06b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl/tlstransport.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ TlsTransport::TlsTransport(variant<shared_ptr<TcpTransport>, shared_ptr<HttpProx
578578
PLOG_DEBUG << "Initializing TLS transport (OpenSSL)";
579579

580580
try {
581-
if (!(mCtx = SSL_CTX_new(SSLv23_method()))) // version-flexible
581+
if (!(mCtx = SSL_CTX_new(TLS_method()))) // version-flexible
582582
throw std::runtime_error("Failed to create SSL context");
583583

584584
openssl::check(SSL_CTX_set_cipher_list(mCtx, "ALL:!LOW:!EXP:!RC4:!MD5:@STRENGTH"),

0 commit comments

Comments
 (0)