Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/jabber.c @ 30031:9f59abd49def
jabber: Validate the hash on incoming BoB objects (in case the CID is on the
form algo+hash@bob.xmpp.org).
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Mon, 22 Mar 2010 21:34:17 +0000 |
parents | 6e598ca344b3 |
children | f988f25259c7 08957bb38e30 ae615b3d3e47 |
comparison
equal
deleted
inserted
replaced
30030:ffb8cd9fb528 | 30031:9f59abd49def |
---|---|
978 * server. | 978 * server. |
979 */ | 979 */ |
980 image = purple_buddy_icons_find_account_icon(account); | 980 image = purple_buddy_icons_find_account_icon(account); |
981 if (image != NULL) { | 981 if (image != NULL) { |
982 js->initial_avatar_hash = | 982 js->initial_avatar_hash = |
983 jabber_calculate_data_sha1sum(purple_imgstore_get_data(image), | 983 jabber_calculate_data_hash(purple_imgstore_get_data(image), |
984 purple_imgstore_get_size(image)); | 984 purple_imgstore_get_size(image), "sha1"); |
985 purple_imgstore_unref(image); | 985 purple_imgstore_unref(image); |
986 } | 986 } |
987 | 987 |
988 jabber_stream_connect(js); | 988 jabber_stream_connect(js); |
989 } | 989 } |