mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-01 00:37:47 +00:00
Don't incude auxiliary headers that have alternative versions
When compiling with `MBEDTLS_PSA_CRYPTO_PLATFORM_FILE`, we must not include `<psa/crypto_platform.h`. Same with `MBEDTLS_PSA_CRYPTO_STRUCT_FILE` and `<psa/crypto_struct.h>`. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -122,6 +122,7 @@ for my $root (@header_roots) {
|
||||
# Exclude some headers that are included by build_info.h and cannot
|
||||
# be included directly.
|
||||
push @header_files, grep {!m[
|
||||
^psa/crypto_(platform|struct)\.h$ | # have alt versions, included by psa/crypto.h anyway
|
||||
^mbedtls/platform_time\.h$ | # errors without time.h
|
||||
_config\.h |
|
||||
[/_]adjust[/_]
|
||||
|
||||
Reference in New Issue
Block a user