Skip to content

Commit cff94da

Browse files
committed
[nrf fromtree] modules: mbedtls: Provide CONFIG_MBEDTLS_ASN1_PARSE_C
The commit exports control of MBEDTLS_ASN1_PARSE_C, in mbedTLS module, via Kconfig. This allows applications to use ASN1 parser independently from other functions. Signed-off-by: Dominik Ermel <[email protected]> (cherry picked from commit e8589d2)
1 parent 7ee4bc9 commit cff94da

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

modules/mbedtls/Kconfig.tls-generic

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ config MBEDTLS_ECDH_C
149149
config MBEDTLS_ECDSA_C
150150
bool "Elliptic curve DSA library"
151151
depends on MBEDTLS_ECP_C
152+
select MBEDTLS_ASN1_PARSE_C
152153

153154
config MBEDTLS_ECJPAKE_C
154155
bool "Elliptic curve J-PAKE library"
@@ -402,6 +403,9 @@ endif # !(NRF_SECURITY || NORDIC_SECURITY_BACKEND)
402403
config MBEDTLS_GENPRIME_ENABLED
403404
bool "prime-number generation code."
404405

406+
config MBEDTLS_ASN1_PARSE_C
407+
bool "Support for ASN1 parser functions"
408+
405409
config MBEDTLS_PEM_CERTIFICATE_FORMAT
406410
bool "Support for PEM certificate format"
407411
help

modules/mbedtls/configs/config-tls-generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
#define MBEDTLS_PK_C
432432
#endif
433433

434-
#if defined(MBEDTLS_ECDSA_C) || defined(MBEDTLS_X509_USE_C)
434+
#if defined(CONFIG_MBEDTLS_ASN1_PARSE_C) || defined(MBEDTLS_X509_USE_C)
435435
#define MBEDTLS_ASN1_PARSE_C
436436
#endif
437437

0 commit comments

Comments
 (0)