mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 21:25:40 +01:00
Fix test that wasn't actually effective
psa_destroy_key() returns success even if the slot is empty.
This commit is contained in:
parent
fa9a1ca967
commit
23a1ccd23f
@ -169,6 +169,7 @@ void pk_psa_utils( )
|
|||||||
|
|
||||||
/* test that freeing the context does not destroy the key */
|
/* test that freeing the context does not destroy the key */
|
||||||
mbedtls_pk_free( &pk );
|
mbedtls_pk_free( &pk );
|
||||||
|
TEST_ASSERT( PSA_SUCCESS == psa_get_key_information( key, NULL, NULL ) );
|
||||||
TEST_ASSERT( PSA_SUCCESS == psa_destroy_key( key ) );
|
TEST_ASSERT( PSA_SUCCESS == psa_destroy_key( key ) );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user