diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-21 21:29:30 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-21 21:29:30 +0200 |
| commit | 6ef3d6a41f07a2f43a9b69f4e75adbffe634ea09 (patch) | |
| tree | 791ad53823e47ecff837ec6004aa80c8fb1e1445 /src/main.cpp | |
| parent | 6225064a008eccb9099ed2db49dad04c5f6d0550 (diff) | |
| download | kristall-6ef3d6a41f07a2f43a9b69f4e75adbffe634ea09.tar.gz | |
Adds option for manually trusting a TLS server.
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); |
