Mercurial > pidgin.yaz
diff src/ntlm.c @ 13088:a91a8a28f61f
[gaim-migrate @ 15450]
Compile warning fixes
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 01 Feb 2006 06:04:22 +0000 |
parents | a62e694b35e4 |
children | 7f5b3313dd07 |
line wrap: on
line diff
--- a/src/ntlm.c Tue Jan 31 22:00:34 2006 +0000 +++ b/src/ntlm.c Wed Feb 01 06:04:22 2006 +0000 @@ -204,7 +204,9 @@ } } -gchar *gaim_ntlm_gen_type3(gchar *username, gchar *passw, gchar *hostname, gchar *domain, gchar *nonce, guint32 *flags) { +gchar * +gaim_ntlm_gen_type3(const gchar *username, const gchar *passw, const gchar *hostname, const gchar *domain, gchar *nonce, guint32 *flags) +{ char lm_pw[14]; unsigned char lm_hpw[21]; char sesskey[16]; @@ -225,7 +227,7 @@ char *tmp = 0; int idx = 0; - /* type3 message initialization */ + /* type3 message initialization */ tmsg->protocol[0] = 'N'; tmsg->protocol[1] = 'T'; tmsg->protocol[2] = 'L'; @@ -262,7 +264,7 @@ tmp += strlen(username); strcpy(tmp, hostname); tmp += strlen(hostname); - + /* LM */ if (len > 14) len = 14; @@ -313,7 +315,7 @@ /*tmsg->flags2 = 0x0a280105; tmsg->flags3 = 0x0f000000;*/ - + tmp = gaim_base64_encode((guchar*) tmsg, msglen); g_free(tmsg); return tmp;