Mercurial > pidgin
comparison src/protocols/jabber/presence.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 | fbd50c34a27f |
comparison
equal
deleted
inserted
replaced
10686:212946f774c0 | 10687:b256ce6b85b8 |
---|---|
214 unsigned char hashval[20]; | 214 unsigned char hashval[20]; |
215 char hash[41], *p; | 215 char hash[41], *p; |
216 int i; | 216 int i; |
217 | 217 |
218 gaim_cipher_digest_region("sha1", (guint8 *)data, size, | 218 gaim_cipher_digest_region("sha1", (guint8 *)data, size, |
219 hashval, NULL); | 219 sizeof(hashval), hashval, NULL); |
220 p = hash; | 220 p = hash; |
221 for(i=0; i<20; i++, p+=2) | 221 for(i=0; i<20; i++, p+=2) |
222 snprintf(p, 3, "%02x", hashval[i]); | 222 snprintf(p, 3, "%02x", hashval[i]); |
223 gaim_blist_node_set_string((GaimBlistNode*)b, "avatar_hash", hash); | 223 gaim_blist_node_set_string((GaimBlistNode*)b, "avatar_hash", hash); |
224 } | 224 } |
225 } | 225 } |