Page 1 of 1

OpenSSL API wrapper not available for ports? (IDF 5.x)

Posted: Sat Nov 12, 2022 9:40 am
by RichPiano
We need to develop a cross platform database client based on websockets that is portable to Windows, Linux and the ESP32. This could be most efficiently done (I think) by using the popular Websocket++ library (github). However, Websocket++ would use the POSIX interface and OpenSSL, whereas the OpenSSL API wrapper is discontinued from IDF 5.x (according to documentation). Our app however runs on C++20 so reverting back to IDF4.4 is also not possible.

Also, the esp websocket client seems not yet ported to IDF 5.x so we're quite lost. Seems like the only solution is to write a custom websocket client based on mbed_tls. Any better ideas?

Re: OpenSSL API wrapper not available for ports? (IDF 5.x)

Posted: Wed Nov 16, 2022 7:27 pm
by ESP_cermak
Hi RichPiano

You can use esp_websocket_client in https://github.com/espressif/esp-protoc ... ket_client
It works with v5.0 and v5.1

Re: OpenSSL API wrapper not available for ports? (IDF 5.x)

Posted: Mon Nov 21, 2022 6:54 am
by RichPiano
Thank you. Why is it not included in idf v5.0 / 5.1?