comparison 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
comparison
equal deleted inserted replaced
11182:5389d7d497ce 11183:8dca96cbcd64
392 392
393 photo = xmlnode_new_child(vc_node, "PHOTO"); 393 photo = xmlnode_new_child(vc_node, "PHOTO");
394 binval = xmlnode_new_child(photo, "BINVAL"); 394 binval = xmlnode_new_child(photo, "BINVAL");
395 enc = gaim_base64_encode(avatar_data, avatar_len); 395 enc = gaim_base64_encode(avatar_data, avatar_len);
396 396
397 gaim_cipher_digest_region("sha1", (guint8 *)avatar_data, 397 gaim_cipher_digest_region("sha1", (guchar *)avatar_data,
398 avatar_len, sizeof(hashval), 398 avatar_len, sizeof(hashval),
399 hashval, NULL); 399 hashval, NULL);
400 400
401 p = hash; 401 p = hash;
402 for(i=0; i<20; i++, p+=2) 402 for(i=0; i<20; i++, p+=2)
825 GPOINTER_TO_INT(imgids->data)); 825 GPOINTER_TO_INT(imgids->data));
826 826
827 gaim_buddy_icons_set_for_user(js->gc->account, bare_jid, 827 gaim_buddy_icons_set_for_user(js->gc->account, bare_jid,
828 data, size); 828 data, size);
829 829
830 gaim_cipher_digest_region("sha1", (guint8 *)data, size, 830 gaim_cipher_digest_region("sha1", (guchar *)data, size,
831 sizeof(hashval), hashval, NULL); 831 sizeof(hashval), hashval, NULL);
832 p = hash; 832 p = hash;
833 for(i=0; i<20; i++, p+=2) 833 for(i=0; i<20; i++, p+=2)
834 snprintf(p, 3, "%02x", hashval[i]); 834 snprintf(p, 3, "%02x", hashval[i]);
835 gaim_blist_node_set_string((GaimBlistNode*)b, "avatar_hash", hash); 835 gaim_blist_node_set_string((GaimBlistNode*)b, "avatar_hash", hash);