aboutsummaryrefslogtreecommitdiff
path: root/src/ssltrust.hpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-21 21:29:30 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-21 21:29:30 +0200
commit6ef3d6a41f07a2f43a9b69f4e75adbffe634ea09 (patch)
tree791ad53823e47ecff837ec6004aa80c8fb1e1445 /src/ssltrust.hpp
parent6225064a008eccb9099ed2db49dad04c5f6d0550 (diff)
downloadkristall-6ef3d6a41f07a2f43a9b69f4e75adbffe634ea09.tar.gz
Adds option for manually trusting a TLS server.
Diffstat (limited to 'src/ssltrust.hpp')
-rw-r--r--src/ssltrust.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ssltrust.hpp b/src/ssltrust.hpp
index 96a4d83..4214d8a 100644
--- a/src/ssltrust.hpp
+++ b/src/ssltrust.hpp
@@ -38,6 +38,9 @@ struct SslTrust
void load(QSettings & settings);
void save(QSettings & settings) const;
+ //! Adds the certificate to the trust store. Returns `true` on success.
+ bool addTrust(QUrl const & url, QSslCertificate const & certificate);
+
bool isTrusted(QUrl const & url, QSslCertificate const & certificate);
TrustStatus getTrust(QUrl const & url, QSslCertificate const & certificate);