2020-11-26 02:22:41 -05:00
|
|
|
set(TEST_CRTS "crts/server_cert_chain.pem"
|
|
|
|
"crts/prvtkey.pem"
|
|
|
|
"crts/server_cert_bundle"
|
|
|
|
"crts/bad_md_crt.pem"
|
|
|
|
"crts/wrong_sig_crt_esp32_com.pem"
|
|
|
|
"crts/correct_sig_crt_esp32_com.pem")
|
|
|
|
|
2019-04-28 03:38:23 -04:00
|
|
|
idf_component_register(SRC_DIRS "."
|
2020-03-22 06:30:24 -04:00
|
|
|
PRIV_INCLUDE_DIRS "."
|
2022-09-07 06:53:54 -04:00
|
|
|
PRIV_REQUIRES cmock test_utils mbedtls esp_timer unity
|
|
|
|
EMBED_TXTFILES ${TEST_CRTS}
|
|
|
|
WHOLE_ARCHIVE)
|
2022-01-31 13:45:31 -05:00
|
|
|
target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format")
|
2019-06-04 08:19:25 -04:00
|
|
|
|
|
|
|
idf_component_get_property(mbedtls mbedtls COMPONENT_LIB)
|
2019-06-25 00:13:12 -04:00
|
|
|
target_compile_definitions(${mbedtls} INTERFACE "-DMBEDTLS_DEPRECATED_WARNING")
|
2019-06-04 08:19:25 -04:00
|
|
|
target_compile_definitions(mbedtls PUBLIC "-DMBEDTLS_DEPRECATED_WARNING")
|
|
|
|
target_compile_definitions(mbedcrypto PUBLIC "-DMBEDTLS_DEPRECATED_WARNING")
|
|
|
|
target_compile_definitions(mbedx509 PUBLIC "-DMBEDTLS_DEPRECATED_WARNING")
|