tls: psa_pake: fix return values in parse functions

Ensure they all belong to the MBEDTLS_ERR_SSL_* group

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
Valerio Setti 2022-11-18 12:11:00 +01:00
parent aca21b717c
commit 61ea17d30a
2 changed files with 2 additions and 2 deletions

View file

@ -8233,7 +8233,7 @@ int mbedtls_psa_ecjpake_read_round(
}
if( input_offset != len )
return PSA_ERROR_INVALID_ARGUMENT;
return MBEDTLS_ERR_SSL_HANDSHAKE_FAILURE;
return( 0 );
}

View file

@ -2354,7 +2354,7 @@ start_processing:
if( ( *p != MBEDTLS_ECP_TLS_NAMED_CURVE ) ||
( read_tls_id != curve_info->tls_id ) )
return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA );
return( MBEDTLS_ERR_SSL_ILLEGAL_PARAMETER );
p += 3;