commit | 74f3352b05a6d1b119fa6325ac1882eedf3860f9 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Aug 02 19:21:49 2019 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Thu Aug 08 10:58:09 2019 +0200 |
tree | a0f2e23fb3a800d2df691ec82793674b74dc326c | |
parent | 91e8c33f48a6e36a97e28513f3bdb8007ac7ad5d [diff] |
Add missing guard around a union field
diff --git a/library/psa_crypto_core.h b/library/psa_crypto_core.h index e289dbe..b67c0c5 100644 --- a/library/psa_crypto_core.h +++ b/library/psa_crypto_core.h
@@ -56,11 +56,13 @@ /* 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;