- Timestamp:
- May 31, 2022, 4:38:51 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncuploadcaster.cpp
r9740 r9741 105 105 } 106 106 if (_outSocket) { 107 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));108 107 disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 109 108 delete _outSocket; … … 144 143 emit(newMessage(msg.toLatin1(), true)); 145 144 146 if (_sslIgnoreErrors) {147 _outSocket->ignoreSslErrors();148 emit(newMessage("BNC ignores SSL errors as configured", true));149 }150 145 } 151 146 } … … 219 214 _outSocket = new QSslSocket(); 220 215 _outSocket->setProxy(QNetworkProxy::NoProxy); 221 _outSocket->setSslConfiguration(BNC_SSL_CONFIG); 216 222 217 connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 223 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 218 219 if (_sslIgnoreErrors) { 220 _outSocket->ignoreSslErrors(); 221 emit(newMessage("BNC ignores SSL errors during upload as configured", true)); 222 } else { 223 _outSocket->setSslConfiguration(BNC_SSL_CONFIG); 224 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 225 } 224 226 225 227 if (!_proxy) { … … 336 338 void bncUploadCaster::slotSslSocketConnectionClosed() { 337 339 disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 338 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));339 340 emit(newMessage("slotSslSocketConnectionClosed", true)); 340 341 if (_outSocket) {
Note:
See TracChangeset
for help on using the changeset viewer.