Changeset aef4828 for protocols/jabber/sasl.c
- Timestamp:
- 2007-04-06T05:20:31Z (17 years ago)
- Branches:
- master
- Children:
- 552e641
- Parents:
- 0da65d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/sasl.c
r0da65d5 raef4828 38 38 IQ authentication. Strange things happen when you try 39 39 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!" ); 41 41 return XT_HANDLED; 42 42 } … … 45 45 if( !s || strcmp( s, XMLNS_SASL ) != 0 ) 46 46 { 47 signoff( ic );47 imc_logout( ic ); 48 48 return XT_ABORT; 49 49 } … … 62 62 if( !sup_plain && !sup_digest ) 63 63 { 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 ); 66 66 return XT_ABORT; 67 67 } … … 279 279 280 280 error: 281 hide_login_progress( ic, "Incorrect SASL challenge received" );282 signoff( ic );281 imc_error( ic, "Incorrect SASL challenge received" ); 282 imc_logout( ic ); 283 283 284 284 silent_error: … … 303 303 if( !s || strcmp( s, XMLNS_SASL ) != 0 ) 304 304 { 305 signoff( ic );305 imc_logout( ic ); 306 306 return XT_ABORT; 307 307 } … … 309 309 if( strcmp( node->name, "success" ) == 0 ) 310 310 { 311 set_login_progress( ic, 1, "Authentication finished" );311 imc_log( ic, "Authentication finished" ); 312 312 jd->flags |= JFLAG_AUTHENTICATED | JFLAG_STREAM_RESTART; 313 313 } 314 314 else if( strcmp( node->name, "failure" ) == 0 ) 315 315 { 316 hide_login_progress( ic, "Authentication failure" );317 signoff( ic );316 imc_error( ic, "Authentication failure" ); 317 imc_logout( ic ); 318 318 return XT_ABORT; 319 319 }
Note: See TracChangeset
for help on using the changeset viewer.