Ignore:
Timestamp:
2006-09-22T18:39:31Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d8e0484
Parents:
8d74291
Message:

Better detection of successful IQ authentication (using packet caching),
properly working SASL authentication (although only PLAIN so far).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/sasl.c

    r8d74291 rfe7a554  
    7171        xt_add_attr( reply, "xmlns", SASL_NS );
    7272       
    73         if( sup_plain )
     73        if( sup_digest && 0 )
     74        {
     75                xt_add_attr( reply, "mechanism", "DIGEST-MD5" );
     76               
     77                /* The rest will be done later, when we receive a <challenge/>. */
     78        }
     79        else if( sup_plain )
    7480        {
    7581                int len;
     
    141147        struct jabber_data *jd = gc->proto_data;
    142148       
    143         return ( jd->xt && jd->xt->root && xt_find_attr( jd->xt->root, "version" ) ) != NULL;
     149        return ( (void*) ( jd->xt && jd->xt->root && xt_find_attr( jd->xt->root, "version" ) ) ) != NULL;
    144150}
Note: See TracChangeset for help on using the changeset viewer.