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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);