Skip to content

Commit 7d173c4

Browse files
qt: Revert "Force TLS1.0+ for SSL connections"
This reverts commit 15e26a6, whose purpose was to tweak the Qt configuration to force TLS, i.e., to disable SSLv3, in Qt versions >= 5.5. However, the default behavior of Qt >= 5.4 is to disable SSLv3 anyway [1], so the configuration tweak is redundant. With Qt 5.11.2, the configuration tweak is not only redundant but in fact provokes a deadlock (#14359) due to Qt 5.11.2 being incompatible with OpenSSL 1.1.1 [2]. Since the deadlock occurs at the early startup stage of bitcoin-qt, it renders bitcoin-qt entirely non-functional when compiled against OpenSSL 1.1.1 and Qt 5.11.2 (and possible future combinations of OpenSSL and Qt versions). This commit fixes #14359 by removing the redundant code. [1] https://code.qt.io/cgit/qt/qtbase.git/commit/?id=3fd2d9eff8c1f948306ee5fbfe364ccded1c4b84 [2] https://bugreports.qt.io/browse/QTBUG-70956
1 parent f504a14 commit 7d173c4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/qt/bitcoin.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
#include <QThread>
5252
#include <QTimer>
5353
#include <QTranslator>
54-
#include <QSslConfiguration>
5554

5655
#if defined(QT_STATICPLUGIN)
5756
#include <QtPlugin>
@@ -573,13 +572,6 @@ int main(int argc, char *argv[])
573572
#ifdef Q_OS_MAC
574573
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
575574
#endif
576-
#if QT_VERSION >= 0x050500
577-
// Because of the POODLE attack it is recommended to disable SSLv3 (https://disablessl3.com/),
578-
// so set SSL protocols to TLS1.0+.
579-
QSslConfiguration sslconf = QSslConfiguration::defaultConfiguration();
580-
sslconf.setProtocol(QSsl::TlsV1_0OrLater);
581-
QSslConfiguration::setDefaultConfiguration(sslconf);
582-
#endif
583575

584576
// Register meta types used for QMetaObject::invokeMethod
585577
qRegisterMetaType< bool* >();

0 commit comments

Comments
 (0)