From 6cf97b7fc6e13473ae8ab49dee4c7d5cb260eb50 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Fri, 23 Aug 2019 14:49:48 +0100 Subject: [PATCH] Don't unconditionally include ecp.h in ssl.h Remark: Including ecp.h is actually redundant because it's also included from ecdh.h. However, it's good practice to explicitly include header files that are being used directly, and ssl.h does use MBEDTLS_ECP_MAX_BYTES which is defined in ecp.h. --- include/mbedtls/ssl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index 6660346e4..a23003cd7 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -31,7 +31,6 @@ #endif #include "bignum.h" -#include "ecp.h" #if defined(MBEDTLS_X509_CRT_PARSE_C) #include "x509_crt.h" @@ -43,6 +42,7 @@ #endif #if defined(MBEDTLS_ECDH_C) +#include "ecp.h" #include "ecdh.h" #endif