mbedtls/programs/ssl
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
..
CMakeLists.txt Replace Windows APIs that are banned in Windows Store apps 2023-09-25 14:12:20 +01:00
dtls_client.c Remove unneeded setting of ret from ssl programs 2023-09-15 17:41:25 +01:00
dtls_server.c Remove unneeded setting of ret from ssl programs 2023-09-15 17:41:25 +01:00
mini_client.c Add guards for mbedtls_psa_crypto_free() 2023-04-24 08:10:01 +02:00
ssl_client1.c Add guards for mbedtls_psa_crypto_free() 2023-04-24 08:10:01 +02:00
ssl_client2.c programs: add helper functions for supported EC curves 2023-07-10 09:13:57 +02:00
ssl_context_info.c Fix warnings from clang-16 2023-07-26 17:11:51 +01:00
ssl_fork_server.c Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
ssl_mail_client.c Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
ssl_pthread_server.c Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
ssl_server.c Update spelling "mbed TLS" to "Mbed TLS" 2023-09-12 19:18:17 +02:00
ssl_server2.c Remove unneeded setting of ret from ssl programs 2023-09-15 17:41:25 +01:00
ssl_test_common_source.c SSL: use MD_CAN macros 2023-03-21 16:29:31 +01:00
ssl_test_lib.c ssl_test_lib: fix rebase error 2023-07-10 10:22:51 +02:00
ssl_test_lib.h parse_groups: curve -> group adaptations 2023-07-06 12:16:44 +02:00