Add additional cert pinning assert

This commit is contained in:
Cameron Gutman 2018-12-22 20:05:45 -08:00
parent 61d7aa0400
commit 99b0a56a6a

View file

@ -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;