From 96ae92657236a7c3c753c5a8f741d014e19e4dbe Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Tue, 28 Jun 2022 11:45:18 +0200 Subject: [PATCH] Typo Signed-off-by: Gabor Mezei --- library/ssl_msg.c | 2 +- library/ssl_tls13_server.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/library/ssl_msg.c b/library/ssl_msg.c index 4c9a17796..d0b8a64db 100644 --- a/library/ssl_msg.c +++ b/library/ssl_msg.c @@ -2720,7 +2720,7 @@ int mbedtls_ssl_write_record( mbedtls_ssl_context *ssl, int force_flush ) if( ++ssl->cur_out_ctr[i - 1] != 0 ) break; - /* The loop goes to its end iff the counter is wrapping */ + /* The loop goes to its end if the counter is wrapping */ if( i == mbedtls_ssl_ep_len( ssl ) ) { MBEDTLS_SSL_DEBUG_MSG( 1, ( "outgoing message counter would wrap" ) ); diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c index 29d4ffdf5..a8aed63a2 100644 --- a/library/ssl_tls13_server.c +++ b/library/ssl_tls13_server.c @@ -1273,8 +1273,8 @@ static int ssl_tls13_write_server_hello( mbedtls_ssl_context *ssl ) * after its first handshake message. This may either be after * a ServerHello or a HelloRetryRequest. */ - mbedtls_ssl_handshake_set_state( ssl, - MBEDTLS_SSL_SERVER_CCS_AFTER_SERVER_HELLO ); + mbedtls_ssl_handshake_set_state( + ssl, MBEDTLS_SSL_SERVER_CCS_AFTER_SERVER_HELLO ); #else mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_ENCRYPTED_EXTENSIONS ); #endif /* MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE */ @@ -1348,8 +1348,8 @@ static int ssl_tls13_write_hello_retry_request( mbedtls_ssl_context *ssl ) * after its first handshake message. This may either be after * a ServerHello or a HelloRetryRequest. */ - mbedtls_ssl_handshake_set_state( ssl, - MBEDTLS_SSL_SERVER_CCS_AFTER_HELLO_RETRY_REUEST ); + mbedtls_ssl_handshake_set_state( + ssl, MBEDTLS_SSL_SERVER_CCS_AFTER_HELLO_RETRY_REUEST ); #else mbedtls_ssl_handshake_set_state( ssl, MBEDTLS_SSL_CLIENT_HELLO ); #endif /* MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE */