tls: pake: avoid useless psa_pake_abort in setting opaque password

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2022-12-07 17:36:59 +01:00
parent 70d1fa538a
commit ae7fe7ee53

View file

@ -1945,7 +1945,7 @@ int mbedtls_ssl_set_hs_ecjpake_password_opaque( mbedtls_ssl_context *ssl,
status = psa_pake_setup( &ssl->handshake->psa_pake_ctx, &cipher_suite );
if( status != PSA_SUCCESS )
goto error;
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
if( ssl->conf->endpoint == MBEDTLS_SSL_IS_SERVER )
psa_role = PSA_PAKE_ROLE_SERVER;