fix _fingerprint is set checks for ESP32

see #633 and #632
This commit is contained in:
Links
2021-03-06 09:22:52 +01:00
committed by Markus
parent 7c3b1b7408
commit ed685e551f
2 changed files with 9 additions and 4 deletions

View File

@@ -112,12 +112,14 @@ class WebSocketsClient : protected WebSockets {
#ifdef SSL_AXTLS
String _fingerprint;
const char * _CA_cert;
#define SSL_FINGERPRINT_IS_SET (_fingerprint.length())
#define SSL_FINGERPRINT_NULL ""
#else
const uint8_t * _fingerprint;
BearSSL::X509List * _CA_cert;
BearSSL::X509List * _client_cert;
BearSSL::PrivateKey * _client_key;
#define SSL_FINGERPRINT_IS_SET (_fingerprint != NULL)
#define SSL_FINGERPRINT_NULL NULL
#endif