mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
ntlmclient: use unsigned char for ctype functions
This commit is contained in:
4
deps/ntlmclient/ntlm.c
vendored
4
deps/ntlmclient/ntlm.c
vendored
@@ -988,9 +988,9 @@ static inline bool generate_lm_hash(
|
||||
keystr2_len = (password_len > 7) ? MIN(14, password_len) - 7 : 0;
|
||||
|
||||
for (i = 0; i < keystr1_len; i++)
|
||||
keystr1[i] = (unsigned char)toupper(password[i]);
|
||||
keystr1[i] = (unsigned char)toupper((unsigned char)password[i]);
|
||||
for (i = 0; i < keystr2_len; i++)
|
||||
keystr2[i] = (unsigned char)toupper(password[i+7]);
|
||||
keystr2[i] = (unsigned char)toupper((unsigned char)password[i+7]);
|
||||
|
||||
/* DES encrypt the LM constant using the password as the key */
|
||||
des_key_from_password(&key1, keystr1, keystr1_len);
|
||||
|
||||
Reference in New Issue
Block a user