- Timestamp:
- May 31, 2022, 10:54:53 AM (2 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccore.h
r9211 r9738 30 30 #include "bncrawfile.h" 31 31 #include "bncephuser.h" 32 #include "bncsslconfig.h" 32 33 33 34 class bncComb; … … 56 57 QDateTime dateAndTimeGPS() const; 57 58 void setDateAndTimeGPS(QDateTime dateTime); 59 void setSslConfiguration(const bncSslConfig& sslConfig) {_sslConfig = sslConfig;} 60 QString confFileName() const {return _confFileName;} 58 61 void setConfFileName(const QString& confFileName); 59 QString confFileName() const {return _confFileName;} 62 bncSslConfig sslConfiguration() const {return _sslConfig;} 63 60 64 void writeRawData(const QByteArray& data, const QByteArray& staID, 61 65 const QByteArray& format); … … 146 150 QList<QTcpSocket*>* _socketsCorr; 147 151 bncCaster* _caster; 152 bncSslConfig _sslConfig; 148 153 QString _confFileName; 149 154 QDate _fileDate; -
trunk/BNC/src/bncmain.cpp
r9676 r9738 81 81 bool displaySet = false; 82 82 #endif 83 QByteArray rawFileName; 84 QString confFileName; 83 QByteArray rawFileName; 84 QString confFileName; 85 bncSslConfig sslConfig; 85 86 86 87 QByteArray printHelp = … … 393 394 BNC_CORE->setConfFileName( confFileName ); 394 395 396 BNC_CORE->setSslConfiguration( sslConfig ); 397 395 398 bncSettings settings; 396 399 -
trunk/BNC/src/bncnetqueryv2.cpp
r9725 r9738 135 135 // --------------- 136 136 QNetworkRequest request; 137 bncSslConfig sslConfig; 138 request.setSslConfiguration(sslConfig); 137 request.setSslConfiguration(BNC_CORE->sslConfiguration()); 139 138 request.setUrl(_url); 140 139 request.setRawHeader("Host" , _url.host().toLatin1()); … … 239 238 msg += err.errorString(); 240 239 } 241 BNC_CORE->slotMessage(msg.toLatin1(), true);242 240 243 241 if (_sslIgnoreErrors) { … … 246 244 } 247 245 else { 246 BNC_CORE->slotMessage(msg.toLatin1(), true); 248 247 stop(); 249 248 } -
trunk/BNC/src/upload/bncuploadcaster.cpp
r9737 r9738 64 64 65 65 _sslIgnoreErrors = (Qt::CheckState(settings.value("sslIgnoreErrors").toInt()) == Qt::Checked); 66 67 qRegisterMetaType<QList<QSslError> >("QList<QSslError>");68 66 69 67 _proxyOutHost = settings.value("proxyHost").toString(); … … 196 194 void bncUploadCaster::open() { 197 195 const int timeOut = 5000; // 5 seconds 198 bncSslConfig sslConfig;199 196 QByteArray msg; 200 197 … … 222 219 223 220 _outSocket = new QSslSocket(); 221 _outSocket->setSslConfiguration(BNC_CORE->sslConfiguration()); 224 222 _outSocket->setProxy(QNetworkProxy::NoProxy); 225 _outSocket->setSslConfiguration(sslConfig); 223 226 224 connect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 227 225 connect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); … … 339 337 340 338 void bncUploadCaster::slotSslSocketConnectionClosed() { 341 disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed()));342 disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));339 // disconnect(_outSocket, SIGNAL(disconnected()), this, SLOT(slotSslSocketConnectionClosed())); 340 // disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>))); 343 341 emit(newMessage("slotSslSocketConnectionClosed", true)); 344 342 if (_outSocket) {
Note:
See TracChangeset
for help on using the changeset viewer.