pk/test_suite_pk: fix guards
pk: mbedtls_pk_can_do_ext() should be guarded by CRYPTO_CLIENT instead
of CRYPTO_C.
test: since the functions using opaque keys are now guarded by CRYPTO_C
and since CRYPTO_CLIENT is automatically enabled as soon as
CRYPTO_C is, then CRYPTO_CLIENT guards can be removed.
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
diff --git a/library/pk.c b/library/pk.c
index d52c77d..0a8214a 100644
--- a/library/pk.c
+++ b/library/pk.c
@@ -238,7 +238,7 @@
return ctx->pk_info->can_do(type);
}
-#if defined(MBEDTLS_PSA_CRYPTO_C)
+#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)
/*
* Tell if a PK can do the operations of the given PSA algorithm
*/
@@ -376,7 +376,7 @@
return 0;
}
-#endif /* MBEDTLS_PSA_CRYPTO_C */
+#endif /* MBEDTLS_PSA_CRYPTO_CLIENT */
#if defined(MBEDTLS_PSA_CRYPTO_C)
#if defined(MBEDTLS_RSA_C)