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 <janos.follath@arm.com>
diff --git a/include/mbedtls/mbedtls_config.h b/include/mbedtls/mbedtls_config.h
index 8f770d6..a559c07 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