mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +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:
parent
194b0ddd30
commit
a035a83d7a
@ -100,6 +100,12 @@ void NetworkManager::loadSettings()
|
|||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
m_acceptLanguage = AcceptLanguage::generateHeader(settings.value("Language/acceptLanguage", AcceptLanguage::defaultLanguage()).toStringList());
|
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)
|
#if defined(Q_OS_WIN) || defined(Q_OS_HAIKU) || defined(Q_OS_OS2)
|
||||||
// From doc:
|
// From doc:
|
||||||
// QSslSocket::VerifyNone ... The connection will still be encrypted, and your socket
|
// QSslSocket::VerifyNone ... The connection will still be encrypted, and your socket
|
||||||
|
Loading…
Reference in New Issue
Block a user