ECDH: Add #ifdef to cleanly disable the Everest code
diff --git a/3rdparty/everest/library/everest.c b/3rdparty/everest/library/everest.c
index da1e426..2b111af 100755
--- a/3rdparty/everest/library/everest.c
+++ b/3rdparty/everest/library/everest.c
@@ -39,6 +39,8 @@
#define mbedtls_free free
#endif
+#if defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
+
int mbedtls_everest_setup( mbedtls_ecdh_context *ctx, int grp )
{
if( grp != MBEDTLS_ECP_DP_CURVE25519 )
@@ -124,3 +126,5 @@
if( ctx->var != MBEDTLS_ECDH_VARIANT_EVEREST ) return MBEDTLS_ERR_MPI_BAD_INPUT_DATA;
return mbedtls_x25519_calc_secret( x25519_ctx, olen, buf, blen, f_rng, p_rng );
}
+
+#endif /* MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED */
\ No newline at end of file