You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As noted in #5909 (comment) there may be an unintuitive build time warning of the user_settings.h macros being redefined when using wolfSSL as a component in an ESP32 Espressif project (e.g. ESP-IDF). This includes using the managed component.
The cause of this is a missing WOLFSSL_USER_SETTINGS compiler definition. See the template example.
There should be a cmake check in the Espressif wolfssl component to more gracefully warn of the missing definition.
The text was updated successfully, but these errors were encountered:
I believe all examples in all repos have been updated to address this issue.
See the template example app for the proper way to include the user_settings.h:
/* wolfSSL */
/* Always include wolfcrypt/settings.h before any other wolfSSL file. */
/* Reminder: settings.h pulls in user_settings.h; don't include it here. */
#ifdef WOLFSSL_USER_SETTINGS
#include <wolfssl/wolfcrypt/settings.h>
#ifndef WOLFSSL_ESPIDF
#warning "Problem with wolfSSL user_settings."
#warning "Check components/wolfssl/include"
#endif
#include <wolfssl/wolfcrypt/port/Espressif/esp32-crypt.h>
#else
/* Define WOLFSSL_USER_SETTINGS project wide for settings.h to include */
/* wolfSSL user settings in ./components/wolfssl/include/user_settings.h */
#error "Missing WOLFSSL_USER_SETTINGS in CMakeLists or Makefile:\
CFLAGS +=-DWOLFSSL_USER_SETTINGS"
#endif
Version
latest master
Description
As noted in #5909 (comment) there may be an unintuitive build time warning of the
user_settings.h
macros being redefined when using wolfSSL as a component in an ESP32 Espressif project (e.g. ESP-IDF). This includes using the managed component.The cause of this is a missing
WOLFSSL_USER_SETTINGS
compiler definition. See the template example.There should be a
cmake
check in the Espressif wolfssl component to more gracefully warn of the missing definition.The text was updated successfully, but these errors were encountered: