Skip to content

Commit

Permalink
[nrf noup] crypto: Guard crypto_struct.h from requiring driver details
Browse files Browse the repository at this point in the history
-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ø <frank.kvamtro@nordicsemi.no>
  • Loading branch information
frkv committed Sep 18, 2024
1 parent b8dfab5 commit 70b9836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/psa/crypto_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 70b9836

Please sign in to comment.