Changes in protocols/jabber/sasl.c [73dd021:40cfbc5]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/sasl.c
r73dd021 r40cfbc5 54 54 struct xt_node *c, *reply; 55 55 char *s; 56 int sup_plain = 0, sup_digest = 0, sup_gtalk = 0, sup_fb = 0 , sup_anonymous = 0;57 int want_oauth = FALSE, want_hipchat = FALSE , want_anonymous = FALSE;56 int sup_plain = 0, sup_digest = 0, sup_gtalk = 0, sup_fb = 0; 57 int want_oauth = FALSE, want_hipchat = FALSE; 58 58 GString *mechs; 59 59 … … 74 74 } 75 75 76 want_anonymous = set_getbool(&ic->acc->set, "anonymous");77 76 want_oauth = set_getbool(&ic->acc->set, "oauth"); 78 77 want_hipchat = (jd->flags & JFLAG_HIPCHAT); … … 85 84 } else if (c->text && g_strcasecmp(c->text, "DIGEST-MD5") == 0) { 86 85 sup_digest = 1; 87 } else if (c->text && g_strcasecmp(c->text, "ANONYMOUS") == 0) {88 sup_anonymous = 1;89 86 } else if (c->text && g_strcasecmp(c->text, "X-OAUTH2") == 0) { 90 87 sup_gtalk = 1; … … 142 139 } else if (want_oauth) { 143 140 imcb_error(ic, "OAuth requested, but not supported by server"); 144 imc_logout(ic, FALSE);145 xt_free_node(reply);146 return XT_ABORT;147 } else if (want_anonymous && sup_anonymous) {148 xt_add_attr(reply, "mechanism", "ANONYMOUS");149 150 /* Well, that was easy. */151 } else if (want_anonymous) {152 imcb_error(ic, "Anonymous login requested, but not supported by server");153 141 imc_logout(ic, FALSE); 154 142 xt_free_node(reply);
Note: See TracChangeset
for help on using the changeset viewer.