mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 12:46:35 +01:00
OS/2 Haiku: Use own certificates from CaBundle.
Only on Linux and Mac OS X it is safe to use system SSL certificates. See #786
This commit is contained in:
parent
b9858f98a4
commit
77f45e2761
@ -100,7 +100,7 @@ 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());
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#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
|
||||||
// will still send its local certificate to the peer if it's requested.
|
// will still send its local certificate to the peer if it's requested.
|
||||||
@ -665,7 +665,7 @@ void NetworkManager::loadCertificates()
|
|||||||
|
|
||||||
QSslSocket::setDefaultCaCertificates(m_caCerts + m_localCerts);
|
QSslSocket::setDefaultCaCertificates(m_caCerts + m_localCerts);
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#if defined(Q_OS_WIN) || defined(Q_OS_HAIKU) || defined(Q_OS_OS2)
|
||||||
new CaBundleUpdater(this, this);
|
new CaBundleUpdater(this, this);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user