From 9e8761880b57d554769fa5a0c23d96760d487ac1 Mon Sep 17 00:00:00 2001 From: Harshit Malpani Date: Tue, 21 Nov 2023 17:46:22 +0530 Subject: [PATCH] fix(esp-tls): Add headers in esp_tls_errors.h header file Closes https://github.com/espressif/esp-idf/issues/12541 --- components/esp-tls/esp_tls_errors.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/esp-tls/esp_tls_errors.h b/components/esp-tls/esp_tls_errors.h index d87adeb43b..6606562671 100644 --- a/components/esp-tls/esp_tls_errors.h +++ b/components/esp-tls/esp_tls_errors.h @@ -10,8 +10,12 @@ #include "esp_err.h" #ifdef CONFIG_ESP_TLS_USING_MBEDTLS #include "mbedtls/error.h" +#include "mbedtls/ssl.h" +#elif CONFIG_ESP_TLS_USING_WOLFSSL +#include "wolfssl/wolfcrypt/settings.h" +#include "wolfssl/ssl.h" #endif -/* For wolfSSL, errors are included through ssl.h which is included by default by esp_tls.h */ + #ifdef __cplusplus extern "C" {