From 394e5d4f499cafdc0bea253a9f25478adbed2880 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 28 Nov 2019 07:52:00 +0000 Subject: [PATCH] move QSsl::TlsV1 case before default in QSslSocketBackendPrivate::initSslContext() Signed-off-by: Ivailo Monev --- src/network/ssl/qsslsocket_openssl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp index 223ed27f3..39806da9f 100644 --- a/src/network/ssl/qsslsocket_openssl.cpp +++ b/src/network/ssl/qsslsocket_openssl.cpp @@ -251,15 +251,15 @@ init_context: ctx = 0; // SSL 3 not supported by the system, but chosen deliberately -> error #endif break; + case QSsl::TlsV1: + ctx = SSL_CTX_new(client ? TLSv1_client_method() : TLSv1_server_method()); + break; case QSsl::SecureProtocols: // SslV2 will be disabled below case QSsl::TlsV1SslV3: // SslV2 will be disabled below case QSsl::AnyProtocol: default: ctx = SSL_CTX_new(client ? SSLv23_client_method() : SSLv23_server_method()); break; - case QSsl::TlsV1: - ctx = SSL_CTX_new(client ? TLSv1_client_method() : TLSv1_server_method()); - break; } if (!ctx) { // After stopping Flash 10 the SSL library looses its ciphers. Try re-adding them -- 2.11.0