File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,6 @@ void WebSocketsClient::loop(void) {
170170 _client.tcp = NULL ;
171171 }
172172 _client.ssl = new WEBSOCKETS_NETWORK_SSL_CLASS ();
173- _client.ssl ->setFingerprint (_fingerprint.c_str ());
174173 _client.tcp = _client.ssl ;
175174 if (_CA_cert) {
176175 DEBUG_WEBSOCKETS (" [WS-Client] setting CA certificate" );
@@ -180,6 +179,10 @@ void WebSocketsClient::loop(void) {
180179 _client.ssl ->setCACert ((const uint8_t *)_CA_cert, strlen (_CA_cert) + 1 );
181180#else
182181#error setCACert not implemented
182+ #endif
183+ } else if (_fingerprint.length ()) {
184+ #if defined(wificlientbearssl_h) && !defined(USING_AXTLS) && !defined(wificlientsecure_h)
185+ _client.ssl ->setFingerprint (_fingerprint.c_str ());
183186#endif
184187 }
185188 } else {
You can’t perform that action at this time.
0 commit comments