Gilles Peskine 36f19b97e2 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-10-05 11:26:07 +02:00
..
CMakeLists.txt Merge pull request #3897 from d3zd3z/fix-cmake28 2021-01-26 13:35:56 +01:00
dtls_client.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
dtls_server.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
mini_client.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
ssl_client1.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
ssl_client2.c Add negative tests for opaque mixed-PSK (client) 2022-06-20 21:04:31 +02:00
ssl_context_info.c Refactor ssl_context_info time printing 2022-03-04 15:25:42 -05:00
ssl_fork_server.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
ssl_mail_client.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
ssl_pthread_server.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
ssl_server2.c Add negative tests for opaque mixed-PSK (server) 2022-06-20 21:04:31 +02:00
ssl_server.c Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00
ssl_test_common_source.c Use distinct variables for distinct purposes 2021-07-08 10:30:38 +02:00
ssl_test_lib.c programs/ssl: Fix compile errors when MBEDTLS_HAVE_TIME is not defined 2022-03-04 15:25:42 -05:00
ssl_test_lib.h Include platform.h unconditionally: automatic part 2022-10-05 11:26:07 +02:00