comparison src/protocols/jabber/auth.c @ 7147:e9867cdeb0fd

[gaim-migrate @ 7714] better fix for you poor slobs that haven't edited your account in a while committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 04 Oct 2003 21:53:11 +0000
parents db6bd3e794d8
children fae7cfe975fd
comparison
equal deleted inserted replaced
7146:875303d4f004 7147:e9867cdeb0fd
291 g_string_append_printf(response, ",nc=00000001"); 291 g_string_append_printf(response, ",nc=00000001");
292 g_string_append_printf(response, ",qop=auth"); 292 g_string_append_printf(response, ",qop=auth");
293 g_string_append_printf(response, ",digest-uri=\"xmpp/%s\"", realm); 293 g_string_append_printf(response, ",digest-uri=\"xmpp/%s\"", realm);
294 g_string_append_printf(response, ",response=%s", auth_resp); 294 g_string_append_printf(response, ",response=%s", auth_resp);
295 g_string_append_printf(response, ",charset=utf-8"); 295 g_string_append_printf(response, ",charset=utf-8");
296 g_string_append_printf(response, ",authzid=\"%s\"", 296 g_string_append_printf(response, ",authzid=\"%s@%s/%s\"",
297 gaim_account_get_username(js->gc->account)); 297 js->user->node, js->user->domain, js->user->resource);
298 298
299 g_free(auth_resp); 299 g_free(auth_resp);
300 g_free(cnonce); 300 g_free(cnonce);
301 301
302 enc_out = gaim_base64_encode(response->str, response->len); 302 enc_out = gaim_base64_encode(response->str, response->len);