Skip to content

Commit 91fcba4

Browse files
Add missing guard around a union field
1 parent 2f13648 commit 91fcba4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/psa_crypto_core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ typedef struct
5656
/* EC public key or key pair */
5757
mbedtls_ecp_keypair *ecp;
5858
#endif /* MBEDTLS_ECP_C */
59+
#if defined(MBEDTLS_PSA_CRYPTO_SE_C)
5960
/* Any key type in a secure element */
6061
struct se
6162
{
6263
psa_key_slot_number_t slot_number;
6364
} se;
65+
#endif /* MBEDTLS_PSA_CRYPTO_SE_C */
6466
} data;
6567
} psa_key_slot_t;
6668

0 commit comments

Comments
 (0)