Declare conversion function even without 1.2
In 2.28 we may only enable TLS 1.0 or 1.1 in which case this function is
still needed.
Signed-off-by: David Horstmann <david.horstmann@arm.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index bc6dc27..73f9c7f 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -624,9 +624,7 @@
}
#endif /* MBEDTLS_SSL_PROTO_TLS1) || MBEDTLS_SSL_PROTO_TLS1_1 */
-#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
#if defined(MBEDTLS_USE_PSA_CRYPTO)
-
static int mbedtls_ssl_md_error_from_psa(psa_status_t status)
{
switch (status) {
@@ -641,6 +639,10 @@
return MBEDTLS_ERR_MD_HW_ACCEL_FAILED;
}
}
+#endif
+
+#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
+#if defined(MBEDTLS_USE_PSA_CRYPTO)
static psa_status_t setup_psa_key_derivation(psa_key_derivation_operation_t *derivation,
psa_key_id_t key,