library: ssl: make the list of "TLS ID" <-> "group name" public when possible

This is only done when MBEDTLS_DEBUG_C is declared in order not to inflate
the library size.

Signed-off-by: Valerio Setti <[email protected]>
This commit is contained in:
Valerio Setti
2026-01-27 00:51:35 +01:00
parent bb4f584876
commit 4f1e4fba80
2 changed files with 13 additions and 5 deletions
+8
View File
@@ -3695,6 +3695,14 @@ typedef struct {
{ MBEDTLS_SSL_IANA_TLS_GROUP_NONE, NULL } \
}
#if defined(MBEDTLS_DEBUG_C)
/*
* List of known "TLS ID" <-> "group name".
* #MBEDTLS_SSL_IANA_TLS_GROUPS_INFO is used to initialized the list.
*/
extern mbedtls_ssl_iana_tls_group_info_t mbedtls_ssl_iana_tls_group_info[];
#endif /* MBEDTLS_DEBUG_C */
/**
* \brief Return the list of supported groups (curves and finite fields).
*