pidgin: 3c59d006: jabber: Print out the expected/generated..
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Fri Aug 21 16:52:08 EDT 2009
-----------------------------------------------------------------
Revision: 3c59d00614edda333046150c52194e062128b691
Ancestor: 42764965ca944708fa38788a702eef42ce73ce64
Author: darkrain42 at pidgin.im
Date: 2009-08-21T19:17:48
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3c59d00614edda333046150c52194e062128b691
Modified files:
libpurple/protocols/jabber/caps.c
ChangeLog:
jabber: Print out the expected/generated caps hashes.
This is useful for arguments about which implementation isn't generating
proper hashes according to the spec. ;-)
-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/caps.c c20424cf7e368864b5c2ba22d4da0be9efdf8e5b
+++ libpurple/protocols/jabber/caps.c 9b57a46ad8ec6a77708c7dd412b88859133317ba
@@ -468,8 +468,10 @@ jabber_caps_client_iqcb(JabberStream *js
}
if (!hash || strcmp(hash, userdata->ver)) {
- purple_debug_warning("jabber", "Could not validate caps info from %s\n",
- xmlnode_get_attrib(packet, "from"));
+ purple_debug_warning("jabber", "Could not validate caps info from "
+ "%s. Expected %s, got %s\n",
+ xmlnode_get_attrib(packet, "from"),
+ userdata->ver, hash ? hash : "(null)");
userdata->cb(NULL, NULL, userdata->cb_data);
jabber_caps_client_info_destroy(info);
More information about the Commits
mailing list