[Pidgin] #5213: cyrus-SASL support breaks XMPP DIGEST-MD5 auth for jabberd2 with gSASL
Pidgin
trac at pidgin.im
Wed Mar 19 14:37:11 EDT 2008
#5213: cyrus-SASL support breaks XMPP DIGEST-MD5 auth for jabberd2 with gSASL
---------------------+------------------------------------------------------
Reporter: marty | Owner: deryni
Type: defect | Status: new
Priority: minor | Milestone:
Component: XMPP | Version: 2.4.0
Resolution: | Keywords: SASL auth
Pending: 0 |
---------------------+------------------------------------------------------
Comment (by deryni):
Actually the change needed to test my theory should be as simple as:
{{{
--- auth.c 2008-03-17 11:07:47.803036100 -0400
+++ tmpauth.c 2008-03-19 14:33:31.416824300 -0400
@@ -1028,7 +1028,9 @@
response = xmlnode_new("response");
xmlnode_set_namespace(response,
"urn:ietf:params:xml:ns:xmpp-sasl");
if (clen > 0) {
- enc_out = purple_base64_encode((unsigned
char*)c_out, clen);
+ char *tmp =
g_strdup_printf("%s,charset=utf-8", c_out);
+ enc_out = purple_base64_encode((unsigned
char*)tmp, clen);
+ g_free(tmp);
xmlnode_insert_data(response, enc_out,
-1);
g_free(enc_out);
}
}}}
which is far from a correct fix but should be enough to test my theory.
--
Ticket URL: <http://developer.pidgin.im/ticket/5213#comment:16>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list