1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

Fix for toupper('I') != 'i'

This commit is contained in:
Werner Koch 2001-06-12 18:42:40 +00:00
parent ff170c94f1
commit 01fe1dd2a9
22 changed files with 156 additions and 47 deletions

View file

@ -1,3 +1,11 @@
2001-06-12 Werner Koch <wk@gnupg.org>
* rndw32.c (slow_gatherer_windowsNT): Ditto. Not really needed here but anyway.
* cipher.c (string_to_cipher_algo): Use ascii_strcasecmp().
* md.c (string_to_digest_algo): Ditto.
* pubkey.c (string_to_pubkey_algo): Ditto.
2001-04-29 Werner Koch <wk@gnupg.org>
* random.c (fast_random_poll): Do not check the return code of

View file

@ -258,7 +258,7 @@ string_to_cipher_algo( const char *string )
do {
for(i=0; (s=cipher_table[i].name); i++ )
if( !stricmp( s, string ) )
if( !ascii_strcasecmp( s, string ) )
return cipher_table[i].algo;
} while( load_cipher_modules() );
return 0;

View file

@ -152,7 +152,7 @@ string_to_digest_algo( const char *string )
do {
for(r = digest_list; r; r = r->next )
if( !stricmp( r->name, string ) )
if( !ascii_strcasecmp( r->name, string ) )
return r->algo;
} while( !r && load_digest_module(-1) );
return 0;

View file

@ -296,7 +296,7 @@ string_to_pubkey_algo( const char *string )
do {
for(i=0; (s=pubkey_table[i].name); i++ )
if( !stricmp( s, string ) )
if( !ascii_strcasecmp( s, string ) )
return pubkey_table[i].algo;
} while( load_pubkey_modules() );
return 0;

View file

@ -561,7 +561,8 @@ slow_gatherer_windowsNT( void (*add)(const void*, size_t, int), int requester )
log_debug ("rndw32#slow_gatherer_nt: check product options\n" );
status = RegQueryValueEx (hKey, "ProductType", 0, NULL,
szValue, &dwSize);
if (status == ERROR_SUCCESS && stricmp (szValue, "WinNT")) {
if (status == ERROR_SUCCESS
&& ascii_strcasecmp (szValue, "WinNT")) {
/* Note: There are (at least) three cases for ProductType:
* WinNT = NT Workstation, ServerNT = NT Server, LanmanNT =
* NT Server acting as a Domain Controller */