Fix conditional compilation (MBEDTLS_USE_PSA_CRYPTO)
Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 1bd9854..3cf741e 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -669,6 +669,7 @@
const unsigned char *, size_t,
unsigned char *, size_t);
+#if defined(MBEDTLS_USE_PSA_CRYPTO)
static int psa_status_to_mbedtls( psa_status_t status )
{
switch( status )
@@ -683,6 +684,7 @@
return( MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED );
}
}
+#endif /* MBEDTLS_USE_PSA_CRYPTO */
/*
* Populate a transform structure with session keys and all the other