Mercurial > trustbridge
comparison ui/certificate.cpp @ 530:fb47bab4c71a
Only show CN als shortDescription
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 29 Apr 2014 15:01:02 +0000 |
parents | 17e1c8f37d72 |
children | bf445b0e1126 |
comparison
equal
deleted
inserted
replaced
529:c81123298387 | 530:fb47bab4c71a |
---|---|
128 if (!isValid()) { | 128 if (!isValid()) { |
129 return QObject::tr("Failed to parse certificate"); | 129 return QObject::tr("Failed to parse certificate"); |
130 } | 130 } |
131 | 131 |
132 QString ret = mSubjectCN; /* Necessary by definition */ | 132 QString ret = mSubjectCN; /* Necessary by definition */ |
133 /* | |
133 if (!mSubjectO.isEmpty()) { | 134 if (!mSubjectO.isEmpty()) { |
134 ret += " - " + mSubjectO; | 135 ret += " - " + mSubjectO; |
135 } | 136 } |
136 if (!mSubjectOU.isEmpty()) { | 137 */ |
137 ret += ", " + mSubjectOU; | |
138 } | |
139 return ret; | 138 return ret; |
140 } | 139 } |
141 | 140 |
142 QList<Certificate> Certificate::fromFileName(const QString& file_name) { | 141 QList<Certificate> Certificate::fromFileName(const QString& file_name) { |
143 /* We read the file using Qt to avoid filename encoding problems | 142 /* We read the file using Qt to avoid filename encoding problems |