1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +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

@ -36,11 +36,6 @@
// #include <stdlib.h>
#include <string.h>
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strcasecmp _stricmp
#endif
/*
* Ordered from most preferred to least preferred in terms of security.
*
@ -1733,7 +1728,7 @@ const mbedtls_ssl_ciphersuite_t *mbedtls_ssl_ciphersuite_from_string(
while( cur->id != 0 )
{
if( 0 == strcasecmp( cur->name, ciphersuite_name ) )
if( 0 == strcmp( cur->name, ciphersuite_name ) )
return( cur );
cur++;