changeset 29554:41e557b8d38c

jabber: Use the jabber-specific function that is guaranteed to always be SHA1
author Paul Aurich <paul@darkrain42.org>
date Mon, 08 Mar 2010 22:51:42 +0000
parents 4e42f18df200
children 8afc47597413
files libpurple/protocols/jabber/data.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/data.c	Tue Feb 16 09:14:54 2010 +0000
+++ b/libpurple/protocols/jabber/data.c	Mon Mar 08 22:51:42 2010 +0000
@@ -39,7 +39,7 @@
 	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@bob.xmpp.org", checksum);