Mercurial > pidgin
diff src/protocols/jabber/auth.c @ 13206:0c4db52c6a3d
[gaim-migrate @ 15569]
Simon (Wilkinson) says: fix SASL
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 09 Feb 2006 14:06:10 +0000 |
parents | 1e0caf8f40dc |
children | 25e63008d3bb |
line wrap: on
line diff
--- a/src/protocols/jabber/auth.c Thu Feb 09 07:47:32 2006 +0000 +++ b/src/protocols/jabber/auth.c Thu Feb 09 14:06:10 2006 +0000 @@ -192,14 +192,16 @@ /* Set up security properties and options */ secprops.min_ssf = 0; secprops.security_flags = SASL_SEC_NOANONYMOUS; - secprops.max_ssf = -1; - secprops.maxbufsize = -1; if (!js->gsc) { + secprops.max_ssf = -1; + secprops.maxbufsize = 4096; plaintext = gaim_account_get_bool(js->gc->account, "auth_plain_in_clear", FALSE); if (!plaintext) secprops.security_flags |= SASL_SEC_NOPLAINTEXT; } else { + secprops.max_ssf = 0; + secprops.maxbufsize = 0; plaintext = TRUE; } secprops.property_names = 0;