diff options
-rw-r--r-- | api/logic/net/Download.cpp | 12 | ||||
-rw-r--r-- | api/logic/net/Download.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/api/logic/net/Download.cpp b/api/logic/net/Download.cpp index 12c1b201..aca0c7d7 100644 --- a/api/logic/net/Download.cpp +++ b/api/logic/net/Download.cpp @@ -135,6 +135,18 @@ void Download::downloadError(QNetworkReply::NetworkError error) } } +void Download::sslErrors(const QList<QSslError> & errors) +{ + int i = 1; + for (auto error : errors) + { + qCritical() << "Download" << m_url.toString() << "SSL Error #" << i << " : " << error.errorString(); + auto cert = error.certificate(); + qCritical() << "Certificate in question:\n" << cert.toText(); + i++; + } +} + bool Download::handleRedirect() { QVariant redirect = m_reply->header(QNetworkRequest::LocationHeader); diff --git a/api/logic/net/Download.h b/api/logic/net/Download.h index 3347dc96..6554a8dc 100644 --- a/api/logic/net/Download.h +++ b/api/logic/net/Download.h @@ -58,6 +58,7 @@ private: /* methods */ protected slots: void downloadProgress(qint64 bytesReceived, qint64 bytesTotal) override; void downloadError(QNetworkReply::NetworkError error) override; + void sslErrors(const QList<QSslError> & errors); void downloadFinished() override; void downloadReadyRead() override; |