From e91412ec8b9d71a13bdb865f26f82c1177084bf7 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 22 Oct 2024 00:27:01 +0800 Subject: [PATCH] Use default secure protocol list from Qt In Qt 6.5, `QSsl::SecureProtocols` is the same as `QSsl::TlsV1_2OrLater`. And by using `QSsl::SecureProtocols` we won't need to worry it being outdated since Qt will regularly adjust it. https://github.com/qt/qtbase/blob/v6.5.0/src/plugins/tls/openssl/qsslcontext_openssl.cpp#L425-L429 --- src/base/http/server.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/base/http/server.cpp b/src/base/http/server.cpp index 1e91961df..7c99d8ecd 100644 --- a/src/base/http/server.cpp +++ b/src/base/http/server.cpp @@ -107,7 +107,6 @@ Server::Server(IRequestHandler *requestHandler, QObject *parent) m_sslConfig.setCiphers(safeCipherList()); m_sslConfig.setPeerVerifyMode(QSslSocket::VerifyNone); - m_sslConfig.setProtocol(QSsl::TlsV1_2OrLater); auto *dropConnectionTimer = new QTimer(this); connect(dropConnectionTimer, &QTimer::timeout, this, &Server::dropTimedOutConnection);