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

@ -34,11 +34,6 @@
#include <string.h>
#if defined(_MSC_VER) && !defined strncasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strncasecmp _strnicmp
#endif
typedef struct {
const char *name;
size_t name_len;
@ -86,7 +81,7 @@ static const char *x509_at_oid_from_name( const char *name, size_t name_len )
for( cur = x509_attrs; cur->name != NULL; cur++ )
if( cur->name_len == name_len &&
strncasecmp( cur->name, name, name_len ) == 0 )
strncmp( cur->name, name, name_len ) == 0 )
break;
return( cur->oid );