mbedtls/programs/test
Kevin Kane 0ec1e68548 Replace Windows APIs that are banned in Windows Store apps
CryptGenRandom and lstrlenW are not permitted in Windows Store apps,
meaning apps that use mbedTLS can't ship in the Windows Store.
Instead, use BCryptGenRandom and wcslen, respectively, which are
permitted.

Also make sure conversions between size_t, ULONG, and int are
always done safely; on a 64-bit platform, these types are different
sizes.

Also suppress macro redefinition warning for intsafe.h:

Visual Studio 2010 and earlier generates C4005 when including both
<intsafe.h> and <stdint.h> because a number of <TYPE>_MAX constants
are redefined. This is fixed in later versions of Visual Studio.
The constants are guaranteed to be the same between both files,
however, so we can safely suppress the warning when including
intsafe.h.

Signed-off-by: Kevin Kane <kkane@microsoft.com>
2023-09-25 14:12:20 +01:00
..
cmake_package Update CMake minimum version(s) to match main CMakeLists.txt 2023-09-12 16:42:14 +01:00
cmake_package_install Update CMake minimum version(s) to match main CMakeLists.txt 2023-09-12 16:42:14 +01:00
cmake_subproject Update CMake minimum version(s) to match main CMakeLists.txt 2023-09-12 16:42:14 +01:00
benchmark.c Merge branch 'development' into sha3 2023-05-05 16:01:18 +02:00
CMakeLists.txt Replace Windows APIs that are banned in Windows Store apps 2023-09-25 14:12:20 +01:00
dlopen.c Switch to the new code style 2023-01-11 14:50:10 +01:00
dlopen_demo.sh Fix demo scripts for out-of-tree builds 2023-05-09 18:30:05 +01:00
generate_cpp_dummy_build.sh Don't include configuration adjustment headers 2023-09-05 11:57:14 +02:00
query_compile_time_config.c Fix more argc checks 2023-02-03 16:15:30 +00:00
query_config.h Switch to the new code style 2023-01-11 14:50:10 +01:00
query_included_headers.c Test the PSA alternative header configuration macros 2023-02-23 17:18:33 +01:00
selftest.c Move the overallocation test to test suites 2023-06-27 09:26:08 -04:00
udp_proxy.c Fix warnings from clang-16 2023-07-26 17:11:51 +01:00
udp_proxy_wrapper.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
zeroize.c Switch to the new code style 2023-01-11 14:50:10 +01:00