mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 13:20:21 +00:00
Fix iop key agreement struct initilaization error on some platforms
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
fa4eb35418
commit
a98aeaff25
@ -510,15 +510,15 @@ struct psa_key_agreement_iop_s {
|
|||||||
unsigned int MBEDTLS_PRIVATE(id);
|
unsigned int MBEDTLS_PRIVATE(id);
|
||||||
psa_driver_key_agreement_interruptible_context_t MBEDTLS_PRIVATE(ctx);
|
psa_driver_key_agreement_interruptible_context_t MBEDTLS_PRIVATE(ctx);
|
||||||
uint32_t MBEDTLS_PRIVATE(num_ops);
|
uint32_t MBEDTLS_PRIVATE(num_ops);
|
||||||
unsigned int MBEDTLS_PRIVATE(error_occurred) : 1;
|
|
||||||
psa_key_attributes_t MBEDTLS_PRIVATE(attributes);
|
psa_key_attributes_t MBEDTLS_PRIVATE(attributes);
|
||||||
|
unsigned int MBEDTLS_PRIVATE(error_occurred) : 1;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT) && !defined(MBEDTLS_PSA_CRYPTO_C)
|
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT) && !defined(MBEDTLS_PSA_CRYPTO_C)
|
||||||
#define PSA_KEY_AGREEMENT_IOP_INIT { 0 }
|
#define PSA_KEY_AGREEMENT_IOP_INIT { 0 }
|
||||||
#else
|
#else
|
||||||
#define PSA_KEY_AGREEMENT_IOP_INIT { 0, { 0 }, 0, 0, { 0 } }
|
#define PSA_KEY_AGREEMENT_IOP_INIT { 0, { 0 }, 0, { 0 }, 0 }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline struct psa_key_agreement_iop_s
|
static inline struct psa_key_agreement_iop_s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user