mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8939b6a99b
commit
da6395a4a8
1 changed files with 1 additions and 9 deletions
|
|
@ -92,15 +92,7 @@ void CloudStorageAuthenticate::sslErrors(const QList<QSslError> &errorList)
|
||||||
QSslConfiguration conf = reply->sslConfiguration();
|
QSslConfiguration conf = reply->sslConfiguration();
|
||||||
QSslCertificate cert = conf.peerCertificate();
|
QSslCertificate cert = conf.peerCertificate();
|
||||||
QByteArray hexDigest = cert.digest().toHex();
|
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()
|
QNetworkAccessManager *manager()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue