psa: Don't duplicate policy initializer

Use the PSA_KEY_POLICY_INIT macro in the definition of
PSA_CORE_KEY_ATTRIBUTES_INIT in order to avoid duplicating the key
policy initializer.
This commit is contained in:
Jaeden Amero 2019-08-20 11:16:27 +01:00
parent c7529c910b
commit f89cc69660

View file

@ -379,7 +379,7 @@ typedef struct
psa_key_attributes_flag_t flags;
} psa_core_key_attributes_t;
#define PSA_CORE_KEY_ATTRIBUTES_INIT {0, 0, 0, {0, 0, 0}, 0, 0}
#define PSA_CORE_KEY_ATTRIBUTES_INIT {0, 0, 0, PSA_KEY_POLICY_INIT, 0, 0}
struct psa_key_attributes_s
{