mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ce519ee783
Everytime we report error and log errno, we also capture the actual errno to an internal storage so that user application can retrieve its value.
27 lines
839 B
CMake
27 lines
839 B
CMake
set(srcs esp_tls.c esp-tls-crypto/esp_tls_crypto.c esp_tls_error_capture.c)
|
|
if(CONFIG_ESP_TLS_USING_MBEDTLS)
|
|
list(APPEND srcs
|
|
"esp_tls_mbedtls.c")
|
|
endif()
|
|
|
|
if(CONFIG_ESP_TLS_USING_WOLFSSL)
|
|
list(APPEND srcs
|
|
"esp_tls_wolfssl.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS "${srcs}"
|
|
INCLUDE_DIRS . esp-tls-crypto
|
|
PRIV_INCLUDE_DIRS "private_include"
|
|
REQUIRES mbedtls
|
|
PRIV_REQUIRES lwip nghttp)
|
|
|
|
if(CONFIG_ESP_TLS_USING_WOLFSSL)
|
|
idf_component_get_property(wolfssl esp-wolfssl COMPONENT_LIB)
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC ${wolfssl})
|
|
endif()
|
|
|
|
if(CONFIG_ESP_TLS_USE_SE)
|
|
idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB)
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC ${cryptoauthlib})
|
|
endif()
|