Fix comments

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2022-03-31 14:13:57 +02:00
parent ba120bb228
commit 6476726ce4
2 changed files with 3 additions and 6 deletions

View File

@ -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++ )
{

View File

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