diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 5 |
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); |
