From d0b83e1fc7e08fe7633f52b1b59771b8e53806fe Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Tue, 31 Jan 2023 10:16:23 +0100 Subject: [PATCH] build_info: fix PK's requirements for RSA_C Signed-off-by: Valerio Setti --- include/mbedtls/build_info.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/build_info.h b/include/mbedtls/build_info.h index 6cf1176de..b10b1ad4e 100644 --- a/include/mbedtls/build_info.h +++ b/include/mbedtls/build_info.h @@ -83,9 +83,10 @@ /* The PK wrappers need pk_write functions to format RSA key objects * when they are dispatching to the PSA API. This happens under USE_PSA_CRYPTO, * and also even without USE_PSA_CRYPTO for mbedtls_pk_sign_ext(). */ -#if defined(MBEDTLS_PK_C) && defined(MBEDTLS_PSA_CRYPTO_C) && \ - defined(MBEDTLS_RSA_C) +#if defined(MBEDTLS_PSA_CRYPTO_C) && defined(MBEDTLS_RSA_C) +#define MBEDTLS_PK_C #define MBEDTLS_PK_WRITE_C +#define MBEDTLS_PK_PARSE_C #endif #if !defined(MBEDTLS_SSL_PROTO_TLS1_2)