1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Store fingerprint as raw byte array

This commit is contained in:
Ivan Grokhotkov
2015-09-18 12:38:27 +03:00
parent a069bc0eb6
commit 6f48f0d114
3 changed files with 5 additions and 7 deletions

View File

@ -1892,8 +1892,7 @@ EXP_FUNC int STDCALL ssl_match_fingerprint(const SSL *ssl, const uint8_t* fp)
uint8_t cert_fp[SHA1_SIZE];
X509_CTX* x509 = ssl->x509_ctx;
bi_export(x509->rsa_ctx->bi_ctx, x509->fingerprint, cert_fp, SHA1_SIZE);
return memcmp(cert_fp, fp, SHA1_SIZE);
return memcmp(x509->fingerprint, fp, SHA1_SIZE);
}
#endif /* CONFIG_SSL_CERT_VERIFICATION */