mbedtls/programs/pkey
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
..
CMakeLists.txt Fix cmake build of programs 2021-06-17 09:38:38 +02:00
dh_client.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
dh_genprime.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
dh_prime.txt - Changed saved value to RCF 3526 2048 MODP group 2012-10-03 19:50:54 +00:00
dh_server.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
ecdh_curve25519.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
ecdsa.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
gen_key.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
key_app_writer.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
key_app.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
mpi_demo.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
pk_decrypt.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
pk_encrypt.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
pk_sign.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
pk_verify.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_decrypt.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_encrypt.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_genkey.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_priv.txt Normalize line endings 2020-05-27 21:55:08 +02:00
rsa_pub.txt Normalize line endings 2020-05-27 21:55:08 +02:00
rsa_sign_pss.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_sign.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_verify_pss.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00
rsa_verify.c Include platform.h unconditionally: automatic part 2022-09-15 20:33:07 +02:00