Add ecp_curve_list(), hide ecp_supported_curves
diff --git a/include/polarssl/ecp.h b/include/polarssl/ecp.h
index cd1568c..353dd8b 100644
--- a/include/polarssl/ecp.h
+++ b/include/polarssl/ecp.h
@@ -64,7 +64,7 @@
 } ecp_group_id;
 
 /**
- * Curve information for use by the SSL module
+ * Curve information for use by other modules
  */
 typedef struct
 {
@@ -75,11 +75,6 @@
 } ecp_curve_info;
 
 /**
- * List of supported curves
- */
-extern const ecp_curve_info ecp_supported_curves[];
-
-/**
  * \brief           ECP point structure (jacobian coordinates)
  *
  * \note            All functions expect and return points satisfying
@@ -181,6 +176,13 @@
 #endif
 
 /**
+ * \brief           Return the list of supported curves with associated info
+ *
+ * \return          A statically allocated array, the last entry is 0.
+ */
+const ecp_curve_info *ecp_curve_list( void );
+
+/**
  * \brief           Initialize a point (as zero)
  */
 void ecp_point_init( ecp_point *pt );