Move wrapper include to psa_crypto_helpers.h

This makes memory poisoning wrappers available to (almost) all tests.

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann 2023-12-14 14:27:50 +00:00
parent f3c57149d1
commit 9c97fda0ab
2 changed files with 4 additions and 4 deletions

View File

@ -21,6 +21,10 @@
#include "mbedtls/psa_util.h"
#endif
#if defined(MBEDTLS_TEST_HOOKS)
#include "test/psa_memory_poisoning_wrappers.h"
#endif
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
/* Internal function for #TEST_USES_KEY_ID. Return 1 on success, 0 on failure. */

View File

@ -19,10 +19,6 @@
#include "test/psa_crypto_helpers.h"
#include "test/psa_exercise_key.h"
#if defined(MBEDTLS_TEST_HOOKS)
#include "test/psa_memory_poisoning_wrappers.h"
#endif
/* If this comes up, it's a bug in the test code or in the test data. */
#define UNUSED 0xdeadbeef