From 46c6fc74f19b5d742d4704013509a40bb2d7e01d Mon Sep 17 00:00:00 2001 From: XiaokangQian Date: Fri, 22 Oct 2021 10:20:28 +0000 Subject: [PATCH] Fix compile issue about MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL Signed-off-by: XiaokangQian --- library/ssl_tls13_keys.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/ssl_tls13_keys.h b/library/ssl_tls13_keys.h index 2509cffd59..1e6fff58bf 100644 --- a/library/ssl_tls13_keys.h +++ b/library/ssl_tls13_keys.h @@ -19,6 +19,7 @@ #if !defined(MBEDTLS_SSL_TLS1_3_KEYS_H) #define MBEDTLS_SSL_TLS1_3_KEYS_H +#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL) /* This requires MBEDTLS_SSL_TLS1_3_LABEL( idx, name, string ) to be defined at * the point of use. See e.g. the definition of mbedtls_ssl_tls1_3_labels_union * below. */ @@ -631,4 +632,5 @@ int mbedtls_ssl_tls1_3_calculate_expected_finished( mbedtls_ssl_context *ssl, size_t *actual_len, int from ); +#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */ #endif /* MBEDTLS_SSL_TLS1_3_KEYS_H */