mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
@ -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 */
|
#endif /* MBEDTLS_KEY_EXCHANGE_WITH_CERT_ENABLED */
|
||||||
|
|
||||||
/* Write cipher_suites
|
|
||||||
* CipherSuite cipher_suites<2..2^16-2>;
|
|
||||||
*/
|
|
||||||
int mbedtls_ssl_validate_ciphersuite(
|
int mbedtls_ssl_validate_ciphersuite(
|
||||||
const mbedtls_ssl_context *ssl,
|
const mbedtls_ssl_context *ssl,
|
||||||
const mbedtls_ssl_ciphersuite_t *suite_info,
|
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 );
|
MBEDTLS_SSL_CHK_BUF_PTR( p, end, 2 );
|
||||||
p += 2;
|
p += 2;
|
||||||
|
|
||||||
/* Write cipher_suites */
|
/* Write cipher_suites
|
||||||
|
* CipherSuite cipher_suites<2..2^16-2>;
|
||||||
|
*/
|
||||||
cipher_suites = p;
|
cipher_suites = p;
|
||||||
for ( size_t i = 0; ciphersuite_list[i] != 0; i++ )
|
for ( size_t i = 0; ciphersuite_list[i] != 0; i++ )
|
||||||
{
|
{
|
||||||
|
@ -1084,8 +1084,6 @@ static int ssl_tls13_parse_server_hello( mbedtls_ssl_context *ssl,
|
|||||||
ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite );
|
ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite );
|
||||||
/*
|
/*
|
||||||
* Check whether this ciphersuite is valid and offered.
|
* 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(
|
if( ( mbedtls_ssl_validate_ciphersuite(
|
||||||
ssl, ciphersuite_info, ssl->minor_ver, ssl->minor_ver ) != 0 ) ||
|
ssl, ciphersuite_info, ssl->minor_ver, ssl->minor_ver ) != 0 ) ||
|
||||||
|
Reference in New Issue
Block a user