Changeset 2109 for pjproject/trunk
- Timestamp:
- Jul 7, 2008 8:00:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c
r2039 r2109 942 942 */ 943 943 if (hdr != &tdata->msg->hdr) { 944 if (hchal->challenge.digest.stale == 0) { 944 pj_bool_t stale; 945 946 /* Detect "stale" state */ 947 stale = hchal->challenge.digest.stale; 948 if (!stale) { 949 /* If stale is false, check is nonce has changed. Some servers 950 * (broken ones!) want to change nonce but they fail to set 951 * stale to true. 952 */ 953 stale = pj_strcmp(&hchal->challenge.digest.nonce, 954 &sent_auth->credential.digest.nonce); 955 } 956 957 if (stale == PJ_FALSE) { 945 958 /* Our credential is rejected. No point in trying to re-supply 946 959 * the same credential.
Note: See TracChangeset
for help on using the changeset viewer.