Skip to content

Commit

Permalink
test: fix build errors
Browse files Browse the repository at this point in the history
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
  • Loading branch information
valeriosetti committed Apr 12, 2023
1 parent ab2aa84 commit a9c612e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mbedtls/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void mbedtls_debug_print_mpi(const mbedtls_ssl_context *ssl, int level,
const char *text, const mbedtls_mpi *X);
#endif

#if defined(MBEDTLS_ECP_C)
#if defined(MBEDTLS_ECP_LIGHT)
/**
* \brief Print an ECP point to the debug output. This function is always
* used through the MBEDTLS_SSL_DEBUG_ECP() macro, which supplies the
Expand Down
4 changes: 2 additions & 2 deletions tests/scripts/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,7 @@ component_test_full_no_bignum () {
scripts/config.py unset MBEDTLS_BIGNUM_C
# Direct dependencies of bignum
scripts/config.py unset MBEDTLS_ECP_C
scripts/config.py unset MBEDTLS_ECP_LIGHT
scripts/config.py unset MBEDTLS_RSA_C
scripts/config.py unset MBEDTLS_DHM_C
# Direct dependencies of ECP
Expand Down Expand Up @@ -2250,8 +2251,7 @@ component_test_psa_crypto_config_accel_all_ec_algs_use_psa () {
# Build the library
loc_accel_flags="$loc_accel_flags $( echo "$loc_accel_list" | sed 's/[^ ]* */-DMBEDTLS_PSA_ACCEL_&/g' )"
loc_symbols="-DPSA_CRYPTO_DRIVER_TEST \
-DMBEDTLS_TEST_LIBTESTDRIVER1 \
-DMBEDTLS_ECP_LIGHT"
-DMBEDTLS_TEST_LIBTESTDRIVER1"
make CFLAGS="$ASAN_CFLAGS -Werror -I../tests/include -I../tests -I../../tests $loc_symbols $loc_accel_flags" LDFLAGS="-ltestdriver1 $ASAN_CFLAGS"

# Make sure any built-in EC alg was not re-enabled by accident (additive config)
Expand Down

0 comments on commit a9c612e

Please sign in to comment.