Port SSL fingerprint checking from ESP8266 WiFiClientSecure to ESP32 (#1397)

This commit is contained in:
chemicstry
2018-05-14 14:00:40 +03:00
committed by Me No Dev
parent 0ea9ea4447
commit 00f962439a
4 changed files with 157 additions and 0 deletions

View File

@ -210,6 +210,14 @@ void WiFiClientSecure::setPrivateKey (const char *private_key)
_private_key = private_key;
}
bool WiFiClientSecure::verify(const char* fp, const char* domain_name)
{
if (!sslclient)
return false;
return verify_ssl_fingerprint(sslclient, fp, domain_name);
}
int WiFiClientSecure::lastError(char *buf, const size_t size)
{
if (!_lastError) {