tls: fix + save code size when DEBUG_C is not enabled

Some PSA curves' symbols (PSA_WANT_) were not matching the corresponding
MBEDTLS_ECP_DP_. This was fixed together with the removal of extra code
when DEBUG_C is not enabled.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2023-01-04 16:12:42 +01:00
parent 40d9ca907b
commit 67419f0e11
4 changed files with 37 additions and 27 deletions

View file

@ -940,13 +940,13 @@ component_test_full_cmake_gcc_asan () {
msg "test: context-info.sh (full config, ASan build)" # ~ 15 sec
tests/context-info.sh
# Verify that TLS and X509 libraries have no dipendency from
# "mbedtls_ecp_curve" symbols.
msg "test: verify that TLS and X509 have no dependency from mbedtls_ecp_curve symbols"
msg "test: check direct ECP dependencies in TLS and X.509"
docs/architecture/psa-migration/syms.sh full
# TODO: replace "mbedtls_ecp_curve" with "mbedtls_ecp" also for
# "full-tls-external" once Issue6839 is completed
not grep mbedtls_ecp_curve full-tls-external
not grep mbedtls_ecp_curve full-x509-external
not grep mbedtls_ecp full-x509-external
rm full-tls-external \
full-tls-modules \