1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Avoid non-standard strcasecmp()

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-28 17:06:07 +02:00
parent 2a84dfd747
commit cb46fd8216
10 changed files with 317 additions and 346 deletions

View File

@ -55,11 +55,6 @@
#define mbedtls_free free
#endif
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strcasecmp _stricmp
#endif
/* Implementation that should never be optimized out by the compiler */
static void mbedtls_zeroize( void *v, size_t n ) {
volatile unsigned char *p = v; while( n-- ) *p++ = 0;