mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-10 03:39:03 +08:00
test: pake: fix: destroy key only in opaque case
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
016f682796
commit
31e99bb0c7
@ -6264,7 +6264,10 @@ void ssl_ecjpake_set_password( int use_opaque_arg )
|
|||||||
ECJPAKE_TEST_SET_PASSWORD( 0 );
|
ECJPAKE_TEST_SET_PASSWORD( 0 );
|
||||||
|
|
||||||
#if defined( MBEDTLS_USE_PSA_CRYPTO )
|
#if defined( MBEDTLS_USE_PSA_CRYPTO )
|
||||||
|
if( use_opaque_arg )
|
||||||
|
{
|
||||||
psa_destroy_key( pwd_slot );
|
psa_destroy_key( pwd_slot );
|
||||||
|
}
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||||
mbedtls_ssl_free( &ssl );
|
mbedtls_ssl_free( &ssl );
|
||||||
mbedtls_ssl_config_free( &conf );
|
mbedtls_ssl_config_free( &conf );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user