Changeset 696


Ignore:
Timestamp:
Sep 9, 2006 4:34:30 PM (15 years ago)
Author:
bennylp
Message:

Fixed authentication with qop: nc is not printed, and set nc length to 8 bytes (sipcenter proxy server complained about this). It's now working fine with or without qop. Default caching and auto_send still set to disabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c

    r502 r696  
    229229        cred->qop = pjsip_AUTH_STR; 
    230230        cred->nc.ptr = pj_pool_alloc(pool, 16); 
    231         pj_ansi_snprintf(cred->nc.ptr, 16, "%06u", nc); 
     231        cred->nc.slen = pj_ansi_snprintf(cred->nc.ptr, 16, "%08u", nc); 
    232232 
    233233        if (cnonce && cnonce->slen) { 
     
    589589    const pjsip_method *method; 
    590590    pjsip_cached_auth *auth; 
    591     pj_status_t status; 
    592591 
    593592    PJ_ASSERT_RETURN(sess && tdata, PJ_EINVAL); 
     
    641640            const pjsip_cred_info *cred; 
    642641            pjsip_authorization_hdr *hauth; 
     642            pj_status_t status; 
    643643 
    644644            cred = auth_find_cred(sess, &auth->realm,  
Note: See TracChangeset for help on using the changeset viewer.