From c81a15a019f17d8a2ab8690da24270157d306897 Mon Sep 17 00:00:00 2001 From: Xiaokang Qian Date: Mon, 19 Dec 2022 02:43:33 +0000 Subject: [PATCH] Change the comment format of end_of_early_data Signed-off-by: Xiaokang Qian --- library/ssl_tls13_client.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index 3219425c28..9dd0570043 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -2111,19 +2111,13 @@ cleanup: /* * Handler for MBEDTLS_SSL_END_OF_EARLY_DATA * - * RFC 8446: + * RFC 8446 section 4.5 * - * If the server sent an "early_data" extension in the EncryptedExtensions - * message, the client MUST send an EndOfEarlyData message after receiving - * the server Finished. - * - * If the server does not send an "early_data" extension - * in EncryptedExtensions, then the client MUST NOT send - * an EndOfEarlyData message. - */ - -/* Write end of early data message * struct {} EndOfEarlyData; + * + * If the server sent an "early_data" extension in EncryptedExtensions, the + * client MUST send an EndOfEarlyData message after receiving the server + * Finished. Otherwise, the client MUST NOT send an EndOfEarlyData message. */ #define SSL_END_OF_EARLY_DATA_WRITE 0