Skip to content

Commit 5304416

Browse files
edmontnashif
authored andcommitted
config: add CONFIG_MBEDTLS_PK_C and CONFIG_MBEDTLS_PK_WRITE_C
Add support for usage of generic public key functions. Signed-off-by: Eduardo Montoya <[email protected]>
1 parent 24d84ec commit 5304416

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

configs/config-tls-generic.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,11 @@
402402
#define MBEDTLS_PK_PARSE_C
403403
#endif
404404

405-
#if defined(MBEDTLS_PK_PARSE_C)
405+
#if defined(CONFIG_MBEDTLS_PK_WRITE_C)
406+
#define MBEDTLS_PK_WRITE_C
407+
#endif
408+
409+
#if defined(MBEDTLS_PK_PARSE_C) || defined(MBEDTLS_PK_WRITE_C)
406410
#define MBEDTLS_PK_C
407411
#endif
408412

0 commit comments

Comments
 (0)