1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-08 02:02:16 +03:00

Add comments for remaining internal includes

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Manuel Pégourié-Gonnard
2025-12-02 12:35:20 +01:00
parent ea5718721f
commit 5341c86877
5 changed files with 7 additions and 10 deletions

View File

@@ -11,11 +11,9 @@
#define MBEDTLS_ERROR_H #define MBEDTLS_ERROR_H
#include "mbedtls/build_info.h" #include "mbedtls/build_info.h"
// XXX: internal crypto include, used for: #include "mbedtls/private/error_common.h" // for MBEDTLS_ERROR_ADD + see below
// - MBEDTLS_ERROR_ADD // MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED
// - MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED // MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED
// - possibly others (the above are just the first build errors)
#include "mbedtls/private/error_common.h"
#include <stddef.h> #include <stddef.h>

View File

@@ -20,7 +20,7 @@
#include "debug_internal.h" #include "debug_internal.h"
#include "psa/crypto.h" #include "psa/crypto.h"
#include "psa_util_internal.h" // XXX: internal crypto header #include "psa_util_internal.h" // for mbedtls_error_pair_t, psa_status_to_mbedtls
extern const mbedtls_error_pair_t psa_to_ssl_errors[7]; extern const mbedtls_error_pair_t psa_to_ssl_errors[7];
#include "mbedtls/pk.h" #include "mbedtls/pk.h"

View File

@@ -21,7 +21,7 @@
#include "mbedtls/error.h" #include "mbedtls/error.h"
#include "mbedtls/platform_util.h" #include "mbedtls/platform_util.h"
#include "mbedtls/version.h" #include "mbedtls/version.h"
#include "constant_time_internal.h" #include "constant_time_internal.h" // for internal mbedtls_ct_xxx functions
#include "mbedtls/constant_time.h" #include "mbedtls/constant_time.h"
#include <string.h> #include <string.h>

View File

@@ -29,7 +29,7 @@
#include <string.h> #include <string.h>
#include "mbedtls/psa_util.h" #include "mbedtls/psa_util.h"
#include "md_psa.h" #include "md_psa.h" // for mbedtls_md_error_from_psa()
#include "psa/crypto.h" #include "psa/crypto.h"
#if defined(MBEDTLS_X509_CRT_PARSE_C) #if defined(MBEDTLS_X509_CRT_PARSE_C)

View File

@@ -17,8 +17,7 @@
#include "mbedtls/x509.h" #include "mbedtls/x509.h"
#include "mbedtls/asn1.h" #include "mbedtls/asn1.h"
// XXX: internal crypto header - used for mbedtls_pk_load_file() #include "pk_internal.h" // for a lot of things, including in SSL
#include "pk_internal.h"
int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end, int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end,
mbedtls_x509_name *cur); mbedtls_x509_name *cur);