Skip to content

Commit e8589d2

Browse files
de-nordickartben
authored andcommitted
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]>
1 parent 5cd3817 commit e8589d2

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
@@ -138,6 +138,7 @@ config MBEDTLS_ECDH_C
138138
config MBEDTLS_ECDSA_C
139139
bool "Elliptic curve DSA library"
140140
depends on MBEDTLS_ECP_C
141+
select MBEDTLS_ASN1_PARSE_C
141142

142143
config MBEDTLS_ECJPAKE_C
143144
bool "Elliptic curve J-PAKE library"
@@ -374,6 +375,9 @@ config MBEDTLS_MD
374375
config MBEDTLS_GENPRIME_ENABLED
375376
bool "prime-number generation code."
376377

378+
config MBEDTLS_ASN1_PARSE_C
379+
bool "Support for ASN1 parser functions"
380+
377381
config MBEDTLS_PEM_CERTIFICATE_FORMAT
378382
bool "Support for PEM certificate format"
379383
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)