From 6476726ce410912f9cf7ce5bbc7a1db253533768 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Thu, 31 Mar 2022 14:13:57 +0200 Subject: [PATCH] Fix comments Signed-off-by: Ronald Cron --- library/ssl_client.c | 7 +++---- library/ssl_tls13_client.c | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/library/ssl_client.c b/library/ssl_client.c index fa3e8017d2..1ce7f13086 100644 --- a/library/ssl_client.c +++ b/library/ssl_client.c @@ -413,9 +413,6 @@ static int ssl_write_sig_alg_ext( mbedtls_ssl_context *ssl, unsigned char *buf, } #endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */ -/* Write cipher_suites - * CipherSuite cipher_suites<2..2^16-2>; - */ int mbedtls_ssl_validate_ciphersuite( const mbedtls_ssl_context *ssl, const mbedtls_ssl_ciphersuite_t *suite_info, @@ -481,7 +478,9 @@ static int ssl_write_client_hello_cipher_suites( MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 ); p += 2; - /* Write cipher_suites */ + /* Write cipher_suites + * CipherSuite cipher_suites<2..2^16-2>; + */ cipher_suites = p; for ( size_t i = 0; ciphersuite_list[i] != 0; i++ ) { diff --git a/library/ssl_tls13_client.c b/library/ssl_tls13_client.c index 34805021e9..3bb308c3a4 100644 --- a/library/ssl_tls13_client.c +++ b/library/ssl_tls13_client.c @@ -1084,8 +1084,6 @@ static int ssl_tls13_parse_server_hello( mbedtls_ssl_context *ssl, ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); /* * Check whether this ciphersuite is valid and offered. - * Via the force_ciphersuite version we may have instructed the client - * to use a different ciphersuite. */ if( ( mbedtls_ssl_validate_ciphersuite( ssl, ciphersuite_info, ssl->minor_ver, ssl->minor_ver ) != 0 ) ||