mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Add ESP_KEY_SOURCE_BUFFER and ESP_KEY_SOURCE_PSA key sources so all hardware backends (DS, ECDSA, secure element) are accessed via PSA key IDs through a single esp_tls_cfg_t.client_key field.
14 lines
705 B
CMake
14 lines
705 B
CMake
# NOTE: This kind of mocking currently works on Linux targets only.
|
|
# On Espressif chips, too many dependencies are missing at the moment.
|
|
message(STATUS "building ESP-TLS MOCKS")
|
|
|
|
idf_component_get_property(original_esp_tls_dir esp-tls COMPONENT_OVERRIDEN_DIR)
|
|
|
|
idf_component_mock(INCLUDE_DIRS "${original_esp_tls_dir}"
|
|
"${original_esp_tls_dir}/esp-tls-crypto"
|
|
MOCK_HEADER_FILES ${original_esp_tls_dir}/esp_tls.h
|
|
${original_esp_tls_dir}/esp-tls-crypto/esp_tls_crypto.h
|
|
REQUIRES mbedtls esp_security
|
|
)
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-array-parameter)
|