Topic: [SOLVED] Esp-idf + wolfssl
I want to use wolfSSL on an ESP32 thing. But I cannot get it to work. I downloaded the full source code from the website and I already tried to place it on different places inside the folder structure of the esp-idf, but I always get errors that there are missing files. The last thing I tries was to copy the wolfssl folder into the freertos folder from esp-idf because wolfssl should work with freertos. However, when I do this, I get the following error:
/home/user/esp/esp-idf/components/freertos/include/freertos/wolfssl/ssl.h:30:40: fatal error: wolfssl/wolfcrypt/settings.h: No such file or directory
However, in the wolfcrypt folder there is a file named settings.h so I don't know why this error pops up. I have tried several solutions for the past two days, but I never managed to get it to work. If someone knows how to use wolfssl and esp-idf, I will be very happy. Also, eso-idf uses freertos, and I know that wolfssl should be available in esp-idf, however, it looks like the full version of freertos is not available on the esp-idf, so wolfssl is not provided.
I have also tried to include the wolfssl source code (c + h files) that was available in the full freertos download. I placed the wolfssl folder with the h files in esp-idf/components/freertos/include/freertos. The c files, I included in esp-idf/components/freertos. Now I get the following error:
error: unknown type name 'pthread_mutex_t' typedef pthread_mutex_t wolfSSL_Mutex
In file included from /home/user/esp/esp-idf/components/freertos/include/freertos/wolfssl/internal.h:28:0, from /home/user/esp/esp-idf/components/freertos/./keys.c:30:/home/user/esp/esp-idf/components/freertos/include/freertos/wolfssl/ssl.h:931:33: fatal error: sys/uio.h: No such file or directory
I have no clue what to do next.