mbedtls/tests/include/test
Gilles Peskine 945b23c46f Include platform.h unconditionally: automatic part
We used to include platform.h only when MBEDTLS_PLATFORM_C was enabled, and
to define ad hoc replacements for mbedtls_xxx functions on a case-by-case
basis when MBEDTLS_PLATFORM_C was disabled. The only reason for this
complication was to allow building individual source modules without copying
platform.h. This is not something we support or recommend anymore, so get
rid of the complication: include platform.h unconditionally.

There should be no change in behavior since just including the header should
not change the behavior of a program.

This commit replaces most occurrences of conditional inclusion of
platform.h, using the following code:

```
perl -i -0777 -pe 's!#if.*\n#include "mbedtls/platform.h"\n(#else.*\n(#define (mbedtls|MBEDTLS)_.*\n|#include <(stdarg|stddef|stdio|stdlib|string|time)\.h>\n)*)?#endif.*!#include "mbedtls/platform.h"!mg' $(git grep -l '#include "mbedtls/platform.h"')
```

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-09-15 20:33:07 +02:00
..
drivers Fix failure of RSA accel test 2022-08-11 12:47:02 +02:00
asn1_helpers.h Move asn1_skip_integer to the asn1_helpers module 2021-02-23 20:29:38 +01:00
certs.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
constant_flow.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
fake_external_rng_for_test.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00
helpers.h Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
macros.h Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
psa_crypto_helpers.h Setup / deinitialize PSA in pk tests only if no MD is used 2022-09-02 04:07:15 -04:00
psa_exercise_key.h tests: psa: Remove MD2, MD4 and ARC4 related code 2021-12-07 09:54:36 +01:00
psa_helpers.h Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
random.h Replace all inclusions of config.h 2021-06-28 09:24:07 +01:00