diff --git a/components/esp-wolfssl/Kconfig b/components/esp-wolfssl/Kconfig index 0018e0e7..0c33c8d0 100644 --- a/components/esp-wolfssl/Kconfig +++ b/components/esp-wolfssl/Kconfig @@ -8,4 +8,10 @@ config ESP_WOLFSSL_INTERNAL If users want to use external wolfssl, please disable this option. +config WOLFSSL_DEBUG + bool "Enable esp-wolfssl(internal) debugging" + default n + help + Enable esp-wolfssl(internal) debugging functions at compile time. + endmenu diff --git a/components/esp-wolfssl/Makefile.projbuild b/components/esp-wolfssl/Makefile.projbuild index c6f1ff2b..1b460433 100644 --- a/components/esp-wolfssl/Makefile.projbuild +++ b/components/esp-wolfssl/Makefile.projbuild @@ -1,10 +1,6 @@ # Anyone compiling mbedTLS code needs the name of the # alternative config file -#ifdef CONFIG_SSL_USING_MBEDTLS -CPPFLAGS += -DMBEDTLS_CONFIG_FILE='"mbedtls/esp_config.h"' -#endif - -#ifdef CONFIG_SSL_USING_WOLFSSL +ifdef CONFIG_ESP_WOLFSSL_INTERNAL CPPFLAGS += -DWOLFSSL_USER_SETTINGS -#endif +endif