tls: pake: fix missing return values check
Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
f11e05a413
commit
70d1fa538a
1 changed files with 2 additions and 2 deletions
|
@ -1908,7 +1908,7 @@ int mbedtls_ssl_set_hs_ecjpake_password( mbedtls_ssl_context *ssl,
|
||||||
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
|
return( MBEDTLS_ERR_SSL_HW_ACCEL_FAILED );
|
||||||
}
|
}
|
||||||
|
|
||||||
psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx,
|
status = psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx,
|
||||||
ssl->handshake->psa_pake_password );
|
ssl->handshake->psa_pake_password );
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
{
|
{
|
||||||
|
@ -1956,7 +1956,7 @@ int mbedtls_ssl_set_hs_ecjpake_password_opaque( mbedtls_ssl_context *ssl,
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx,
|
status = psa_pake_set_password_key( &ssl->handshake->psa_pake_ctx,
|
||||||
ssl->handshake->psa_pake_password );
|
ssl->handshake->psa_pake_password );
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in a new issue