Add initialization for structures

Signed-off-by: Gabor Mezei <[email protected]>
This commit is contained in:
Gabor Mezei
2022-09-28 15:32:08 +02:00
parent 662b301c27
commit 58a7a063f8
2 changed files with 4 additions and 0 deletions
+2
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)
+2
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 ) );