Mercurial > pidgin.yaz
comparison src/protocols/rendezvous/rendezvous.c @ 10705:194167d8a3b6
[gaim-migrate @ 12289]
Someone tell me if this is wrong.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 20 Mar 2005 01:58:53 +0000 |
parents | 913ec44675c3 |
children | 7d4ca0d36f25 |
comparison
equal
deleted
inserted
replaced
10704:a4ae4fb7f939 | 10705:194167d8a3b6 |
---|---|
23 | 23 |
24 #include "account.h" | 24 #include "account.h" |
25 #include "accountopt.h" | 25 #include "accountopt.h" |
26 #include "blist.h" | 26 #include "blist.h" |
27 #include "conversation.h" | 27 #include "conversation.h" |
28 #include "cipher.h" | |
28 #include "debug.h" | 29 #include "debug.h" |
29 #include "network.h" | 30 #include "network.h" |
30 #include "prpl.h" | 31 #include "prpl.h" |
31 #include "sha.h" | |
32 #include "version.h" | 32 #include "version.h" |
33 | 33 |
34 #include "direct.h" | 34 #include "direct.h" |
35 #include "mdns.h" | 35 #include "mdns.h" |
36 #include "rendezvous.h" | 36 #include "rendezvous.h" |
491 | 491 |
492 if (iconfile == NULL) | 492 if (iconfile == NULL) |
493 return; | 493 return; |
494 | 494 |
495 icondata = rendezvous_read_icon_data(iconfile, &iconlength); | 495 icondata = rendezvous_read_icon_data(iconfile, &iconlength); |
496 shaBlock((unsigned char *)icondata, iconlength, hash); | 496 gaim_cipher_digest_region("sha1", (guint8 *)icondata, iconlength, sizeof(hash), hash, NULL); |
497 g_free(icondata); | 497 g_free(icondata); |
498 | 498 |
499 base16 = gaim_base16_encode(hash, 20); | 499 base16 = gaim_base16_encode(hash, 20); |
500 rendezvous_add_to_txt(rd, "phsh", base16); | 500 rendezvous_add_to_txt(rd, "phsh", base16); |
501 g_free(base16); | 501 g_free(base16); |