Remove mbedtls_ssl_conf::curve_list
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
diff --git a/library/ssl_misc.h b/library/ssl_misc.h
index 5bda91a..4d6ac2b 100644
--- a/library/ssl_misc.h
+++ b/library/ssl_misc.h
@@ -2270,25 +2270,11 @@
/*
* Return supported groups.
*
- * In future, invocations can be changed to ssl->conf->group_list
- * when mbedtls_ssl_conf_curves() is deleted.
- *
- * ssl->handshake->group_list is either a translation of curve_list to IANA TLS group
- * identifiers when mbedtls_ssl_conf_curves() has been used, or a pointer to
- * ssl->conf->group_list when mbedtls_ssl_conf_groups() has been more recently invoked.
- *
+ * In future, invocations can be changed to ssl->conf->group_list.
*/
static inline const void *mbedtls_ssl_get_groups(const mbedtls_ssl_context *ssl)
{
- #if defined(MBEDTLS_DEPRECATED_REMOVED) || !defined(MBEDTLS_ECP_C)
return ssl->conf->group_list;
- #else
- if ((ssl->handshake != NULL) && (ssl->handshake->group_list != NULL)) {
- return ssl->handshake->group_list;
- } else {
- return ssl->conf->group_list;
- }
- #endif
}
/*