Add initialization for structures

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-09-27 18:48:44 +02:00
parent 662b301c27
commit 58a7a063f8
No known key found for this signature in database
GPG Key ID: FEE76C0CF8C6267D
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,8 @@ void ecdh_invalid_param( )
int invalid_side = 42;
mbedtls_ecp_group_id valid_grp = MBEDTLS_ECP_DP_SECP192R1;
mbedtls_ecp_keypair_init( &kp );
mbedtls_ecdh_init( &ctx );
TEST_INVALID_PARAM( mbedtls_ecdh_init( NULL ) );
#if defined(MBEDTLS_ECP_RESTARTABLE)

View File

@ -110,6 +110,8 @@ void ecjpake_invalid_param( )
mbedtls_md_type_t valid_md = MBEDTLS_MD_SHA256;
mbedtls_ecp_group_id valid_group = MBEDTLS_ECP_DP_SECP256R1;
mbedtls_ecjpake_init( &ctx );
TEST_INVALID_PARAM( mbedtls_ecjpake_init( NULL ) );
TEST_VALID_PARAM( mbedtls_ecjpake_free( NULL ) );