From 80b1e2363ef0d55f55ab741597efaa67234f3681 Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Thu, 7 Mar 2019 17:09:34 +0200 Subject: [PATCH] Check X509 config before using the functions Check mbedtls X509 configuration before using X509 functionality. --- source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c b/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c index 05a721c517d1..817862390e2b 100644 --- a/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c +++ b/source/Security/protocols/tls_sec_prot/tls_sec_prot_lib.c @@ -24,7 +24,7 @@ #include MBEDTLS_CONFIG_FILE #endif -#if defined(MBEDTLS_SSL_TLS_C) +#if defined(MBEDTLS_SSL_TLS_C) && defined(MBEDTLS_X509_CRT_PARSE_C) #define WS_MBEDTLS_SECURITY_ENABLED #endif