aboutsummaryrefslogtreecommitdiff
path: root/src/protocols/webclient.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2021-03-06 20:26:21 +0100
committerFelix (xq) Queißner <git@mq32.de>2021-03-06 20:29:50 +0100
commit0396fdb01d12e51bd2cc63478819b366c0453d29 (patch)
tree082fcd53b7b61c0dc2a0dc6b676729e155c07fd2 /src/protocols/webclient.cpp
parent21c821c49ef82d1e84b0b9c8c3d357dc559479d4 (diff)
Moves all globals into a structure that can be deleted before the app exists. Fixes #193.
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 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;