From 745e561d2d3161521d868a1a48ecee1c40d1a183 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Mon, 2 Dec 2024 13:22:34 +0000 Subject: [PATCH] Move the psa_init() warnings to _CLI and _SRV Now that USA_PSA_CRYPTO is always on, users need to call psa_init() with all protocol versions. Signed-off-by: Janos Follath --- include/mbedtls/mbedtls_config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h index 8f770d671d..a559c07228 100644 --- a/include/mbedtls/mbedtls_config.h +++ b/include/mbedtls/mbedtls_config.h @@ -1556,8 +1556,6 @@ * * Requires: PSA_WANT_ALG_SHA_256 or PSA_WANT_ALG_SHA_384 * - * \warning You must call psa_crypto_init() before doing any TLS operations. - * * Comment this macro to disable support for TLS 1.2 / DTLS 1.2 */ #define MBEDTLS_SSL_PROTO_TLS1_2 @@ -1573,8 +1571,6 @@ * Requires: MBEDTLS_SSL_KEEP_PEER_CERTIFICATE * Requires: MBEDTLS_PSA_CRYPTO_C * - * \warning You must call psa_crypto_init() before doing any TLS operations. - * * Uncomment this macro to enable the support for TLS 1.3. */ #define MBEDTLS_SSL_PROTO_TLS1_3 @@ -3265,6 +3261,8 @@ * * Requires: MBEDTLS_SSL_TLS_C * + * \warning You must call psa_crypto_init() before doing any TLS operations. + * * This module is required for SSL/TLS client support. */ #define MBEDTLS_SSL_CLI_C @@ -3279,6 +3277,8 @@ * * Requires: MBEDTLS_SSL_TLS_C * + * \warning You must call psa_crypto_init() before doing any TLS operations. + * * This module is required for SSL/TLS server support. */ #define MBEDTLS_SSL_SRV_C