From 4b663abecc3e62e68482750f11e25317544cfc91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 1 Dec 2025 10:16:52 +0100 Subject: [PATCH] ssl: 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/ssl_ciphersuites_internal.h | 3 --- library/ssl_misc.h | 24 +----------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/library/ssl_ciphersuites_internal.h b/library/ssl_ciphersuites_internal.h index 9a9b42b998..864e6bf6b7 100644 --- a/library/ssl_ciphersuites_internal.h +++ b/library/ssl_ciphersuites_internal.h @@ -11,9 +11,6 @@ #define MBEDTLS_SSL_CIPHERSUITES_INTERNAL_H #include "mbedtls/pk.h" -#if defined(MBEDTLS_PK_HAVE_PRIVATE_HEADER) -#include -#endif /* MBEDTLS_PK_HAVE_PRIVATE_HEADER */ #if defined(MBEDTLS_PK_C) mbedtls_pk_sigalg_t mbedtls_ssl_get_ciphersuite_sig_pk_alg(const mbedtls_ssl_ciphersuite_t *info); diff --git a/library/ssl_misc.h b/library/ssl_misc.h index 083a5adc31..9f9ed0bf70 100644 --- a/library/ssl_misc.h +++ b/library/ssl_misc.h @@ -19,35 +19,13 @@ #include "mbedtls/debug.h" #include "debug_internal.h" -#include "mbedtls/private/cipher.h" - #include "psa/crypto.h" -#include "psa_util_internal.h" +#include "psa_util_internal.h" // XXX: internal crypto header extern const mbedtls_error_pair_t psa_to_ssl_errors[7]; -#if defined(PSA_WANT_ALG_MD5) -#include "mbedtls/private/md5.h" -#endif - -#if defined(PSA_WANT_ALG_SHA_1) -#include "mbedtls/private/sha1.h" -#endif - -#if defined(PSA_WANT_ALG_SHA_256) -#include "mbedtls/private/sha256.h" -#endif - -#if defined(PSA_WANT_ALG_SHA_512) -#include "mbedtls/private/sha512.h" -#endif - #include "mbedtls/pk.h" -#if defined(MBEDTLS_PK_HAVE_PRIVATE_HEADER) -#include -#endif /* MBEDTLS_PK_HAVE_PRIVATE_HEADER */ #include "ssl_ciphersuites_internal.h" #include "x509_internal.h" -#include "pk_internal.h" /* Shorthand for restartable ECC */ #if defined(MBEDTLS_ECP_RESTARTABLE) && \