espressif / esp-wolfssl

WolfSSL port for ESP-IDF & ESP8266_RTOS_SDK
38 stars 13 forks source link

Updated wolfSSL to v5.7.2 #26

Open frankencode opened 1 month ago

frankencode commented 1 month ago

Change summary:

gojimmypi commented 1 week ago

wolfSSL is also supported as a Managed Component: https://components.espressif.com/components/wolfssl/wolfssl

There's an example of a flexible CMakeLists.txt for wolfSSL in the template example, including a user_settings.h file.

See https://github.com/espressif/esp-idf/issues/13966

gojimmypi commented 1 week ago

@frankencode check out my latest components/wolfssl/Kconfig that you may be interested in using.

frankencode commented 1 week ago

Thanks Jim! That's a lot of configure flags! I'll try to merge some from your user_settings/Kconfig when time allows. Another thing I wanted to do is to port the tests to pytest as used by other esp-idf components.. Furthermore I had to do some workarounds in the user_settings when removing "SINGLE_THREADED". You might want to check this out at the end of my user_settings.

gojimmypi commented 1 week ago

Hi @frankencode - that's interesting. I recall some time ago there was a problem with pthread.h. I thought that was resolved and addressed in settings.h but I don't see anything there.

I've not personally encountered that recently. I'll take a look. Thanks for the heads up.

In the meantime, you may also be interested in https://github.com/wolfSSL/wolfssl/pull/7953; There I've moved some of the common config user_settings.h detection to the common settings.h

gojimmypi commented 1 week ago

@frankencode I've not been able to reproduce any compiler errors related to the #include <pthread.h> and wolfSSL SINGLE_THREADED topic. What version of the ESP-IDF are you using? What, exactly, is the error you are seeing?

Other areas of interest: