mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-06 12:00:59 +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:
@@ -11,11 +11,9 @@
|
||||
#define MBEDTLS_ERROR_H
|
||||
|
||||
#include "mbedtls/build_info.h"
|
||||
// XXX: internal crypto include, used for:
|
||||
// - MBEDTLS_ERROR_ADD
|
||||
// - MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED
|
||||
// - possibly others (the above are just the first build errors)
|
||||
#include "mbedtls/private/error_common.h"
|
||||
#include "mbedtls/private/error_common.h" // for MBEDTLS_ERROR_ADD + see below
|
||||
// MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED
|
||||
// MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "debug_internal.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];
|
||||
|
||||
#include "mbedtls/pk.h"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include "mbedtls/error.h"
|
||||
#include "mbedtls/platform_util.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 <string.h>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "mbedtls/psa_util.h"
|
||||
#include "md_psa.h"
|
||||
#include "md_psa.h" // for mbedtls_md_error_from_psa()
|
||||
#include "psa/crypto.h"
|
||||
|
||||
#if defined(MBEDTLS_X509_CRT_PARSE_C)
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
#include "mbedtls/x509.h"
|
||||
#include "mbedtls/asn1.h"
|
||||
|
||||
// XXX: internal crypto header - used for mbedtls_pk_load_file()
|
||||
#include "pk_internal.h"
|
||||
#include "pk_internal.h" // for a lot of things, including in SSL
|
||||
|
||||
int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end,
|
||||
mbedtls_x509_name *cur);
|
||||
|
||||
Reference in New Issue
Block a user