Skip to content

Commit f275a83

Browse files
committed
tls: Add fix for Mbed TLS configuration issue
Until we have a fix for Mbed-TLS/mbedtls#4512, we need to patch the fix during import time. Otherwise, we run into linker errors when PSA attempts to use RSA key generation, which we've excluded. This patch is extracted from Mbed-TLS/mbedtls#4513
1 parent 9360e0f commit f275a83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connectivity/mbedtls/include/mbedtls/config_psa.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,10 @@ extern "C" {
300300
#define MBEDTLS_PSA_BUILTIN_ALG_RSA_PSS 1
301301
#define PSA_WANT_ALG_RSA_PSS 1
302302
#endif /* MBEDTLS_PKCS1_V21 */
303+
#if defined(MBEDTLS_GENPRIME)
303304
#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_KEY_PAIR 1
304305
#define PSA_WANT_KEY_TYPE_RSA_KEY_PAIR 1
306+
#endif /* MBEDTLS_GENPRIME */
305307
#define MBEDTLS_PSA_BUILTIN_KEY_TYPE_RSA_PUBLIC_KEY 1
306308
#define PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY 1
307309
#endif /* MBEDTLS_RSA_C */

0 commit comments

Comments
 (0)