diff --git a/library/ssl_ciphersuites_internal.h b/library/ssl_ciphersuites_internal.h index a7981dbdf..d1db2dba4 100644 --- a/library/ssl_ciphersuites_internal.h +++ b/library/ssl_ciphersuites_internal.h @@ -11,6 +11,9 @@ #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_type_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 9228a3bc7..a462a07e7 100644 --- a/library/ssl_misc.h +++ b/library/ssl_misc.h @@ -42,6 +42,9 @@ extern const mbedtls_error_pair_t psa_to_ssl_errors[7]; #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" diff --git a/library/x509_oid.h b/library/x509_oid.h index c2fe8dc40..8d5e1bbff 100644 --- a/library/x509_oid.h +++ b/library/x509_oid.h @@ -13,6 +13,9 @@ #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