From 6ef3d6a41f07a2f43a9b69f4e75adbffe634ea09 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sun, 21 Jun 2020 21:29:30 +0200 Subject: Adds option for manually trusting a TLS server. --- src/kristall.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kristall.hpp') diff --git a/src/kristall.hpp b/src/kristall.hpp index 8f80045..1f0a65d 100644 --- a/src/kristall.hpp +++ b/src/kristall.hpp @@ -3,6 +3,7 @@ #include #include +#include #include "identitycollection.hpp" #include "ssltrust.hpp" @@ -44,6 +45,11 @@ struct GenericSettings void save(QSettings & settings) const; }; +//! Converts the certificate to a standardized fingerprint representation +//! also commonly used in browsers: +//! `:`-separated SHA256 hash +QString toFingerprintString(QSslCertificate const & certificate); + extern QSettings global_settings; extern IdentityCollection global_identities; extern QClipboard * global_clipboard; -- cgit v1.2.3