mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-01 04:20:45 +00:00
Improve a comment and fix some whitespace
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
141be6cc7f
commit
422370d633
@ -2366,7 +2366,7 @@ static int ssl_parse_server_ecdh_params_psa( mbedtls_ssl_context *ssl,
|
|||||||
* ECPoint public;
|
* ECPoint public;
|
||||||
* } ServerECDHParams;
|
* } ServerECDHParams;
|
||||||
*
|
*
|
||||||
* 1 curve_type (must be named curve)
|
* 1 curve_type (must be "named_curve")
|
||||||
* 2..3 NamedCurve
|
* 2..3 NamedCurve
|
||||||
* 4 ECPoint.len
|
* 4 ECPoint.len
|
||||||
* 5+ ECPoint contents
|
* 5+ ECPoint contents
|
||||||
|
@ -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 )
|
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 );
|
return mbedtls_ssl_check_curve_tls_id( ssl, tls_id );
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_ECP_C */
|
#endif /* MBEDTLS_ECP_C */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user