1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fixed connecting to older secured servers by forcing older SSL protocol.

Falling back to the Qt 4.7 behavior.

Closes #490
This commit is contained in:
nowrep 2013-03-17 10:42:27 +01:00
parent 194b0ddd30
commit a035a83d7a

View File

@ -100,6 +100,12 @@ void NetworkManager::loadSettings()
settings.endGroup();
m_acceptLanguage = AcceptLanguage::generateHeader(settings.value("Language/acceptLanguage", AcceptLanguage::defaultLanguage()).toStringList());
// Falling back to Qt 4.7 default behavior, use SslV3 by default
// Fixes issue with some older servers closing the connection
QSslConfiguration config = QSslConfiguration::defaultConfiguration();
config.setProtocol(QSsl::SslV3);
QSslConfiguration::setDefaultConfiguration(config);
#if defined(Q_OS_WIN) || defined(Q_OS_HAIKU) || defined(Q_OS_OS2)
// From doc:
// QSslSocket::VerifyNone ... The connection will still be encrypted, and your socket