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:
parent
aca21b717c
commit
61ea17d30a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue