diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2021-04-10 17:33:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-04-19 12:51:01 -0700 |
commit | da6395a4a8b68978caf47f98b48a82fabbe1dd20 (patch) | |
tree | f8d35bc28699b6a2dfeece4bc23a65e9a1e5c16a /core | |
parent | 8939b6a99bbcc2db335d557df802e31b8a310aec (diff) | |
download | subsurface-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.cpp | 10 |
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() |