Refactor client_hello parser and writer

Signed-off-by: Jerry Yu <[email protected]>
This commit is contained in:
Jerry Yu
2022-11-06 11:54:21 +08:00
parent 4b8f2f7266
commit 63a459cde5
2 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -564,7 +564,7 @@ static int ssl_write_client_hello_body( mbedtls_ssl_context *ssl,
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
/* Keeping track of the included extensions */
handshake->sent_extensions = MBEDTLS_SSL_EXT_NONE;
handshake->sent_extensions = MBEDTLS_SSL_EXT_MASK_NONE;
#endif
/* First write extensions, then the total length */