Changeset 9736 in ntrip
- Timestamp:
- May 27, 2022, 10:10:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9735 r9736 123 123 //////////////////////////////////////////////////////////////////////////// 124 124 void bncUploadCaster::slotSslErrors(QList<QSslError> errors) { 125 emit(newMessage("slotSslErrors", true));126 125 QString msg = "SSL Error: "; 127 126 if (_outSocket) { … … 130 129 cert.issuerInfo(QSslCertificate::OrganizationalUnitName).count() && 131 130 cert.issuerInfo(QSslCertificate::Organization).count()) { 132 msg += QString("Server Certificate Issued by:\n" 133 "%1\n%2\nCannot be verified\n") 131 msg += QString("Server Certificate Issued by:\n" "%1\n%2\nCannot be verified\n") 134 132 #if QT_VERSION >= 0x050000 135 133 .arg(cert.issuerInfo(QSslCertificate::OrganizationalUnitName).at(0)) … … 146 144 msg += err.errorString(); 147 145 } 148 emit(newMessage(msg.toLatin1(), true));149 146 150 147 if (_sslIgnoreErrors) { 151 148 _outSocket->ignoreSslErrors(); 152 149 emit(newMessage("BNC ignores SSL errors as configured", true)); 150 } else { 151 emit(newMessage(msg.toLatin1(), true)); 153 152 } 154 153 } … … 342 341 343 342 void bncUploadCaster::slotSslSocketConnectionClosed() { 344 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));345 343 emit(newMessage("slotSslSocketConnectionClosed", true)); 346 344 if (_outSocket) {
Note:
See TracChangeset
for help on using the changeset viewer.