1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

tls13: Use a flag not a counter for CCS and HRR handling

Reconcile with 5fbd27055d on another branch

Signed-off-by: Gilles Peskine <gilles.peskine@arm.com>
This commit is contained in:
Gilles Peskine
2024-03-14 15:05:09 +01:00
committed by GitHub
parent 7b8b696790
commit 93b305dc8e

View File

@ -793,7 +793,7 @@ static int ssl_prepare_client_hello(mbedtls_ssl_context *ssl)
#endif
{
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
if (ssl->handshake->hello_retry_request_count == 0)
if (!ssl->handshake->hello_retry_request_flag)
#endif
{
ret = ssl_generate_random(ssl);