From e5119898e4df73cd52372043f8910c6299a5a1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 9 Dec 2021 11:45:03 +0100 Subject: [PATCH] Improve a comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- library/ssl_cli.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index e411b70490..1233676afc 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -2366,9 +2366,16 @@ static int ssl_parse_server_ecdh_params_psa( mbedtls_ssl_context *ssl, mbedtls_ssl_handshake_params *handshake = ssl->handshake; /* - * Parse ECC group + * struct { + * ECParameters curve_params; + * ECPoint public; + * } ServerECDHParams; + * + * 1 curve_type (must be named curve) + * 2..3 NamedCurve + * 4 ECPoint.len + * 5+ ECPoint contents */ - if( end - *p < 4 ) return( MBEDTLS_ERR_SSL_DECODE_ERROR );