Skip to content

Commit

Permalink
qt: Force TLS1.0+ for SSL connections
Browse files Browse the repository at this point in the history
Github-Pull: #6384
Rebased-From: 15e26a6
  • Loading branch information
laanwj committed Jul 24, 2015
1 parent e8b87c8 commit 8e5a969
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/qt/bitcoin.cpp
Expand Up @@ -48,6 +48,7 @@
#include <QThread>
#include <QTimer>
#include <QTranslator>
#include <QSslConfiguration>

#if defined(QT_STATICPLUGIN)
#include <QtPlugin>
Expand Down Expand Up @@ -515,6 +516,13 @@ int main(int argc, char *argv[])
#ifdef Q_OS_MAC
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
#if QT_VERSION >= 0x050500
// Because of the POODLE attack it is recommended to disable SSLv3 (https://disablessl3.com/),
// so set SSL protocols to TLS1.0+.
QSslConfiguration sslconf = QSslConfiguration::defaultConfiguration();
sslconf.setProtocol(QSsl::TlsV1_0OrLater);
QSslConfiguration::setDefaultConfiguration(sslconf);
#endif

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

0 comments on commit 8e5a969

Please sign in to comment.