diff libpurple/protocols/jabber/caps.c @ 28037:d905474475dc

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. ;-)
author Paul Aurich <paul@darkrain42.org>
date Fri, 21 Aug 2009 19:17:48 +0000
parents a40e0b43f57f
children 8c991e09efcb
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Fri Aug 21 07:54:43 2009 +0000
+++ b/libpurple/protocols/jabber/caps.c	Fri Aug 21 19:17:48 2009 +0000
@@ -468,8 +468,10 @@
 		}
 
 		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);