mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-17 07:39:56 +00:00
test: pake: fix: destroy key only in opaque case
Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
@@ -6264,7 +6264,10 @@ void ssl_ecjpake_set_password( int use_opaque_arg )
|
||||
ECJPAKE_TEST_SET_PASSWORD( 0 );
|
||||
|
||||
#if defined( MBEDTLS_USE_PSA_CRYPTO )
|
||||
psa_destroy_key( pwd_slot );
|
||||
if( use_opaque_arg )
|
||||
{
|
||||
psa_destroy_key( pwd_slot );
|
||||
}
|
||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||
mbedtls_ssl_free( &ssl );
|
||||
mbedtls_ssl_config_free( &conf );
|
||||
|
||||
Reference in New Issue
Block a user