mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-24 14:20:59 +08:00
tls13: Use a flag not a counter for CCS and HRR handling
Reconcile with 5fbd27055d15c8ac234a229389ff4e31977487a0 on another branch Signed-off-by: Gilles Peskine <gilles.peskine@arm.com>
This commit is contained in:
parent
7b8b696790
commit
93b305dc8e
@ -793,7 +793,7 @@ static int ssl_prepare_client_hello(mbedtls_ssl_context *ssl)
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
#if defined(MBEDTLS_SSL_PROTO_TLS1_3)
|
||||||
if (ssl->handshake->hello_retry_request_count == 0)
|
if (!ssl->handshake->hello_retry_request_flag)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ret = ssl_generate_random(ssl);
|
ret = ssl_generate_random(ssl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user