fix(esp-tls): Add headers in esp_tls_errors.h header file

Closes https://github.com/espressif/esp-idf/issues/12541
This commit is contained in:
Harshit Malpani 2023-11-21 17:46:22 +05:30
parent 096d1ce1bb
commit 9e8761880b
No known key found for this signature in database
GPG Key ID: 441A8ACC7853D493

View File

@ -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" {