Skip to content

Commit

Permalink
Add initialization for structures
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Mezei <[email protected]>
  • Loading branch information
gabor-mezei-arm committed Sep 28, 2022
1 parent 662b301 commit 58a7a06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/suites/test_suite_ecdh.function
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions tests/suites/test_suite_ecjpake.function
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );

Expand Down

0 comments on commit 58a7a06

Please sign in to comment.