Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/network/ssl/qsslcertificate.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||
2 | - | |||||||||||||
3 | - | |||||||||||||
4 | - | |||||||||||||
5 | - | |||||||||||||
6 | - | |||||||||||||
7 | - | |||||||||||||
8 | - | |||||||||||||
9 | - | |||||||||||||
10 | - | |||||||||||||
11 | - | |||||||||||||
12 | - | |||||||||||||
13 | QSslCertificate::QSslCertificate(QIODevice *device, QSsl::EncodingFormat format) | - | ||||||||||||
14 | : d(new QSslCertificatePrivate) | - | ||||||||||||
15 | { | - | ||||||||||||
16 | QSslSocketPrivate::ensureInitialized(); | - | ||||||||||||
17 | if (device
| 0-4 | ||||||||||||
18 | d->init(device->readAll(), format); executed 4 times by 1 test: d->init(device->readAll(), format); Executed by:
| 4 | ||||||||||||
19 | } executed 4 times by 1 test: end of block Executed by:
| 4 | ||||||||||||
20 | - | |||||||||||||
21 | - | |||||||||||||
22 | - | |||||||||||||
23 | - | |||||||||||||
24 | - | |||||||||||||
25 | - | |||||||||||||
26 | - | |||||||||||||
27 | QSslCertificate::QSslCertificate(const QByteArray &data, QSsl::EncodingFormat format) | - | ||||||||||||
28 | : d(new QSslCertificatePrivate) | - | ||||||||||||
29 | { | - | ||||||||||||
30 | QSslSocketPrivate::ensureInitialized(); | - | ||||||||||||
31 | d->init(data, format); | - | ||||||||||||
32 | } executed 30293 times by 16 tests: end of block Executed by:
| 30293 | ||||||||||||
33 | - | |||||||||||||
34 | - | |||||||||||||
35 | - | |||||||||||||
36 | - | |||||||||||||
37 | QSslCertificate::QSslCertificate(const QSslCertificate &other) : d(other.d) | - | ||||||||||||
38 | { | - | ||||||||||||
39 | } executed 50512 times by 9 tests: end of block Executed by:
| 50512 | ||||||||||||
40 | - | |||||||||||||
41 | - | |||||||||||||
42 | - | |||||||||||||
43 | - | |||||||||||||
44 | QSslCertificate::~QSslCertificate() | - | ||||||||||||
45 | { | - | ||||||||||||
46 | } | - | ||||||||||||
47 | - | |||||||||||||
48 | - | |||||||||||||
49 | - | |||||||||||||
50 | - | |||||||||||||
51 | - | |||||||||||||
52 | QSslCertificate &QSslCertificate::operator=(const QSslCertificate &other) | - | ||||||||||||
53 | { | - | ||||||||||||
54 | d = other.d; | - | ||||||||||||
55 | return executed 2163 times by 10 tests: *this;return *this; Executed by:
executed 2163 times by 10 tests: return *this; Executed by:
| 2163 | ||||||||||||
56 | } | - | ||||||||||||
57 | bool QSslCertificate::isBlacklisted() const | - | ||||||||||||
58 | { | - | ||||||||||||
59 | return executed 55 times by 1 test: QSslCertificatePrivate::isBlacklisted(*this);return QSslCertificatePrivate::isBlacklisted(*this); Executed by:
executed 55 times by 1 test: return QSslCertificatePrivate::isBlacklisted(*this); Executed by:
| 55 | ||||||||||||
60 | } | - | ||||||||||||
61 | void QSslCertificate::clear() | - | ||||||||||||
62 | { | - | ||||||||||||
63 | if (isNull()
| 59-2055 | ||||||||||||
64 | return; executed 2055 times by 8 tests: return; Executed by:
| 2055 | ||||||||||||
65 | d = new QSslCertificatePrivate; | - | ||||||||||||
66 | } executed 59 times by 2 tests: end of block Executed by:
| 59 | ||||||||||||
67 | QByteArray QSslCertificate::digest(QCryptographicHash::Algorithm algorithm) const | - | ||||||||||||
68 | { | - | ||||||||||||
69 | return executed 49 times by 1 test: QCryptographicHash::hash(toDer(), algorithm);return QCryptographicHash::hash(toDer(), algorithm); Executed by:
executed 49 times by 1 test: return QCryptographicHash::hash(toDer(), algorithm); Executed by:
| 49 | ||||||||||||
70 | } | - | ||||||||||||
71 | QList<QSslCertificate> QSslCertificate::fromPath(const QString &path, | - | ||||||||||||
72 | QSsl::EncodingFormat format, | - | ||||||||||||
73 | QRegExp::PatternSyntax syntax) | - | ||||||||||||
74 | { | - | ||||||||||||
75 | - | |||||||||||||
76 | - | |||||||||||||
77 | - | |||||||||||||
78 | QString sourcePath = QDir::fromNativeSeparators(path); | - | ||||||||||||
79 | - | |||||||||||||
80 | - | |||||||||||||
81 | QString pathPrefix = sourcePath.left(sourcePath.lastIndexOf(QLatin1Char('/'))); | - | ||||||||||||
82 | - | |||||||||||||
83 | - | |||||||||||||
84 | int pos = -1; | - | ||||||||||||
85 | if (syntax == QRegExp::Wildcard
| 22-9843 | ||||||||||||
86 | pos = pathPrefix.indexOf(QRegExp(QLatin1String("[*?[]"))); executed 22 times by 1 test: pos = pathPrefix.indexOf(QRegExp(QLatin1String("[*?[]"))); Executed by:
| 22 | ||||||||||||
87 | else if (syntax != QRegExp::FixedString
| 16-9827 | ||||||||||||
88 | pos = sourcePath.indexOf(QRegExp(QLatin1String("[\\$\\(\\)\\*\\+\\.\\?\\[\\]\\^\\{\\}\\|]"))); executed 16 times by 1 test: pos = sourcePath.indexOf(QRegExp(QLatin1String("[\\$\\(\\)\\*\\+\\.\\?\\[\\]\\^\\{\\}\\|]"))); Executed by:
| 16 | ||||||||||||
89 | if (pos != -1
| 20-9845 | ||||||||||||
90 | - | |||||||||||||
91 | pathPrefix = pathPrefix.left(pos); | - | ||||||||||||
92 | if (pathPrefix.contains(QLatin1Char('/'))
| 0-20 | ||||||||||||
93 | pathPrefix = pathPrefix.left(pathPrefix.lastIndexOf(QLatin1Char('/'))); never executed: pathPrefix = pathPrefix.left(pathPrefix.lastIndexOf(QLatin1Char('/'))); | 0 | ||||||||||||
94 | else | - | ||||||||||||
95 | pathPrefix.clear(); executed 20 times by 1 test: pathPrefix.clear(); Executed by:
| 20 | ||||||||||||
96 | } else { | - | ||||||||||||
97 | - | |||||||||||||
98 | if (QFileInfo(sourcePath).isFile()
| 138-9707 | ||||||||||||
99 | QFile file(sourcePath); | - | ||||||||||||
100 | QIODevice::OpenMode openMode = QIODevice::ReadOnly; | - | ||||||||||||
101 | if (format == QSsl::Pem
| 2-9705 | ||||||||||||
102 | openMode |= QIODevice::Text; executed 9705 times by 4 tests: openMode |= QIODevice::Text; Executed by:
| 9705 | ||||||||||||
103 | if (file.open(openMode)
| 0-9707 | ||||||||||||
104 | return executed 9707 times by 4 tests: QSslCertificate::fromData(file.readAll(), format);return QSslCertificate::fromData(file.readAll(), format); Executed by:
executed 9707 times by 4 tests: return QSslCertificate::fromData(file.readAll(), format); Executed by:
| 9707 | ||||||||||||
105 | return never executed: QList<QSslCertificate>();return QList<QSslCertificate>(); never executed: return QList<QSslCertificate>(); | 0 | ||||||||||||
106 | } | - | ||||||||||||
107 | } executed 138 times by 3 tests: end of block Executed by:
| 138 | ||||||||||||
108 | - | |||||||||||||
109 | - | |||||||||||||
110 | int startIndex = 0; | - | ||||||||||||
111 | if (pathPrefix.isEmpty()
| 26-132 | ||||||||||||
112 | pathPrefix = QLatin1String("."); | - | ||||||||||||
113 | startIndex = 2; | - | ||||||||||||
114 | } executed 26 times by 1 test: end of block Executed by:
| 26 | ||||||||||||
115 | - | |||||||||||||
116 | - | |||||||||||||
117 | QList<QSslCertificate> certs; | - | ||||||||||||
118 | QRegExp pattern(sourcePath, Qt::CaseSensitive, syntax); | - | ||||||||||||
119 | QDirIterator it(pathPrefix, QDir::Files, QDirIterator::FollowSymlinks | QDirIterator::Subdirectories); | - | ||||||||||||
120 | while (it.hasNext()
| 158-2628 | ||||||||||||
121 | QString filePath = startIndex == 0
| 496-2132 | ||||||||||||
122 | if (!pattern.exactMatch(filePath)
| 136-2492 | ||||||||||||
123 | continue; executed 2492 times by 1 test: continue; Executed by:
| 2492 | ||||||||||||
124 | - | |||||||||||||
125 | QFile file(filePath); | - | ||||||||||||
126 | QIODevice::OpenMode openMode = QIODevice::ReadOnly; | - | ||||||||||||
127 | if (format == QSsl::Pem
| 42-94 | ||||||||||||
128 | openMode |= QIODevice::Text; executed 94 times by 1 test: openMode |= QIODevice::Text; Executed by:
| 94 | ||||||||||||
129 | if (file.open(openMode)
| 0-136 | ||||||||||||
130 | certs += QSslCertificate::fromData(file.readAll(), format); executed 136 times by 1 test: certs += QSslCertificate::fromData(file.readAll(), format); Executed by:
| 136 | ||||||||||||
131 | } executed 136 times by 1 test: end of block Executed by:
| 136 | ||||||||||||
132 | return executed 158 times by 3 tests: certs;return certs; Executed by:
executed 158 times by 3 tests: return certs; Executed by:
| 158 | ||||||||||||
133 | } | - | ||||||||||||
134 | QList<QSslCertificate> QSslCertificate::fromDevice(QIODevice *device, QSsl::EncodingFormat format) | - | ||||||||||||
135 | { | - | ||||||||||||
136 | if (!device
| 0-1 | ||||||||||||
137 | for (bool qt_category_enabled = lcSsl().isWarningEnabled(); qt_category_enabled
executed 1 time by 1 test: QMessageLogger(__FILE__, 532, __PRETTY_FUNCTION__, lcSsl().categoryName()).warning("QSslCertificate::fromDevice: cannot read from a null device"); Executed by:
| 1 | ||||||||||||
138 | return executed 1 time by 1 test: QList<QSslCertificate>();return QList<QSslCertificate>(); Executed by:
executed 1 time by 1 test: return QList<QSslCertificate>(); Executed by:
| 1 | ||||||||||||
139 | } | - | ||||||||||||
140 | return never executed: fromData(device->readAll(), format);return fromData(device->readAll(), format); never executed: return fromData(device->readAll(), format); | 0 | ||||||||||||
141 | } | - | ||||||||||||
142 | QList<QSslCertificate> QSslCertificate::fromData(const QByteArray &data, QSsl::EncodingFormat format) | - | ||||||||||||
143 | { | - | ||||||||||||
144 | return executed 9843 times by 4 tests: (return (format == QSsl::Pem) ? QSslCertificatePrivate::certificatesFromPem(data) : QSslCertificatePrivate::certificatesFromDer(data); Executed by:
executed 9843 times by 4 tests: return (format == QSsl::Pem) ? QSslCertificatePrivate::certificatesFromPem(data) : QSslCertificatePrivate::certificatesFromDer(data); Executed by:
| 44-9843 | ||||||||||||
145 | ? QSslCertificatePrivate::certificatesFromPem(data) executed 9843 times by 4 tests: return (format == QSsl::Pem) ? QSslCertificatePrivate::certificatesFromPem(data) : QSslCertificatePrivate::certificatesFromDer(data); Executed by:
| 9843 | ||||||||||||
146 | : QSslCertificatePrivate::certificatesFromDer(data); executed 9843 times by 4 tests: return (format == QSsl::Pem) ? QSslCertificatePrivate::certificatesFromPem(data) : QSslCertificatePrivate::certificatesFromDer(data); Executed by:
| 9843 | ||||||||||||
147 | } | - | ||||||||||||
148 | QList<QSslError> QSslCertificate::verify(QList<QSslCertificate> certificateChain, const QString &hostName) | - | ||||||||||||
149 | - | |||||||||||||
150 | { | - | ||||||||||||
151 | return executed 8 times by 1 test: QSslSocketBackendPrivate::verify(certificateChain, hostName);return QSslSocketBackendPrivate::verify(certificateChain, hostName); Executed by:
executed 8 times by 1 test: return QSslSocketBackendPrivate::verify(certificateChain, hostName); Executed by:
| 8 | ||||||||||||
152 | } | - | ||||||||||||
153 | bool QSslCertificate::importPkcs12(QIODevice *device, | - | ||||||||||||
154 | QSslKey *key, QSslCertificate *certificate, | - | ||||||||||||
155 | QList<QSslCertificate> *caCertificates, | - | ||||||||||||
156 | const QByteArray &passPhrase) | - | ||||||||||||
157 | { | - | ||||||||||||
158 | return executed 1 time by 1 test: QSslSocketBackendPrivate::importPkcs12(device, key, certificate, caCertificates, passPhrase);return QSslSocketBackendPrivate::importPkcs12(device, key, certificate, caCertificates, passPhrase); Executed by:
executed 1 time by 1 test: return QSslSocketBackendPrivate::importPkcs12(device, key, certificate, caCertificates, passPhrase); Executed by:
| 1 | ||||||||||||
159 | } | - | ||||||||||||
160 | - | |||||||||||||
161 | - | |||||||||||||
162 | - | |||||||||||||
163 | static const char *const certificate_blacklist[] = { | - | ||||||||||||
164 | "04:7e:cb:e9:fc:a5:5f:7b:d0:9e:ae:36:e1:0c:ae:1e", "mail.google.com", | - | ||||||||||||
165 | "f5:c8:6a:f3:61:62:f1:3a:64:f5:4f:6d:c9:58:7c:06", "www.google.com", | - | ||||||||||||
166 | "d7:55:8f:da:f5:f1:10:5b:b2:13:28:2b:70:77:29:a3", "login.yahoo.com", | - | ||||||||||||
167 | "39:2a:43:4f:0e:07:df:1f:8a:a3:05:de:34:e0:c2:29", "login.yahoo.com", | - | ||||||||||||
168 | "3e:75:ce:d4:6b:69:30:21:21:88:30:ae:86:a8:2a:71", "login.yahoo.com", | - | ||||||||||||
169 | "e9:02:8b:95:78:e4:15:dc:1a:71:0a:2b:88:15:44:47", "login.skype.com", | - | ||||||||||||
170 | "92:39:d5:34:8f:40:d1:69:5a:74:54:70:e1:f2:3f:43", "addons.mozilla.org", | - | ||||||||||||
171 | "b0:b7:13:3e:d0:96:f9:b5:6f:ae:91:c8:74:bd:3a:c0", "login.live.com", | - | ||||||||||||
172 | "d8:f3:5f:4e:b7:87:2b:2d:ab:06:92:e3:15:38:2f:b0", "global trustee", | - | ||||||||||||
173 | - | |||||||||||||
174 | "05:e2:e6:a4:cd:09:ea:54:d6:65:b0:75:fe:22:a2:56", "*.google.com", | - | ||||||||||||
175 | "0c:76:da:9c:91:0c:4e:2c:9e:fe:15:d0:58:93:3c:4c", "DigiNotar Root CA", | - | ||||||||||||
176 | "f1:4a:13:f4:87:2b:56:dc:39:df:84:ca:7a:a1:06:49", "DigiNotar Services CA", | - | ||||||||||||
177 | "36:16:71:55:43:42:1b:9d:e6:cb:a3:64:41:df:24:38", "DigiNotar Services 1024 CA", | - | ||||||||||||
178 | "0a:82:bd:1e:14:4e:88:14:d7:5b:1a:55:27:be:bf:3e", "DigiNotar Root CA G2", | - | ||||||||||||
179 | "a4:b6:ce:e3:2e:d3:35:46:26:3c:b3:55:3a:a8:92:21", "CertiID Enterprise Certificate Authority", | - | ||||||||||||
180 | "5b:d5:60:9c:64:17:68:cf:21:0e:35:fd:fb:05:ad:41", "DigiNotar Qualified CA", | - | ||||||||||||
181 | - | |||||||||||||
182 | "46:9c:2c:b0", "DigiNotar Services 1024 CA", | - | ||||||||||||
183 | "07:27:10:0d", "DigiNotar Cyber CA", | - | ||||||||||||
184 | "07:27:0f:f9", "DigiNotar Cyber CA", | - | ||||||||||||
185 | "07:27:10:03", "DigiNotar Cyber CA", | - | ||||||||||||
186 | "01:31:69:b0", "DigiNotar PKIoverheid CA Overheid en Bedrijven", | - | ||||||||||||
187 | "01:31:34:bf", "DigiNotar PKIoverheid CA Organisatie - G2", | - | ||||||||||||
188 | "d6:d0:29:77:f1:49:fd:1a:83:f2:b9:ea:94:8c:5c:b4", "DigiNotar Extended Validation CA", | - | ||||||||||||
189 | "1e:7d:7a:53:3d:45:30:41:96:40:0f:71:48:1f:45:04", "DigiNotar Public CA 2025", | - | ||||||||||||
190 | - | |||||||||||||
191 | - | |||||||||||||
192 | - | |||||||||||||
193 | "46:9c:2c:af", "DigiNotar Root CA", | - | ||||||||||||
194 | "46:9c:3c:c9", "DigiNotar Root CA", | - | ||||||||||||
195 | - | |||||||||||||
196 | "07:27:14:a9", "Digisign Server ID (Enrich)", | - | ||||||||||||
197 | "4c:0e:63:6a", "Digisign Server ID - (Enrich)", | - | ||||||||||||
198 | "72:03:21:05:c5:0c:08:57:3d:8e:a5:30:4e:fe:e8:b0", "UTN-USERFirst-Hardware", | - | ||||||||||||
199 | "41", "MD5 Collisions Inc. (http://www.phreedom.org/md5)", | - | ||||||||||||
200 | - | |||||||||||||
201 | "08:27", "*.EGO.GOV.TR", | - | ||||||||||||
202 | "08:64", "e-islem.kktcmerkezbankasi.org", | - | ||||||||||||
203 | - | |||||||||||||
204 | "03:1d:a7", "AC DG Tr\xC3\xA9sor SSL", | - | ||||||||||||
205 | "27:83", "NIC Certifying Authority", | - | ||||||||||||
206 | "27:92", "NIC CA 2011", | - | ||||||||||||
207 | "27:b1", "NIC CA 2014", | - | ||||||||||||
208 | 0 | - | ||||||||||||
209 | }; | - | ||||||||||||
210 | - | |||||||||||||
211 | bool QSslCertificatePrivate::isBlacklisted(const QSslCertificate &certificate) | - | ||||||||||||
212 | { | - | ||||||||||||
213 | for (int a = 0; certificate_blacklist[a] != 0
| 461-16867 | ||||||||||||
214 | QString blacklistedCommonName = QString::fromUtf8(certificate_blacklist[(a+1)]); | - | ||||||||||||
215 | if (certificate.serialNumber() == certificate_blacklist[a++]
| 18-16849 | ||||||||||||
216 | (certificate.subjectInfo(QSslCertificate::CommonName).contains(blacklistedCommonName)
| 0-18 | ||||||||||||
217 | certificate.issuerInfo(QSslCertificate::CommonName).contains(blacklistedCommonName)
| 0 | ||||||||||||
218 | return executed 18 times by 2 tests: true;return true; Executed by:
executed 18 times by 2 tests: return true; Executed by:
| 18 | ||||||||||||
219 | } executed 16849 times by 8 tests: end of block Executed by:
| 16849 | ||||||||||||
220 | return executed 461 times by 8 tests: false;return false; Executed by:
executed 461 times by 8 tests: return false; Executed by:
| 461 | ||||||||||||
221 | } | - | ||||||||||||
222 | - | |||||||||||||
223 | QByteArray QSslCertificatePrivate::subjectInfoToString(QSslCertificate::SubjectInfo info) | - | ||||||||||||
224 | { | - | ||||||||||||
225 | QByteArray str; | - | ||||||||||||
226 | switch (info) { | - | ||||||||||||
227 | case executed 76 times by 1 test: QSslCertificate::Organization:case QSslCertificate::Organization: Executed by:
executed 76 times by 1 test: str = QByteArray("O"); break;case QSslCertificate::Organization: Executed by:
executed 76 times by 1 test: break; Executed by:
| 76 | ||||||||||||
228 | case executed 481 times by 8 tests: QSslCertificate::CommonName:case QSslCertificate::CommonName: Executed by:
executed 481 times by 8 tests: str = QByteArray("CN"); break;case QSslCertificate::CommonName: Executed by:
executed 481 times by 8 tests: break; Executed by:
| 481 | ||||||||||||
229 | case executed 74 times by 1 test: QSslCertificate::LocalityName:case QSslCertificate::LocalityName: Executed by:
executed 74 times by 1 test: str = QByteArray("L"); break;case QSslCertificate::LocalityName: Executed by:
executed 74 times by 1 test: break; Executed by:
| 74 | ||||||||||||
230 | case executed 74 times by 1 test: QSslCertificate::OrganizationalUnitName:case QSslCertificate::OrganizationalUnitName: Executed by:
executed 74 times by 1 test: str = QByteArray("OU"); break;case QSslCertificate::OrganizationalUnitName: Executed by:
executed 74 times by 1 test: break; Executed by:
| 74 | ||||||||||||
231 | case executed 74 times by 1 test: QSslCertificate::CountryName:case QSslCertificate::CountryName: Executed by:
executed 74 times by 1 test: str = QByteArray("C"); break;case QSslCertificate::CountryName: Executed by:
executed 74 times by 1 test: break; Executed by:
| 74 | ||||||||||||
232 | case executed 74 times by 1 test: QSslCertificate::StateOrProvinceName:case QSslCertificate::StateOrProvinceName: Executed by:
executed 74 times by 1 test: str = QByteArray("ST"); break;case QSslCertificate::StateOrProvinceName: Executed by:
executed 74 times by 1 test: break; Executed by:
| 74 | ||||||||||||
233 | case never executed: QSslCertificate::DistinguishedNameQualifier:case QSslCertificate::DistinguishedNameQualifier: never executed: str = QByteArray("dnQualifier"); break;case QSslCertificate::DistinguishedNameQualifier: never executed: break; | 0 | ||||||||||||
234 | case never executed: QSslCertificate::SerialNumber:case QSslCertificate::SerialNumber: never executed: str = QByteArray("serialNumber"); break;case QSslCertificate::SerialNumber: never executed: break; | 0 | ||||||||||||
235 | case never executed: QSslCertificate::EmailAddress:case QSslCertificate::EmailAddress: never executed: str = QByteArray("emailAddress"); break;case QSslCertificate::EmailAddress: never executed: break; | 0 | ||||||||||||
236 | } | - | ||||||||||||
237 | return executed 853 times by 8 tests: str;return str; Executed by:
executed 853 times by 8 tests: return str; Executed by:
| 853 | ||||||||||||
238 | } | - | ||||||||||||
239 | QDebug operator<<(QDebug debug, const QSslCertificate &certificate) | - | ||||||||||||
240 | { | - | ||||||||||||
241 | QDebugStateSaver saver(debug); | - | ||||||||||||
242 | debug.resetFormat().nospace(); | - | ||||||||||||
243 | debug << "QSslCertificate(" | - | ||||||||||||
244 | << certificate.version() | - | ||||||||||||
245 | << ", " << certificate.serialNumber() | - | ||||||||||||
246 | << ", " << certificate.digest().toBase64() | - | ||||||||||||
247 | << ", " << certificate.issuerInfo(QSslCertificate::Organization) | - | ||||||||||||
248 | << ", " << certificate.subjectInfo(QSslCertificate::Organization) | - | ||||||||||||
249 | << ", " << certificate.subjectAlternativeNames() | - | ||||||||||||
250 | - | |||||||||||||
251 | << ", " << certificate.effectiveDate() | - | ||||||||||||
252 | << ", " << certificate.expiryDate() | - | ||||||||||||
253 | - | |||||||||||||
254 | << ')'; | - | ||||||||||||
255 | return never executed: debug;return debug; never executed: return debug; | 0 | ||||||||||||
256 | } | - | ||||||||||||
257 | QDebug operator<<(QDebug debug, QSslCertificate::SubjectInfo info) | - | ||||||||||||
258 | { | - | ||||||||||||
259 | switch (info) { | - | ||||||||||||
260 | case never executed: QSslCertificate::Organization:case QSslCertificate::Organization: never executed: debug << "Organization"; break;case QSslCertificate::Organization: never executed: break; | 0 | ||||||||||||
261 | case never executed: QSslCertificate::CommonName:case QSslCertificate::CommonName: never executed: debug << "CommonName"; break;case QSslCertificate::CommonName: never executed: break; | 0 | ||||||||||||
262 | case never executed: QSslCertificate::CountryName:case QSslCertificate::CountryName: never executed: debug << "CountryName"; break;case QSslCertificate::CountryName: never executed: break; | 0 | ||||||||||||
263 | case never executed: QSslCertificate::LocalityName:case QSslCertificate::LocalityName: never executed: debug << "LocalityName"; break;case QSslCertificate::LocalityName: never executed: break; | 0 | ||||||||||||
264 | case never executed: QSslCertificate::OrganizationalUnitName:case QSslCertificate::OrganizationalUnitName: never executed: debug << "OrganizationalUnitName"; break;case QSslCertificate::OrganizationalUnitName: never executed: break; | 0 | ||||||||||||
265 | case never executed: QSslCertificate::StateOrProvinceName:case QSslCertificate::StateOrProvinceName: never executed: debug << "StateOrProvinceName"; break;case QSslCertificate::StateOrProvinceName: never executed: break; | 0 | ||||||||||||
266 | case never executed: QSslCertificate::DistinguishedNameQualifier:case QSslCertificate::DistinguishedNameQualifier: never executed: debug << "DistinguishedNameQualifier"; break;case QSslCertificate::DistinguishedNameQualifier: never executed: break; | 0 | ||||||||||||
267 | case never executed: QSslCertificate::SerialNumber:case QSslCertificate::SerialNumber: never executed: debug << "SerialNumber"; break;case QSslCertificate::SerialNumber: never executed: break; | 0 | ||||||||||||
268 | case never executed: QSslCertificate::EmailAddress:case QSslCertificate::EmailAddress: never executed: debug << "EmailAddress"; break;case QSslCertificate::EmailAddress: never executed: break; | 0 | ||||||||||||
269 | } | - | ||||||||||||
270 | return never executed: debug;return debug; never executed: return debug; | 0 | ||||||||||||
271 | } | - | ||||||||||||
272 | - | |||||||||||||
273 | - | |||||||||||||
274 | - | |||||||||||||
Switch to Source code | Preprocessed file |