Ticket #866: broken_jabber_sasl_digest_md5.patch

File broken_jabber_sasl_digest_md5.patch, 1.2 KB (added by brmiller@…, at 2011-11-28T22:15:06Z)
  • protocols/jabber/jabber.c

    old new  
    8686        s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc );
    8787        s->flags |= ACC_SET_OFFLINE_ONLY;
    8888       
     89        s = set_add( &acc->set, "ignore_broken_sasl_digest_md5", "false", set_eval_bool, acc );
     90        s->flags |= ACC_SET_OFFLINE_ONLY;
     91
    8992        acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE;
    9093}
    9194
  • protocols/jabber/sasl.c

    old new  
    6262                c = c->next;
    6363        }
    6464       
     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
    6579        if( !sup_plain && !sup_digest )
    6680        {
    6781                imcb_error( ic, "No known SASL authentication schemes supported" );