From e0a6412d8ded518e0b38b8610b2bbc7d639b177a Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Thu, 23 Dec 2021 11:06:26 +0800 Subject: [PATCH] tls13_only: check_config pass Signed-off-by: Jerry Yu --- include/mbedtls/check_config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/mbedtls/check_config.h b/include/mbedtls/check_config.h index d7cc7bcd64..c25ac0a885 100644 --- a/include/mbedtls/check_config.h +++ b/include/mbedtls/check_config.h @@ -643,7 +643,8 @@ #error "MBEDTLS_SSL_SRV_C defined, but not all prerequisites" #endif -#if defined(MBEDTLS_SSL_TLS_C) && !defined(MBEDTLS_SSL_PROTO_TLS1_2) +#if defined(MBEDTLS_SSL_TLS_C) && \ + !( defined(MBEDTLS_SSL_PROTO_TLS1_2) || defined(MBEDTLS_SSL_PROTO_TLS1_3) ) #error "MBEDTLS_SSL_TLS_C defined, but no protocols are active" #endif