From 70bad1df78bab1ba4a65357ce0156c563c91dc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Tue, 4 Jun 2024 03:46:32 +0200 Subject: [PATCH] [mbedtls] enable MBEDTLS_OID_C when MBEDTLS_PK_PARSE_C is enabled (#10332) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes mbedTLS config where MBEDTLS_OID_C is not set together with MBEDTLS_PK_PARSE_C in some OpenThread configurations. Signed-off-by: Ɓukasz Duda --- third_party/mbedtls/mbedtls-config.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/third_party/mbedtls/mbedtls-config.h b/third_party/mbedtls/mbedtls-config.h index bf75c880357..32ced0a9e62 100644 --- a/third_party/mbedtls/mbedtls-config.h +++ b/third_party/mbedtls/mbedtls-config.h @@ -70,6 +70,7 @@ #define MBEDTLS_MD_C #define MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES #define MBEDTLS_NO_PLATFORM_ENTROPY +#define MBEDTLS_OID_C #define MBEDTLS_PK_C #define MBEDTLS_PK_PARSE_C #define MBEDTLS_PLATFORM_C @@ -109,7 +110,6 @@ #define MBEDTLS_BASE64_C #define MBEDTLS_ECDH_C #define MBEDTLS_ECDSA_C -#define MBEDTLS_OID_C #define MBEDTLS_PEM_PARSE_C #define MBEDTLS_X509_USE_C #define MBEDTLS_X509_CRT_PARSE_C @@ -122,7 +122,6 @@ #if OPENTHREAD_CONFIG_DETERMINISTIC_ECDSA_ENABLE #define MBEDTLS_ECDSA_DETERMINISTIC #endif -#define MBEDTLS_OID_C #define MBEDTLS_PEM_PARSE_C #define MBEDTLS_PK_WRITE_C #endif