mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 08:15:37 +00:00
Add additional cert pinning assert
This commit is contained in:
parent
61d7aa0400
commit
99b0a56a6a
@ -410,6 +410,10 @@ NvHTTP::openConnection(QUrl baseUrl,
|
|||||||
|
|
||||||
QNetworkReply* reply = m_Nam.get(request);
|
QNetworkReply* reply = m_Nam.get(request);
|
||||||
|
|
||||||
|
// Assert that we always have a server cert for HTTPS, since
|
||||||
|
// the request will fail anyway if we do not.
|
||||||
|
Q_ASSERT(!m_ServerCert.isNull() || baseUrl == m_BaseUrlHttp);
|
||||||
|
|
||||||
if (!m_ServerCert.isNull()) {
|
if (!m_ServerCert.isNull()) {
|
||||||
// Pin the server certificate received during pairing
|
// Pin the server certificate received during pairing
|
||||||
QList<QSslError> expectedSslErrors;
|
QList<QSslError> expectedSslErrors;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user