Clear SSL_OP_LEGACY_SERVER_CONNECT (#146)

Co-authored-by: Erik Lindblad <erili@spotify.com>
This commit is contained in:
Erik Lindblad 2022-05-06 15:26:27 +02:00 committed by GitHub
parent 37a511c24d
commit e72b25e415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ QNetworkReply* gpclient::helper::createRequest(QString url, QByteArray params)
// Skip the ssl verifying // Skip the ssl verifying
QSslConfiguration conf = request.sslConfiguration(); QSslConfiguration conf = request.sslConfiguration();
conf.setPeerVerifyMode(QSslSocket::VerifyNone); conf.setPeerVerifyMode(QSslSocket::VerifyNone);
conf.setSslOption(QSsl::SslOptionDisableLegacyRenegotiation, false);
request.setSslConfiguration(conf); request.setSslConfiguration(conf);
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded"); request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");