We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2952f commit 685aa22Copy full SHA for 685aa22
src/utility/WebSocketsClient.cpp
@@ -703,7 +703,12 @@ void WebSocketsClient::connectedCb() {
703
_client.tcp->setNoDelay(true);
704
705
if(_client.isSSL && _fingerprint.length()) {
706
- if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str())) {
+#if ESP_IDF_VERSION_MAJOR >= 3
707
+ if(!_client.ssl->verify(_fingerprint.c_str(), _host.c_str()))
708
+#else
709
+ if(!_client.ssl->setFingerprint(_fingerprint.c_str()))
710
+#endif
711
+ {
712
DEBUG_WEBSOCKETS("[WS-Client] certificate mismatch\n");
713
WebSockets::clientDisconnect(&_client, 1000);
714
return;
0 commit comments