Mercurial > pidgin
comparison src/protocols/jabber/auth.c @ 7704:3d79f9cab273
[gaim-migrate @ 8349]
Paco-Paco suggested this. It's a good idea.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 02 Dec 2003 21:36:08 +0000 |
parents | e0e73a26f130 |
children | 01eb54bb41dc |
comparison
equal
deleted
inserted
replaced
7703:e0e73a26f130 | 7704:3d79f9cab273 |
---|---|
77 xmlnode_set_attrib(auth, "xmlns", "urn:ietf:params:xml:ns:xmpp-sasl"); | 77 xmlnode_set_attrib(auth, "xmlns", "urn:ietf:params:xml:ns:xmpp-sasl"); |
78 | 78 |
79 if(digest_md5) { | 79 if(digest_md5) { |
80 xmlnode_set_attrib(auth, "mechanism", "DIGEST-MD5"); | 80 xmlnode_set_attrib(auth, "mechanism", "DIGEST-MD5"); |
81 js->auth_type = JABBER_AUTH_DIGEST_MD5; | 81 js->auth_type = JABBER_AUTH_DIGEST_MD5; |
82 } else if(plain) { | 82 } else if(plain && js->gsc != NULL) { /* only do plain if we're encrypted */ |
83 GString *response = g_string_new(""); | 83 GString *response = g_string_new(""); |
84 char *enc_out; | 84 char *enc_out; |
85 | 85 |
86 response = g_string_append_len(response, "\0", 1); | 86 response = g_string_append_len(response, "\0", 1); |
87 response = g_string_append(response, js->user->node); | 87 response = g_string_append(response, js->user->node); |