File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 48
48
#include < QThread>
49
49
#include < QTimer>
50
50
#include < QTranslator>
51
+ #include < QSslConfiguration>
51
52
52
53
#if defined(QT_STATICPLUGIN)
53
54
#include < QtPlugin>
@@ -515,6 +516,13 @@ int main(int argc, char *argv[])
515
516
#ifdef Q_OS_MAC
516
517
QApplication::setAttribute (Qt::AA_DontShowIconsInMenus);
517
518
#endif
519
+ #if QT_VERSION >= 0x050500
520
+ // Because of the POODLE attack it is recommended to disable SSLv3 (https://disablessl3.com/),
521
+ // so set SSL protocols to TLS1.0+.
522
+ QSslConfiguration sslconf = QSslConfiguration::defaultConfiguration ();
523
+ sslconf.setProtocol (QSsl::TlsV1_0OrLater);
524
+ QSslConfiguration::setDefaultConfiguration (sslconf);
525
+ #endif
518
526
519
527
// Register meta types used for QMetaObject::invokeMethod
520
528
qRegisterMetaType< bool * >();
You can’t perform that action at this time.
0 commit comments