Changeset 3353 in ntrip
- Timestamp:
- Aug 22, 2011, 3:42:21 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncnetqueryv2.cpp
r3352 r3353 39 39 stop(); 40 40 } 41 _ignoreSslErrors = false; 41 42 } 42 43 … … 198 199 void bncNetQueryV2::slotSslErrors(QList<QSslError> errors) { 199 200 200 QString msg = "SSL Errors"; 201 QListIterator<QSslError> it(errors); 202 while (it.hasNext()) { 203 const QSslError& err = it.next(); 204 msg += "\n" + err.errorString(); 205 } 206 201 QString msg = "SSL Error\n"; 207 202 QSslCertificate cert = _reply->sslConfiguration().peerCertificate(); 208 203 if (!cert.isNull()) { 209 QString issuer = QString("\nIssued by:\n%1\n%2\n") 204 msg = QString("Server Certificate Issued by:\n" 205 "%1\n%2\nCannot be verified\n") 210 206 .arg(cert.issuerInfo(QSslCertificate::OrganizationalUnitName)) 211 207 .arg(cert.issuerInfo(QSslCertificate::Organization)); 212 msg += issuer; 208 } 209 else { 210 QListIterator<QSslError> it(errors); 211 while (it.hasNext()) { 212 const QSslError& err = it.next(); 213 msg += "\n" + err.errorString(); 214 } 213 215 } 214 216 215 217 ((bncApp*)qApp)->slotMessage(msg.toAscii(), true); 216 218 217 _reply->ignoreSslErrors(); 218 } 219 if (_ignoreSslErrors) { 220 _reply->ignoreSslErrors(); 221 } 222 else { 223 stop(); 224 } 225 } -
trunk/BNC/bncnetqueryv2.h
r3337 r3353 29 29 bool _firstData; 30 30 bool _secure; 31 bool _ignoreSslErrors; 31 32 }; 32 33
Note:
See TracChangeset
for help on using the changeset viewer.