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) {
170
170
_client.tcp = NULL ;
171
171
}
172
172
_client.ssl = new WEBSOCKETS_NETWORK_SSL_CLASS ();
173
- _client.ssl ->setFingerprint (_fingerprint.c_str ());
174
173
_client.tcp = _client.ssl ;
175
174
if (_CA_cert) {
176
175
DEBUG_WEBSOCKETS (" [WS-Client] setting CA certificate" );
@@ -180,6 +179,10 @@ void WebSocketsClient::loop(void) {
180
179
_client.ssl ->setCACert ((const uint8_t *)_CA_cert, strlen (_CA_cert) + 1 );
181
180
#else
182
181
#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 ());
183
186
#endif
184
187
}
185
188
} else {
You can’t perform that action at this time.
0 commit comments