Permalink
Browse files

Fixed ssl certificate problem with sites like https://webmail.us.army…

….mil

By default QSSLConfiguration was only accepting SSLv3 while we want to
accept all of them.

Issue: 915
  • Loading branch information...
1 parent ce46bb4 commit 065d8d8fd0c5da52b1659d8a697af6d2d4af3871 @jasonmichaelbutler jasonmichaelbutler committed with icefox Nov 20, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/network/networkaccessmanager.cpp
@@ -168,6 +168,7 @@ void NetworkAccessManager::loadSettings()
QList<QSslCertificate> ca_new = QSslCertificate::fromData(settings.value(QLatin1String("CaCertificates")).toByteArray());
ca_list += ca_new;
sslCfg.setCaCertificates(ca_list);
+ sslCfg.setProtocol(QSsl::AnyProtocol);
QSslConfiguration::setDefaultConfiguration(sslCfg);
#endif
@@ -327,6 +328,7 @@ void NetworkAccessManager::sslErrors(QNetworkReply *reply, const QList<QSslError
QList<QSslCertificate> ca_list = sslCfg.caCertificates();
ca_list += ca_new;
sslCfg.setCaCertificates(ca_list);
+ sslCfg.setProtocol(QSsl::AnyProtocol);
QSslConfiguration::setDefaultConfiguration(sslCfg);
reply->setSslConfiguration(sslCfg);

0 comments on commit 065d8d8

Please sign in to comment.