From 1ab51732e2f3456457f31d012e529e1259eca494 Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Thu, 22 Jan 2026 05:41:00 +0100 Subject: [PATCH] library: ssl: improve documentation of mbedtls_ssl_conf_groups() Signed-off-by: Valerio Setti --- include/mbedtls/ssl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/mbedtls/ssl.h b/include/mbedtls/ssl.h index ec69c83f15..b413dfba67 100644 --- a/include/mbedtls/ssl.h +++ b/include/mbedtls/ssl.h @@ -3703,6 +3703,10 @@ const uint16_t *mbedtls_ssl_get_supported_group_list(void); * keeping with the general principle of favoring the lowest * resource usage. * + * \note The list is not copied internally, only the reference to it + * is saved in \p conf. Do not free \p groups memory for the + * in which \p conf is being used. + * * \param conf SSL configuration * \param groups List of allowed groups ordered by preference, terminated by 0. * Must contain valid IANA NamedGroup IDs (provided via either an integer