Fix PSA_PAKE_OPERATION_INIT macro
Needs to be adapted for the clang -Wall -Wextra. Requirea to explicitly initialize all the members of the struct that is the first member in the union. Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
9dd2440c95
commit
ac067d779e
1 changed files with 2 additions and 2 deletions
|
@ -1895,7 +1895,7 @@ psa_status_t psa_pake_abort(psa_pake_operation_t *operation);
|
||||||
* psa_pake_operation_t.
|
* psa_pake_operation_t.
|
||||||
*/
|
*/
|
||||||
#define PSA_PAKE_OPERATION_INIT { 0, PSA_ALG_NONE, PSA_PAKE_OPERATION_STAGE_SETUP, \
|
#define PSA_PAKE_OPERATION_INIT { 0, PSA_ALG_NONE, PSA_PAKE_OPERATION_STAGE_SETUP, \
|
||||||
{ { 0 } }, { { 0 } } }
|
{ { 0, 0, 0, 0 } }, { { 0 } } }
|
||||||
|
|
||||||
struct psa_pake_cipher_suite_s {
|
struct psa_pake_cipher_suite_s {
|
||||||
psa_algorithm_t algorithm;
|
psa_algorithm_t algorithm;
|
||||||
|
@ -2045,8 +2045,8 @@ struct psa_pake_operation_s {
|
||||||
psa_jpake_computation_stage_t MBEDTLS_PRIVATE(jpake);
|
psa_jpake_computation_stage_t MBEDTLS_PRIVATE(jpake);
|
||||||
} MBEDTLS_PRIVATE(computation_stage);
|
} MBEDTLS_PRIVATE(computation_stage);
|
||||||
union {
|
union {
|
||||||
psa_crypto_driver_pake_inputs_t MBEDTLS_PRIVATE(inputs);
|
|
||||||
psa_driver_pake_context_t MBEDTLS_PRIVATE(ctx);
|
psa_driver_pake_context_t MBEDTLS_PRIVATE(ctx);
|
||||||
|
psa_crypto_driver_pake_inputs_t MBEDTLS_PRIVATE(inputs);
|
||||||
} MBEDTLS_PRIVATE(data);
|
} MBEDTLS_PRIVATE(data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue