diff options
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/ChangeLog | 8 | ||||
-rw-r--r-- | cipher/cipher.c | 2 | ||||
-rw-r--r-- | cipher/md.c | 2 | ||||
-rw-r--r-- | cipher/pubkey.c | 2 | ||||
-rw-r--r-- | cipher/rndw32.c | 3 |
5 files changed, 13 insertions, 4 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 7c26c571e..087c45838 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,11 @@ +2001-06-12 Werner Koch <[email protected]> + + * 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 <[email protected]> * random.c (fast_random_poll): Do not check the return code of diff --git a/cipher/cipher.c b/cipher/cipher.c index a68679a73..0d9ebaf01 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -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; diff --git a/cipher/md.c b/cipher/md.c index 3064b47d2..6d84772d2 100644 --- a/cipher/md.c +++ b/cipher/md.c @@ -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; diff --git a/cipher/pubkey.c b/cipher/pubkey.c index 7e320856e..9136fa544 100644 --- a/cipher/pubkey.c +++ b/cipher/pubkey.c @@ -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; diff --git a/cipher/rndw32.c b/cipher/rndw32.c index d4d7d22e4..63b78791c 100644 --- a/cipher/rndw32.c +++ b/cipher/rndw32.c @@ -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 */ |