Enforce our choice of allowed curves.
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h
index f4084e8..d610052 100644
--- a/include/polarssl/ssl.h
+++ b/include/polarssl/ssl.h
@@ -1168,7 +1168,10 @@
  *                 list of available certificates instead.
  *
  *                 On client: this affects the list of curves offered for any
- *                 use. The server can override our preferences.
+ *                 use. The server can override our preference order.
+ *
+ *                 Both sides: limits the set of curves used by peer to the
+ *                 listed curves for any use (ECDH(E), certificates).
  *
  * \param ssl      SSL context
  * \param curves   Ordered list of allowed curves,
@@ -1589,6 +1592,10 @@
 
 md_type_t ssl_md_alg_from_hash( unsigned char hash );
 
+#if defined(POLARSSL_SSL_SET_CURVES)
+int ssl_curve_is_acceptable( const ssl_context *ssl, ecp_group_id grp_id );
+#endif
+
 #if defined(POLARSSL_X509_CRT_PARSE_C)
 static inline pk_context *ssl_own_key( ssl_context *ssl )
 {