Ignore:
Timestamp:
2007-04-06T05:20:31Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
552e641
Parents:
0da65d5
Message:

More cleanups, mainly in the callbacks. Replaced things like
do_error_dialog() and (set|hide)_login_progress(_error)?() with things
that hopefully make more sense.

Although it's still not really great...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/sasl.c

    r0da65d5 raef4828  
    3838                   IQ authentication. Strange things happen when you try
    3939                   to do both... */
    40                 serv_got_crap( ic, "XMPP 1.0 non-compliant server seems to support SASL, please report this as a BitlBee bug!" );
     40                imc_log( ic, "XMPP 1.0 non-compliant server seems to support SASL, please report this as a BitlBee bug!" );
    4141                return XT_HANDLED;
    4242        }
     
    4545        if( !s || strcmp( s, XMLNS_SASL ) != 0 )
    4646        {
    47                 signoff( ic );
     47                imc_logout( ic );
    4848                return XT_ABORT;
    4949        }
     
    6262        if( !sup_plain && !sup_digest )
    6363        {
    64                 hide_login_progress( ic, "No known SASL authentication schemes supported" );
    65                 signoff( ic );
     64                imc_error( ic, "No known SASL authentication schemes supported" );
     65                imc_logout( ic );
    6666                return XT_ABORT;
    6767        }
     
    279279
    280280error:
    281         hide_login_progress( ic, "Incorrect SASL challenge received" );
    282         signoff( ic );
     281        imc_error( ic, "Incorrect SASL challenge received" );
     282        imc_logout( ic );
    283283
    284284silent_error:
     
    303303        if( !s || strcmp( s, XMLNS_SASL ) != 0 )
    304304        {
    305                 signoff( ic );
     305                imc_logout( ic );
    306306                return XT_ABORT;
    307307        }
     
    309309        if( strcmp( node->name, "success" ) == 0 )
    310310        {
    311                 set_login_progress( ic, 1, "Authentication finished" );
     311                imc_log( ic, "Authentication finished" );
    312312                jd->flags |= JFLAG_AUTHENTICATED | JFLAG_STREAM_RESTART;
    313313        }
    314314        else if( strcmp( node->name, "failure" ) == 0 )
    315315        {
    316                 hide_login_progress( ic, "Authentication failure" );
    317                 signoff( ic );
     316                imc_error( ic, "Authentication failure" );
     317                imc_logout( ic );
    318318                return XT_ABORT;
    319319        }
Note: See TracChangeset for help on using the changeset viewer.