Disable ecp_use_curve25519() if not POLARSSL_ECP_DP_M255_ENABLED
diff --git a/library/ecp_curves.c b/library/ecp_curves.c
index d3b518a..706e0ee 100644
--- a/library/ecp_curves.c
+++ b/library/ecp_curves.c
@@ -573,6 +573,7 @@
G ## _gy, sizeof( G ## _gy ), \
G ## _n, sizeof( G ## _n ) )
+#if defined(POLARSSL_ECP_DP_M255_ENABLED)
/*
* Specialized function for creating the Curve25519 group
*/
@@ -604,6 +605,7 @@
return( ret );
}
+#endif /* POLARSSL_ECP_DP_M255_ENABLED */
/*
* Set a group using well-known domain parameters