aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/webclient.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-28 16:30:52 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-28 16:30:52 +0200
commit6edd9e7a12a3827fb6aac62a88be01085e41e176 (patch)
tree4513475c7efaea92a154ff20e970ed3d4b475b7c /src/protocols/webclient.cpp
parenta53e490d2e96d22a24293019921af26e00f2bf7a (diff)
downloadkristall-6edd9e7a12a3827fb6aac62a88be01085e41e176.tar.gz
Huge refacoring of the settings stuff. Provides automated migration between old and new configuration file stuff. Themes are now just files in a folder instead of encoded data in the config file.
Diffstat (limited to 'src/protocols/webclient.cpp')
-rw-r--r--src/protocols/webclient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/protocols/webclient.cpp b/src/protocols/webclient.cpp
index ed87694..299b39b 100644
--- a/src/protocols/webclient.cpp
+++ b/src/protocols/webclient.cpp
@@ -36,7 +36,7 @@ bool WebClient::startRequest(const QUrl &url, RequestOptions options)
auto ssl_config = request.sslConfiguration();
// ssl_config.setProtocol(QSsl::TlsV1_2);
- if(global_https_trust.enable_ca)
+ if(kristall::trust::https.enable_ca)
ssl_config.setCaCertificates(QSslConfiguration::systemCaCertificates());
else
ssl_config.setCaCertificates(QList<QSslCertificate> { });
@@ -182,7 +182,7 @@ void WebClient::on_sslErrors(const QList<QSslError> &errors)
if(SslTrust::isTrustRelated(err.error()))
{
auto cert = this->current_reply->sslConfiguration().peerCertificate();
- switch(global_https_trust.getTrust(this->current_reply->url(), cert))
+ switch(kristall::trust::https.getTrust(this->current_reply->url(), cert))
{
case SslTrust::Trusted:
ignore = true;