- Timestamp:
- Nov 3, 2007 1:46:03 AM (17 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_errno.h
r1488 r1539 392 392 */ 393 393 #define PJSIP_EAUTHINAKACRED (PJSIP_ERRNO_START_PJSIP + 113) /* 171113 */ 394 394 /** 395 * No challenge is found in the challenge. 396 */ 397 #define PJSIP_EAUTHNOCHAL (PJSIP_ERRNO_START_PJSIP + 114) /* 171114 */ 395 398 396 399 /************************************************************ -
pjproject/trunk/pjsip/src/pjsip/sip_auth_client.c
r1514 r1539 902 902 pjsip_tx_data *tdata; 903 903 const pjsip_hdr *hdr; 904 unsigned chal_cnt; 904 905 pjsip_via_hdr *via; 905 906 pj_status_t status; … … 922 923 */ 923 924 hdr = rdata->msg_info.msg->hdr.next; 925 chal_cnt = 0; 924 926 while (hdr != &rdata->msg_info.msg->hdr) { 925 927 pjsip_cached_auth *cached_auth; … … 938 940 939 941 hchal = (const pjsip_www_authenticate_hdr*) hdr; 942 ++chal_cnt; 940 943 941 944 /* Find authentication session for this realm, create a new one … … 970 973 } 971 974 975 /* Check if challenge is present */ 976 if (chal_cnt == 0) 977 return PJSIP_EAUTHNOCHAL; 972 978 973 979 /* Remove branch param in Via header. */ -
pjproject/trunk/pjsip/src/pjsip/sip_errno.c
r1488 r1539 105 105 PJ_BUILD_ERR( PJSIP_EAUTHINNONCE, "Invalid nonce value in authentication challenge"), 106 106 PJ_BUILD_ERR( PJSIP_EAUTHINAKACRED, "Invalid AKA credential"), 107 PJ_BUILD_ERR( PJSIP_EAUTHNOCHAL, "No challenge is found"), 107 108 108 109 /* UA/dialog layer. */
Note: See TracChangeset
for help on using the changeset viewer.