mirror of
https://github.com/encounter/phantomjs.git
synced 2026-07-10 21:18:40 -07:00
Fix ignoring ssl errors on synchronous xhrs
disabling peer verify in ssl configuration when ignore-ssl-errors is set issue http://code.google.com/p/phantomjs/issues/detail?id=985
This commit is contained in:
committed by
Ariya Hidayat
parent
a9c052b940
commit
319105fd93
@@ -90,6 +90,10 @@ NetworkAccessManager::NetworkAccessManager(QObject *parent, const Config *config
|
||||
if (QSslSocket::supportsSsl()) {
|
||||
m_sslConfiguration = QSslConfiguration::defaultConfiguration();
|
||||
|
||||
if (config->ignoreSslErrors()) {
|
||||
m_sslConfiguration.setPeerVerifyMode(QSslSocket::VerifyNone);
|
||||
}
|
||||
|
||||
// set the SSL protocol to SSLv3 by the default
|
||||
m_sslConfiguration.setProtocol(QSsl::SslV3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user