Ignore:
Timestamp:
May 27, 2022, 10:10:28 PM (23 months ago)
Author:
stuerze
Message:

minor chnages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncuploadcaster.cpp

    r9735 r9736  
    123123 ////////////////////////////////////////////////////////////////////////////
    124124void bncUploadCaster::slotSslErrors(QList<QSslError> errors) {
    125   emit(newMessage("slotSslErrors", true));
    126125  QString msg = "SSL Error: ";
    127126  if (_outSocket) {
     
    130129         cert.issuerInfo(QSslCertificate::OrganizationalUnitName).count() &&
    131130         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")
    134132#if QT_VERSION >= 0x050000
    135133            .arg(cert.issuerInfo(QSslCertificate::OrganizationalUnitName).at(0))
     
    146144      msg += err.errorString();
    147145    }
    148     emit(newMessage(msg.toLatin1(), true));
    149146
    150147    if (_sslIgnoreErrors) {
    151148      _outSocket->ignoreSslErrors();
    152149      emit(newMessage("BNC ignores SSL errors as configured", true));
     150    } else {
     151      emit(newMessage(msg.toLatin1(), true));
    153152    }
    154153  }
     
    342341
    343342void bncUploadCaster::slotSslSocketConnectionClosed() {
    344   disconnect(_outSocket, SIGNAL(sslErrors(QList<QSslError>)), this, SLOT(slotSslErrors(QList<QSslError>)));
    345343  emit(newMessage("slotSslSocketConnectionClosed", true));
    346344  if (_outSocket) {
Note: See TracChangeset for help on using the changeset viewer.