Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions include/esp_wolfssl_stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ extern "C" {

#if CONFIG_ESP_TLS_CUSTOM_STACK

/**
* @brief Indicates that the wolfSSL TLS backend is available in this build.
*
* Defined whenever this component is part of the build with the ESP-TLS custom
* stack enabled (wolfSSL registers itself as that stack). Application code can
* `#ifdef ESP_TLS_HAS_WOLFSSL` to feature-detect wolfSSL.
*
* This mirrors the ESP_TLS_HAS_WOLFSSL macro that ESP-IDF used to define in
* esp_tls.h when wolfSSL was a built-in esp-tls backend
* (CONFIG_ESP_TLS_USING_WOLFSSL). It is kept under the same name so code that
* already feature-detects wolfSSL this way keeps working now that wolfSSL
* lives in the esp-wolfssl component.
*/
#define ESP_TLS_HAS_WOLFSSL

/**
* @brief Register wolfSSL as the custom TLS stack for ESP-TLS
*
Expand Down