Fixup: Correct inclusion of legacy ECP headers in ssl.h

Previously, ecp.h was included only if MBEDTLS_ECDH_C was set,
which broke the build in configurations using ECDSA, but not ECDH.
An example of such a config is configs/config-thread.h, which
uses ECJPAKE exclusively.

Moreover, the inclusion of ecdh.h isn't needed, because the header
only uses constants defined in the ECP module.
This commit is contained in:
Hanno Becker 2019-09-03 08:41:38 +01:00
parent a007e0db47
commit 82a7a21982

View file

@ -41,9 +41,8 @@
#include "dhm.h"
#endif
#if defined(MBEDTLS_ECDH_C)
#if defined(MBEDTLS_ECP_C)
#include "ecp.h"
#include "ecdh.h"
#endif
#if defined(MBEDTLS_USE_TINYCRYPT)