diff libpurple/protocols/jabber/auth.c @ 24511:915fdb649210

Send the "client-accepts-full-bind-result" attribute for Google Talk when using SASL auth. This prevents errors when people with googlemail.com accounts add their account using the gmail.com domain or similar. Fixes #6949. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Paul Aurich <paul@darkrain42.org>
date Sat, 29 Nov 2008 19:44:57 +0000
parents 5c70d953a497
children 61e0924de04a
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth.c	Sat Nov 29 19:35:13 2008 +0000
+++ b/libpurple/protocols/jabber/auth.c	Sat Nov 29 19:44:57 2008 +0000
@@ -397,6 +397,10 @@
 		auth = xmlnode_new("auth");
 		xmlnode_set_namespace(auth, "urn:ietf:params:xml:ns:xmpp-sasl");
 		xmlnode_set_attrib(auth, "mechanism", js->current_mech);
+		
+		xmlnode_set_attrib(auth, "xmlns:ga", "http://www.google.com/talk/protocol/auth");
+		xmlnode_set_attrib(auth, "ga:client-uses-full-bind-result", "true");
+
 		if (clientout) {
 			if (coutlen == 0) {
 				xmlnode_insert_data(auth, "=", -1);