aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-10 17:33:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-19 12:51:01 -0700
commitda6395a4a8b68978caf47f98b48a82fabbe1dd20 (patch)
treef8d35bc28699b6a2dfeece4bc23a65e9a1e5c16a /core
parent8939b6a99bbcc2db335d557df802e31b8a310aec (diff)
downloadsubsurface-da6395a4a8b68978caf47f98b48a82fabbe1dd20.tar.gz
cloudstorage: remove ancient SSL hack
This was a hack for a very early SSL certificate that was rejected on some platforms. We haven't used that one in ages, so let's just remove the whole hack - but always show in the console output when there was an SSL error. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r--core/cloudstorage.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/core/cloudstorage.cpp b/core/cloudstorage.cpp
index d949a8989..151014359 100644
--- a/core/cloudstorage.cpp
+++ b/core/cloudstorage.cpp
@@ -92,15 +92,7 @@ void CloudStorageAuthenticate::sslErrors(const QList<QSslError> &errorList)
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() << "got invalid SSL certificate with hex digest" << hexDigest;
}
QNetworkAccessManager *manager()