summaryrefslogtreecommitdiffstats
path: root/core/checkcloudconnection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/checkcloudconnection.cpp')
-rw-r--r--core/checkcloudconnection.cpp21
1 files changed, 3 insertions, 18 deletions
diff --git a/core/checkcloudconnection.cpp b/core/checkcloudconnection.cpp
index e8e48d8f6..98b87aef3 100644
--- a/core/checkcloudconnection.cpp
+++ b/core/checkcloudconnection.cpp
@@ -78,24 +78,9 @@ bool CheckCloudConnection::checkServer()
void CheckCloudConnection::sslErrors(const QList<QSslError> &errorList)
{
- if (verbose) {
- qDebug() << "Received error response trying to set up https connection with cloud storage backend:";
- for (QSslError err: errorList) {
- qDebug() << err.errorString();
- }
- }
- QSslConfiguration conf = reply->sslConfiguration();
- QSslCertificate cert = conf.peerCertificate();
- QByteArray hexDigest = cert.digest().toHex();
- if (reply->url().toString().contains(prefs.cloud_base_url) &&
- hexDigest == "13ff44c62996cfa5cd69d6810675490e") {
- if (verbose)
- qDebug() << "Overriding SSL check as I recognize the certificate digest" << hexDigest;
- reply->ignoreSslErrors();
- } else {
- if (verbose)
- qDebug() << "got invalid SSL certificate with hex digest" << hexDigest;
- }
+ qDebug() << "Received error response trying to set up https connection with cloud storage backend:";
+ for (QSslError err: errorList)
+ qDebug() << err.errorString();
}
// helper to be used from C code