diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/Crypto.c | 5 | ||||
-rw-r--r-- | src/Common/Crypto.h | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/Common/Crypto.c b/src/Common/Crypto.c index 808c8af7..6c2b2e84 100644 --- a/src/Common/Crypto.c +++ b/src/Common/Crypto.c | |||
@@ -762,16 +762,17 @@ Hash *HashGet (int id) | |||
762 | return 0; | 762 | return 0; |
763 | } | 763 | } |
764 | 764 | ||
765 | 765 | #ifdef _WIN32 | |
766 | int HashGetIdByName (wchar_t *name) | 766 | int HashGetIdByName (wchar_t *name) |
767 | { | 767 | { |
768 | int i; | 768 | int i; |
769 | for (i = 0; Hashes[i].Id != 0; i++) | 769 | for (i = 0; Hashes[i].Id != 0; i++) |
770 | if (wcscmp (Hashes[i].Name, name) == 0) | 770 | if (_wcsicmp (Hashes[i].Name, name) == 0) |
771 | return Hashes[i].Id; | 771 | return Hashes[i].Id; |
772 | 772 | ||
773 | return 0; | 773 | return 0; |
774 | } | 774 | } |
775 | #endif | ||
775 | 776 | ||
776 | const wchar_t *HashGetName (int hashId) | 777 | const wchar_t *HashGetName (int hashId) |
777 | { | 778 | { |
diff --git a/src/Common/Crypto.h b/src/Common/Crypto.h index 8e8bace7..9aba0eae 100644 --- a/src/Common/Crypto.h +++ b/src/Common/Crypto.h | |||
@@ -363,7 +363,9 @@ BOOL EAIsModeSupported (int ea, int testedMode); | |||
363 | 363 | ||
364 | #ifndef TC_WINDOWS_BOOT | 364 | #ifndef TC_WINDOWS_BOOT |
365 | const wchar_t *HashGetName (int hash_algo_id); | 365 | const wchar_t *HashGetName (int hash_algo_id); |
366 | 366 | #ifdef _WIN32 | |
367 | int HashGetIdByName (wchar_t *name); | ||
368 | #endif | ||
367 | Hash *HashGet (int id); | 369 | Hash *HashGet (int id); |
368 | void HashGetName2 (wchar_t *buf, int hashId); | 370 | void HashGetName2 (wchar_t *buf, int hashId); |
369 | BOOL HashIsDeprecated (int hashId); | 371 | BOOL HashIsDeprecated (int hashId); |