Merge pull request #567 from lucalas/master

setFingerprint in WiFiClientSecure required to pass certificate Check
This commit is contained in:
Markus
2020-10-03 14:52:10 +02:00
committed by GitHub

View File

@ -179,6 +179,10 @@ void WebSocketsClient::loop(void) {
_client.ssl->setCACert((const uint8_t *)_CA_cert, strlen(_CA_cert) + 1);
#else
#error setCACert not implemented
#endif
} else if(_fingerprint.length()) {
#if defined(wificlientbearssl_h) && !defined(USING_AXTLS) && !defined(wificlientsecure_h)
_client.ssl->setFingerprint(_fingerprint.c_str());
#endif
}
} else {