mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
Add additional cert pinning assert
This commit is contained in:
parent
61d7aa0400
commit
99b0a56a6a
1 changed files with 4 additions and 0 deletions
|
@ -410,6 +410,10 @@ NvHTTP::openConnection(QUrl baseUrl,
|
|||
|
||||
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()) {
|
||||
// Pin the server certificate received during pairing
|
||||
QList<QSslError> expectedSslErrors;
|
||||
|
|
Loading…
Reference in a new issue