diff src/protocols/jabber/auth.c @ 10687:b256ce6b85b8

[gaim-migrate @ 12235] grim says this is really fixed this time. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Sat, 12 Mar 2005 01:10:37 +0000
parents 72a5babfa8b4
children 94cc67130789
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c	Fri Mar 11 22:45:41 2005 +0000
+++ b/src/protocols/jabber/auth.c	Sat Mar 12 01:10:37 2005 +0000
@@ -228,7 +228,7 @@
 			s = g_strdup_printf("%s%s", js->stream_id, pw);
 
 			gaim_cipher_digest_region("sha1", (guint8 *)s, strlen(s),
-									  hashval, NULL);
+									  sizeof(hashval), hashval, NULL);
 
 			p = h;
 			for(i=0; i<20; i++, p+=2)
@@ -323,7 +323,7 @@
 
 	x = g_strdup_printf("%s:%s:%s", convnode, realm, convpasswd);
 	gaim_cipher_context_append(context, x, strlen(x));
-	gaim_cipher_context_digest(context, NULL, result);
+	gaim_cipher_context_digest(context, sizeof(result), result, NULL);
 
 	a1 = g_strdup_printf("xxxxxxxxxxxxxxxx:%s:%s", nonce, cnonce);
 	a1len = strlen(a1);
@@ -331,13 +331,13 @@
 
 	gaim_cipher_context_reset(context, NULL);
 	gaim_cipher_context_append(context, a1, a1len);
-	gaim_cipher_context_digest(context, NULL, result);
+	gaim_cipher_context_digest(context, sizeof(result), result, NULL);
 
 	ha1 = gaim_base16_encode(result, 16);
 
 	gaim_cipher_context_reset(context, NULL);
 	gaim_cipher_context_append(context, a2, strlen(a2));
-	gaim_cipher_context_digest(context, NULL, result);
+	gaim_cipher_context_digest(context, sizeof(result), result, NULL);
 
 	ha2 = gaim_base16_encode(result, 16);
 
@@ -345,7 +345,7 @@
 
 	gaim_cipher_context_reset(context, NULL);
 	gaim_cipher_context_append(context, kd, strlen(kd));
-	gaim_cipher_context_digest(context, NULL, result);
+	gaim_cipher_context_digest(context, sizeof(result), result, NULL);
 	gaim_cipher_context_destroy(context);
 
 	z = gaim_base16_encode(result, 16);