summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-02-06 12:22:34 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-02-06 12:22:34 +0100
commit4a1773cc3fe1fa4583aae8021c0b7e2285b43316 (patch)
treec585fd6a335784e03dcd82aca817a057864f6ab8 /src
parentClean up sslinfodialog (diff)
downloadrekonq-4a1773cc3fe1fa4583aae8021c0b7e2285b43316.tar.xz
Get sure certificate chain HAS valid (not empty) identifiers
Diffstat (limited to 'src')
-rw-r--r--src/sslinfodialog.cpp7
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)));