Cosmetics
This commit is contained in:
parent
b2fec642fe
commit
c0cc6a2c93
@ -2010,7 +2010,7 @@ challengeauth_response (char *username, char *password, char *challenge)
|
|||||||
GString *buf = g_string_new_len (NULL, SHA256_DIGEST_LENGTH * 2);
|
GString *buf = g_string_new_len (NULL, SHA256_DIGEST_LENGTH * 2);
|
||||||
|
|
||||||
user = g_strdup (username);
|
user = g_strdup (username);
|
||||||
*user = rfc_tolower (*username); /* convert username to lowercase as per the RFC*/
|
*user = rfc_tolower (*username); /* convert username to lowercase as per the RFC */
|
||||||
|
|
||||||
pass = g_strndup (password, 10); /* truncate to 10 characters */
|
pass = g_strndup (password, 10); /* truncate to 10 characters */
|
||||||
passhash = str_sha256hash (pass);
|
passhash = str_sha256hash (pass);
|
||||||
|
Loading…
Reference in New Issue
Block a user