diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-02-06 12:22:34 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-02-06 12:22:34 +0100 |
commit | 4a1773cc3fe1fa4583aae8021c0b7e2285b43316 (patch) | |
tree | c585fd6a335784e03dcd82aca817a057864f6ab8 /src | |
parent | Clean up sslinfodialog (diff) | |
download | rekonq-4a1773cc3fe1fa4583aae8021c0b7e2285b43316.tar.xz |
Get sure certificate chain HAS valid (not empty) identifiers
Diffstat (limited to 'src')
-rw-r--r-- | src/sslinfodialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sslinfodialog.cpp b/src/sslinfodialog.cpp index f8b05a4f..234dbb82 100644 --- a/src/sslinfodialog.cpp +++ b/src/sslinfodialog.cpp @@ -66,7 +66,12 @@ SslInfoDialog::SslInfoDialog(const QString &host, const WebSslInfo &info, QWidge Q_FOREACH(const QSslCertificate & cert, caList) { - ui.comboBox->addItem(cert.subjectInfo(QSslCertificate::CommonName)); + QString name = cert.subjectInfo(QSslCertificate::CommonName); + if (name.isEmpty()) + name = cert.subjectInfo(QSslCertificate::Organization); + if (name.isEmpty()) + name = cert.serialNumber(); + ui.comboBox->addItem(name); } connect(ui.comboBox, SIGNAL(activated(int)), this, SLOT(displayFromChain(int))); |