diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-30 19:19:42 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-30 19:27:25 (GMT) |
commit | b5ae8c3a9ec236321d705f9a79234777fc28b5fc (patch) | |
tree | d634b3b4bf391b2e8a56d451bf911bcde3f36954 /Swift | |
parent | d64d480cae2db95a802323408745b0d49be9c660 (diff) | |
download | swift-contrib-b5ae8c3a9ec236321d705f9a79234777fc28b5fc.zip swift-contrib-b5ae8c3a9ec236321d705f9a79234777fc28b5fc.tar.bz2 |
Show certificate fingerprint in 'Trust certificate' dialog.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/QtUI/QtLoginWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index 37ac755..4a54152 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -401,7 +401,8 @@ bool QtLoginWindow::askUserToTrustCertificatePermanently(const String& message, dialog.setText("The certificate presented by the server is not valid."); dialog.setInformativeText(P2QSTRING(message) + "\n\nWould you like to permanently trust this certificate? This must only be done if you know it is correct."); - QString detailedText = "Subject: " + P2QSTRING(certificate->getSubjectName()); + QString detailedText = "Subject: " + P2QSTRING(certificate->getSubjectName()) + "\n"; + detailedText += "SHA-1 Fingerprint: " + P2QSTRING(certificate->getSHA1Fingerprint()); dialog.setDetailedText(detailedText); dialog.setStandardButtons(QMessageBox::Yes | QMessageBox::No); |