From 74f3352b05a6d1b119fa6325ac1882eedf3860f9 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Fri, 2 Aug 2019 19:21:49 +0200 Subject: [PATCH] Add missing guard around a union field --- library/psa_crypto_core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/psa_crypto_core.h b/library/psa_crypto_core.h index e289dbeef8..b67c0c576a 100644 --- a/library/psa_crypto_core.h +++ b/library/psa_crypto_core.h @@ -56,11 +56,13 @@ typedef struct /* EC public key or key pair */ mbedtls_ecp_keypair *ecp; #endif /* MBEDTLS_ECP_C */ +#if defined(MBEDTLS_PSA_CRYPTO_SE_C) /* Any key type in a secure element */ struct se { psa_key_slot_number_t slot_number; } se; +#endif /* MBEDTLS_PSA_CRYPTO_SE_C */ } data; } psa_key_slot_t;