diff options
Diffstat (limited to 'src/protocols/webclient.cpp')
| -rw-r--r-- | src/protocols/webclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/webclient.cpp b/src/protocols/webclient.cpp index 58b3365..01c6b1b 100644 --- a/src/protocols/webclient.cpp +++ b/src/protocols/webclient.cpp @@ -40,7 +40,7 @@ bool WebClient::startRequest(const QUrl &url, RequestOptions options) auto ssl_config = request.sslConfiguration(); // ssl_config.setProtocol(QSsl::TlsV1_2); - if(kristall::trust::https.enable_ca) + if(kristall::globals().trust.https.enable_ca) ssl_config.setCaCertificates(QSslConfiguration::systemCaCertificates()); else ssl_config.setCaCertificates(QList<QSslCertificate> { }); @@ -188,7 +188,7 @@ void WebClient::on_sslErrors(const QList<QSslError> &errors) if(SslTrust::isTrustRelated(err.error())) { auto cert = this->current_reply->sslConfiguration().peerCertificate(); - switch(kristall::trust::https.getTrust(this->current_reply->url(), cert)) + switch(kristall::globals().trust.https.getTrust(this->current_reply->url(), cert)) { case SslTrust::Trusted: ignore = true; |
