From 70b9836e0601ceb4659963b8e70f2e5914e77b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Audun=20Kvamtr=C3=B8?= Date: Wed, 18 Sep 2024 23:35:35 +0200 Subject: [PATCH] [nrf noup] crypto: Guard crypto_struct.h from requiring driver details MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -This commit guards against taking in PSA crypto driver details by asking for psa/crypto-driver_contexts-primitives from the file psa/crypto_structs.h. This is not necessary in PSA crypto client scope Signed-off-by: Frank Audun Kvamtrø --- include/psa/crypto_struct.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/psa/crypto_struct.h b/include/psa/crypto_struct.h index 4a2b1d2..c9adddb 100644 --- a/include/psa/crypto_struct.h +++ b/include/psa/crypto_struct.h @@ -69,9 +69,11 @@ extern "C" { */ #include "psa/build_info.h" +#if defined(MBEDTLS_PSA_CRYPTO_C) /* Include the context definition for the compiled-in drivers for the primitive * algorithms. */ #include "psa/crypto_driver_contexts_primitives.h" +#endif /* defined(MBEDTLS_PSA_CRYPTO_C) */ struct psa_hash_operation_s { #if defined(MBEDTLS_PSA_CRYPTO_CLIENT) && !defined(MBEDTLS_PSA_CRYPTO_C)