aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
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/main.cpp
parent6225064a008eccb9099ed2db49dad04c5f6d0550 (diff)
downloadkristall-6ef3d6a41f07a2f43a9b69f4e75adbffe634ea09.tar.gz
Adds option for manually trusting a TLS server.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
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);