mbedtls/programs/test
Manuel Pégourié-Gonnard 3ef6a6dc5c Fix const-ness in mbedtls_param_failed()
The previous prototype gave warnings are the strings produced by #cond and
__FILE__ are const, so we shouldn't implicitly cast them to non-const.

While at it modifying most example programs:
- include the header that has the function declaration, so that the definition
  can be checked to match by the compiler
- fix whitespace
- make it work even if PLATFORM_C is not defined:
    - CHECK_PARAMS is not documented as depending on PLATFORM_C and there is
      no reason why it should
    - so, remove the corresponding #if defined in each program...
    - and add missing #defines for mbedtls_exit when needed

The result has been tested (make all test with -Werror) with the following
configurations:

- full with    CHECK_PARAMS with    PLATFORM_C
- full with    CHECK_PARAMS without PLATFORM_C
- full without CHECK_PARAMS without PLATFORM_C
- full without CHECK_PARAMS with    PLATFORM_C

Additionally, it has been manually tested that adding

    mbedtls_aes_init( NULL );

near the normal call to mbedtls_aes_init() in programs/aes/aescrypt2.c has the
expected effect when running the program.
2018-12-11 12:28:56 +01:00
..
benchmark.c Fix const-ness in mbedtls_param_failed() 2018-12-11 12:28:56 +01:00
CMakeLists.txt Replace tabs with spaces 2018-06-28 05:07:08 -04:00
cpp_dummy_build.cpp cpp_dummy_build: Add NIST key wrapping header 2018-07-24 16:51:09 +01:00
selftest.c Fix const-ness in mbedtls_param_failed() 2018-12-11 12:28:56 +01:00
ssl_cert_test.c Fix const-ness in mbedtls_param_failed() 2018-12-11 12:28:56 +01:00
udp_proxy_wrapper.sh udp_proxy_wrapper.sh: fix cleanup not cleaning up 2017-10-24 11:25:19 +01:00
udp_proxy.c UDP proxy: Correct debug output for delay_srv option 2018-08-28 17:52:53 +01:00
zeroize.c Fix coverity defects 2018-06-06 03:44:03 +01:00