From c53c43c2961ccbf172a041b9f51ddfeb26b3e9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 1 Dec 2025 10:20:53 +0100 Subject: [PATCH] x509: rm useless private includes in internal headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Pégourié-Gonnard --- library/x509_internal.h | 6 ++---- library/x509_oid.h | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/library/x509_internal.h b/library/x509_internal.h index 5505b9778c..9bad6a2ad8 100644 --- a/library/x509_internal.h +++ b/library/x509_internal.h @@ -16,11 +16,9 @@ #include "mbedtls/x509.h" #include "mbedtls/asn1.h" -#include "pk_internal.h" -#if defined(MBEDTLS_RSA_C) -#include "mbedtls/private/rsa.h" -#endif +// XXX: internal crypto header - used for mbedtls_pk_load_file() +#include "pk_internal.h" int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end, mbedtls_x509_name *cur); diff --git a/library/x509_oid.h b/library/x509_oid.h index 0752953aac..5721d8586c 100644 --- a/library/x509_oid.h +++ b/library/x509_oid.h @@ -13,9 +13,6 @@ #include "mbedtls/asn1.h" #include "mbedtls/pk.h" -#if defined(MBEDTLS_PK_HAVE_PRIVATE_HEADER) -#include -#endif /* MBEDTLS_PK_HAVE_PRIVATE_HEADER */ #include "mbedtls/x509.h" #include