Mercurial > pidgin.yaz
diff src/protocols/jabber/buddy.c @ 11183:8dca96cbcd64
[gaim-migrate @ 13295]
I changed the cipher API to use guchar instead of guint8
This seems to be what gtk/glib uses for random bits of data
I don't know what got into me
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 03 Aug 2005 02:57:00 +0000 |
parents | 096020ae09a9 |
children | 10066662176a |
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c Wed Aug 03 01:39:41 2005 +0000 +++ b/src/protocols/jabber/buddy.c Wed Aug 03 02:57:00 2005 +0000 @@ -394,7 +394,7 @@ binval = xmlnode_new_child(photo, "BINVAL"); enc = gaim_base64_encode(avatar_data, avatar_len); - gaim_cipher_digest_region("sha1", (guint8 *)avatar_data, + gaim_cipher_digest_region("sha1", (guchar *)avatar_data, avatar_len, sizeof(hashval), hashval, NULL); @@ -827,7 +827,7 @@ gaim_buddy_icons_set_for_user(js->gc->account, bare_jid, data, size); - gaim_cipher_digest_region("sha1", (guint8 *)data, size, + gaim_cipher_digest_region("sha1", (guchar *)data, size, sizeof(hashval), hashval, NULL); p = hash; for(i=0; i<20; i++, p+=2)