mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 21:40:11 +00:00
tls13: srv: replace with internal API to check is_tls12_enabled
Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
parent
631e6bd221
commit
408ba6f7b8
@ -1921,7 +1921,7 @@ static int ssl_tls13_process_client_hello(mbedtls_ssl_context *ssl)
|
||||
*/
|
||||
if (SSL_CLIENT_HELLO_TLS1_2 == parse_client_hello_ret) {
|
||||
/* Check if server supports TLS 1.2 */
|
||||
if (ssl->conf->min_tls_version > MBEDTLS_SSL_VERSION_TLS1_2) {
|
||||
if (!mbedtls_ssl_conf_is_tls12_enabled(ssl->conf)) {
|
||||
MBEDTLS_SSL_DEBUG_MSG(
|
||||
1, ("Unsupported version of TLS 1.2 was received"));
|
||||
MBEDTLS_SSL_PEND_FATAL_ALERT(
|
||||
|
Loading…
x
Reference in New Issue
Block a user