Changeset d9282b4 for protocols/jabber


Ignore:
Timestamp:
2006-10-02T13:46:33Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
501b4e0
Parents:
c1ed6527
Message:

The SASL DIGEST-MD5 handler now doesn't barf on challenges without a realm
(jabber.org likes to do this).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/sasl.c

    rc1ed6527 rd9282b4  
    207207                realm = sasl_get_part( dec, "realm" );
    208208               
    209                 if( !nonce || !realm )
     209                if( !nonce )
    210210                        goto error;
     211               
     212                /* Jabber.Org considers the realm part optional and doesn't
     213                   specify one. Oh well, actually they're right, but still,
     214                   don't know if this is right... */
     215                if( !realm )
     216                        realm = g_strdup( jd->server );
    211217               
    212218                random_bytes( (unsigned char *) cnonce_bin, sizeof( cnonce_bin ) );
Note: See TracChangeset for help on using the changeset viewer.