Improve a comment and fix some whitespace

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard 2022-02-07 11:55:21 +01:00
parent 141be6cc7f
commit 422370d633
2 changed files with 2 additions and 2 deletions

View file

@ -2366,7 +2366,7 @@ static int ssl_parse_server_ecdh_params_psa( mbedtls_ssl_context *ssl,
* ECPoint public;
* } ServerECDHParams;
*
* 1 curve_type (must be named curve)
* 1 curve_type (must be "named_curve")
* 2..3 NamedCurve
* 4 ECPoint.len
* 5+ ECPoint contents

View file

@ -7080,7 +7080,7 @@ int mbedtls_ssl_check_curve_tls_id( const mbedtls_ssl_context *ssl, uint16_t tls
*/
int mbedtls_ssl_check_curve( const mbedtls_ssl_context *ssl, mbedtls_ecp_group_id grp_id )
{
uint16_t tls_id = mbedtls_ecp_curve_info_from_grp_id(grp_id)->tls_id;
uint16_t tls_id = mbedtls_ecp_curve_info_from_grp_id( grp_id )->tls_id;
return mbedtls_ssl_check_curve_tls_id( ssl, tls_id );
}
#endif /* MBEDTLS_ECP_C */