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/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index f5252b8..742af6d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -15,6 +15,11 @@ SslTrust global_https_trust; FavouriteCollection global_favourites; GenericSettings global_options; +QString toFingerprintString(QSslCertificate const & certificate) +{ + return QCryptographicHash::hash(certificate.toDer(), QCryptographicHash::Sha256).toHex(':'); +} + int main(int argc, char *argv[]) { QApplication app(argc, argv); -- cgit v1.2.3