From cb229db971f04ae6c3f034525f9d0d60280ef9dc Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Mon, 18 Dec 2023 15:30:46 +0000 Subject: [PATCH] Add extra MBEDTLS_PSA_CRYPTO_C guard for header Do not include psa_memory_poisoning_wrappers.h unless MBEDTLS_PSA_CRYPTO_C is set. Signed-off-by: David Horstmann --- tests/include/test/psa_crypto_helpers.h | 2 +- tests/src/helpers.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/include/test/psa_crypto_helpers.h b/tests/include/test/psa_crypto_helpers.h index c29134a92..55f24e0f8 100644 --- a/tests/include/test/psa_crypto_helpers.h +++ b/tests/include/test/psa_crypto_helpers.h @@ -21,7 +21,7 @@ #include "mbedtls/psa_util.h" #endif -#if defined(MBEDTLS_TEST_HOOKS) +#if defined(MBEDTLS_TEST_HOOKS) && defined(MBEDTLS_PSA_CRYPTO_C) #include "test/psa_memory_poisoning_wrappers.h" #endif diff --git a/tests/src/helpers.c b/tests/src/helpers.c index 41f805ed3..27a7a7a15 100644 --- a/tests/src/helpers.c +++ b/tests/src/helpers.c @@ -17,7 +17,7 @@ #include #endif -#if defined(MBEDTLS_TEST_HOOKS) +#if defined(MBEDTLS_TEST_HOOKS) && defined(MBEDTLS_PSA_CRYPTO_C) #include #endif