pidgin: d2f2c482: jabber: Use the jabber-specific function...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Mar 8 21:36:16 EST 2010


-----------------------------------------------------------------
Revision: d2f2c48292c37816f81123f7d805891c57238119
Ancestor: fc3d5c2a3920e0875ac235415cea9fc7f5ed780c
Author: darkrain42 at pidgin.im
Date: 2010-03-08T22:51:42
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d2f2c48292c37816f81123f7d805891c57238119

Modified files:
        libpurple/protocols/jabber/data.c

ChangeLog: 

jabber: Use the jabber-specific function that is guaranteed to always be SHA1

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/data.c	4c95a235de9a85d21be9336e4c9b7c468ee5161d
+++ libpurple/protocols/jabber/data.c	27f1a28081ef31291d4b0dabfbe9fe1148d502c7
@@ -39,7 +39,7 @@ jabber_data_create_from_data(gconstpoint
 	JabberStream *js)
 {
 	JabberData *data = g_new0(JabberData, 1);
-	gchar *checksum = purple_util_get_image_checksum(rawdata, size);
+	gchar *checksum = jabber_calculate_data_sha1sum(rawdata, size);
 	gchar cid[256];
 
 	g_snprintf(cid, sizeof(cid), "sha1+%s at bob.xmpp.org", checksum);


More information about the Commits mailing list