aboutsummaryrefslogtreecommitdiff
path: root/src/kristall.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kristall.hpp')
-rw-r--r--src/kristall.hpp6
1 files changed, 6 insertions, 0 deletions
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 <QSettings>
#include <QClipboard>
+#include <QSslCertificate>
#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;