Ticket #866: broken_jabber_sasl_digest_md5.patch
File broken_jabber_sasl_digest_md5.patch, 1.2 KB (added by , at 2011-11-28T22:15:06Z) |
---|
-
protocols/jabber/jabber.c
old new 86 86 s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc ); 87 87 s->flags |= ACC_SET_OFFLINE_ONLY; 88 88 89 s = set_add( &acc->set, "ignore_broken_sasl_digest_md5", "false", set_eval_bool, acc ); 90 s->flags |= ACC_SET_OFFLINE_ONLY; 91 89 92 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE; 90 93 } 91 94 -
protocols/jabber/sasl.c
old new 62 62 c = c->next; 63 63 } 64 64 65 /* Workaround broken servers that advertise DIGEST-MD5 but can't do it; 66 * most notably in Java-based servers such as OpenFire? when DIGEST-MD5 67 * is enabled. This appears to be the result of a bug in the Java SASL 68 * library. 69 * 70 * Newer OpenFire servers have a workaround, but older ones don't. 71 * 72 * See http://developer.pidgin.im/ticket/2095 73 */ 74 if ( set_getbool( &ic->acc->set, "ignore_broken_sasl_digest_md5" ) ) 75 { 76 sup_digest = 0; 77 } 78 65 79 if( !sup_plain && !sup_digest ) 66 80 { 67 81 imcb_error( ic, "No known SASL authentication schemes supported" );