From f65e8d9062875ccf7fff8cda79325a4f1af0cd5c Mon Sep 17 00:00:00 2001 From: lucalas Date: Thu, 1 Oct 2020 01:12:54 +0200 Subject: [PATCH] call setFingerPrint for ssl object in client with fingerprint received in beginSSL or no connection will start; --- src/WebSocketsClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebSocketsClient.cpp b/src/WebSocketsClient.cpp index 64b3f64..ebd83b6 100644 --- a/src/WebSocketsClient.cpp +++ b/src/WebSocketsClient.cpp @@ -170,6 +170,7 @@ void WebSocketsClient::loop(void) { _client.tcp = NULL; } _client.ssl = new WEBSOCKETS_NETWORK_SSL_CLASS(); + _client.ssl->setFingerprint(_fingerprint.c_str()); _client.tcp = _client.ssl; if(_CA_cert) { DEBUG_WEBSOCKETS("[WS-Client] setting CA certificate");