Ignore:
Timestamp:
Dec 29, 2006 12:13:10 AM (17 years ago)
Author:
bennylp
Message:

Fixed ticket #25: Authentication loops forever when server keeps rejecting request with stale=true

Location:
pjproject/trunk/pjsip/include/pjsip
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_auth.h

    r695 r871  
    114114    pj_bool_t                    is_proxy;  /**< Server type (401/407)      */ 
    115115    pjsip_auth_qop_type          qop_value; /**< qop required by server.    */ 
     116    unsigned                     stale_cnt; /**< Number of stale retry.     */ 
    116117#if PJSIP_AUTH_QOP_SUPPORT 
    117118    pj_uint32_t                  nc;        /**< Nonce count.               */ 
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r862 r871  
    410410 
    411411/** 
     412 * Maximum number of stale retries when server keeps rejecting our request 
     413 * with stale=true. 
     414 */ 
     415#ifndef PJSIP_MAX_STALE_COUNT 
     416#   define PJSIP_MAX_STALE_COUNT            3 
     417#endif 
     418 
     419 
     420/** 
    412421 * @} 
    413422 */ 
  • pjproject/trunk/pjsip/include/pjsip/sip_errno.h

    r861 r871  
    362362 */ 
    363363#define PJSIP_EAUTHINVALIDDIGEST (PJSIP_ERRNO_START_PJSIP+110)  /* 171110 */ 
     364/** 
     365 * @hideinitializer 
     366 * Maximum number of stale retries exceeded. This happens when server  
     367 * keeps rejecting our authorization request with stale=true. 
     368 */ 
     369#define PJSIP_EAUTHSTALECOUNT   (PJSIP_ERRNO_START_PJSIP + 111) /* 171111 */ 
    364370 
    365371 
Note: See TracChangeset for help on using the changeset viewer.