Add tests for valid NULL in ccm_free()

This commit is contained in:
k-stachowiak 2018-12-12 15:26:49 +01:00 committed by Gilles Peskine
parent 508bcd96db
commit dd63359dae
2 changed files with 12 additions and 0 deletions

View file

@ -4,6 +4,9 @@ mbedtls_ccm_self_test:
CCM - Invalid parameters
ccm_invalid_param:
CCM - Valid parameters
ccm_valid_param:
CCM init #1 AES-128: OK
depends_on:MBEDTLS_AES_C
mbedtls_ccm_setkey:MBEDTLS_CIPHER_ID_AES:128:0

View file

@ -530,3 +530,12 @@ exit:
return;
}
/* END_CASE */
/* BEGIN_CASE */
void ccm_valid_param( )
{
TEST_VALID_PARAM( mbedtls_ccm_free( NULL ) );
exit:
return;
}
/* END_CASE */