diff --git a/include/mbedtls/debug.h b/include/mbedtls/debug.h index 0ca5a5b44..41cdd34a1 100644 --- a/include/mbedtls/debug.h +++ b/include/mbedtls/debug.h @@ -36,6 +36,10 @@ #include "ecp.h" #endif +#if defined(MBEDTLS_ECDH_C) +#include "ecdh.h" +#endif + #if defined(MBEDTLS_DEBUG_C) #define MBEDTLS_DEBUG_STRIP_PARENS( ... ) __VA_ARGS__ diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h index 0e38bc3c8..64138c53c 100644 --- a/include/mbedtls/ssl_internal.h +++ b/include/mbedtls/ssl_internal.h @@ -54,6 +54,14 @@ #include "ecjpake.h" #endif +#if defined(MBEDTLS_ECP_C) +#include "ecp.h" +#endif + +#if defined(MBEDTLS_ECDH_C) +#include "ecdh.h" +#endif + #if defined(MBEDTLS_USE_TINYCRYPT) #include "tinycrypt/ecc.h" #include "tinycrypt/ecc_dh.h"