cpw.malu.xmpp.jingle_ft: dbd3cd20: Whoops, make it compile again :)

malu at pidgin.im malu at pidgin.im
Mon Apr 12 15:40:42 EDT 2010


-----------------------------------------------------------------
Revision: dbd3cd20f55a6c01a83bc775c6b1bc7820aa1ed2
Ancestor: 29a7fd6ea4adc11f3f6fec443704aef8a689f706
Author: malu at pidgin.im
Date: 2010-04-12T18:47:14
Branch: im.pidgin.cpw.malu.xmpp.jingle_ft
URL: http://d.pidgin.im/viewmtn/revision/info/dbd3cd20f55a6c01a83bc775c6b1bc7820aa1ed2

Modified files:
        libpurple/protocols/jabber/jingle/s5b.c

ChangeLog: 

Whoops, make it compile again :)

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/jingle/s5b.c	25e9bf1a34b561d7cb86d56162710532d5676d04
+++ libpurple/protocols/jabber/jingle/s5b.c	c21466dbb6474dcbbcf221257cd7e2c006c5b642
@@ -734,7 +734,7 @@ jingle_s5b_send_read_again_cb(gpointer d
 	g_free(dstjid);
 		
 	/* Per XEP-0065, the 'host' must be SHA1(SID + from JID + to JID) */
-	hash = jabber_calculate_data_sha1sum(dstaddr, strlen(dstaddr));
+	hash = jabber_calculate_data_hash(dstaddr, strlen(dstaddr), "sha1");
 	purple_debug_info("jingle-s5b", "dstaddr: %s\n", dstaddr);
 	purple_debug_info("jingle-s5b", "expecting to receive hash %s\n", hash);
 	
@@ -1271,7 +1271,7 @@ jingle_s5b_connect_to_candidate(JingleS5
 
 	/* Per XEP-0065, the 'host' must be SHA1(SID + from JID + to JID) */
 	purple_debug_info("jingle-s5b", "dstaddr: %s\n", dstaddr);
-	hash = jabber_calculate_data_sha1sum(dstaddr, strlen(dstaddr));
+	hash = jabber_calculate_data_hash(dstaddr, strlen(dstaddr), "sha1");
 	purple_debug_info("jingle-s5b", "connecting with hash: %s\n", hash);
 
 	s5b->priv->connect_data =


More information about the Commits mailing list