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.
This commit is contained in:
Hanno Becker 2019-08-23 14:49:48 +01:00
parent 728a38b40d
commit 6cf97b7fc6

View File

@ -31,7 +31,6 @@
#endif #endif
#include "bignum.h" #include "bignum.h"
#include "ecp.h"
#if defined(MBEDTLS_X509_CRT_PARSE_C) #if defined(MBEDTLS_X509_CRT_PARSE_C)
#include "x509_crt.h" #include "x509_crt.h"
@ -43,6 +42,7 @@
#endif #endif
#if defined(MBEDTLS_ECDH_C) #if defined(MBEDTLS_ECDH_C)
#include "ecp.h"
#include "ecdh.h" #include "ecdh.h"
#endif #endif