|
|
@ -164,9 +164,25 @@ class DownloadManager: public QObject { |
|
|
|
void sslErrors(const QList<QSslError> & errors) { |
|
|
|
void sslErrors(const QList<QSslError> & errors) { |
|
|
|
LOG; |
|
|
|
LOG; |
|
|
|
for (QList<QSslError>::const_iterator err(errors.begin()); |
|
|
|
for (QList<QSslError>::const_iterator err(errors.begin()); |
|
|
|
err!=errors.end(); ++err) |
|
|
|
err!=errors.end(); ++err) { |
|
|
|
LOG<<"SSL-Error: "<<err->errorString(); |
|
|
|
LOG<<"SSL-Error: "<<err->errorString(); |
|
|
|
|
|
|
|
LOG<<"Certificate Issuer: " |
|
|
|
|
|
|
|
<<"O="<<err->certificate().issuerInfo(QSslCertificate::Organization) |
|
|
|
|
|
|
|
<<"CN="<<err->certificate().issuerInfo(QSslCertificate::CommonName) |
|
|
|
|
|
|
|
<<"L="<<err->certificate().issuerInfo(QSslCertificate::LocalityName) |
|
|
|
|
|
|
|
<<"OU="<<err->certificate().issuerInfo(QSslCertificate::OrganizationalUnitName) |
|
|
|
|
|
|
|
<<"C="<<err->certificate().issuerInfo(QSslCertificate::CountryName) |
|
|
|
|
|
|
|
<<"ST="<<err->certificate().issuerInfo(QSslCertificate::StateOrProvinceName); |
|
|
|
|
|
|
|
LOG<<"Certificate Subject: " |
|
|
|
|
|
|
|
<<"O="<<err->certificate().subjectInfo(QSslCertificate::Organization) |
|
|
|
|
|
|
|
<<"CN="<<err->certificate().subjectInfo(QSslCertificate::CommonName) |
|
|
|
|
|
|
|
<<"L="<<err->certificate().subjectInfo(QSslCertificate::LocalityName) |
|
|
|
|
|
|
|
<<"OU="<<err->certificate().subjectInfo(QSslCertificate::OrganizationalUnitName) |
|
|
|
|
|
|
|
<<"C="<<err->certificate().subjectInfo(QSslCertificate::CountryName) |
|
|
|
|
|
|
|
<<"ST="<<err->certificate().subjectInfo(QSslCertificate::StateOrProvince); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
void uploadProgress(qint64 bytesSent, qint64 bytesTotal) { |
|
|
|
void uploadProgress(qint64 bytesSent, qint64 bytesTotal) { |
|
|
|
//LOG<<bytesSent<<bytesTotal;
|
|
|
|
//LOG<<bytesSent<<bytesTotal;
|
|
|
|
_downloads[qobject_cast<QNetworkReply*>(sender())].first = bytesSent; |
|
|
|
_downloads[qobject_cast<QNetworkReply*>(sender())].first = bytesSent; |
|
|
|