From 3b9de382084bb7a8b5f8735457844b0048e51748 Mon Sep 17 00:00:00 2001 From: Wenxing Hou Date: Thu, 14 Dec 2023 16:22:01 +0800 Subject: [PATCH] Make clienthello comment clear Signed-off-by: Wenxing Hou --- library/ssl_tls12_server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ssl_tls12_server.c b/library/ssl_tls12_server.c index 923b093af9..96b65f8b0e 100644 --- a/library/ssl_tls12_server.c +++ b/library/ssl_tls12_server.c @@ -1128,11 +1128,11 @@ read_record_header: msg_len -= mbedtls_ssl_hs_hdr_len(ssl); /* - * ClientHello layer: + * ClientHello layout: * 0 . 1 protocol version * 2 . 33 random bytes (starting with 4 bytes of Unix time) - * 34 . 35 session id length (1 byte) - * 35 . 34+x session id + * 34 . 34 session id length (1 byte) + * 35 . 34+x session id, where x = session id length from byte 34 * 35+x . 35+x DTLS only: cookie length (1 byte) * 36+x . .. DTLS only: cookie * .. . .. ciphersuite list length (2 bytes)