Changeset 1492 for pjproject/trunk
- Timestamp:
- Oct 11, 2007 11:26:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_auth_aka.c
r1489 r1492 48 48 pj_uint8_t xmac[PJSIP_AKA_MACLEN]; 49 49 pjsip_cred_info aka_cred; 50 int i ;50 int i, len; 51 51 pj_status_t status; 52 52 … … 64 64 65 65 /* Decode nonce */ 66 nonce_bin.slen = PJ_BASE64_TO_BASE256_LEN(chal->nonce.slen);66 nonce_bin.slen = len = PJ_BASE64_TO_BASE256_LEN(chal->nonce.slen); 67 67 nonce_bin.ptr = pj_pool_alloc(pool, nonce_bin.slen + 1); 68 status = pj_base64_decode(&chal->nonce, (pj_uint8_t*)nonce_bin.ptr, 69 &nonce_bin.slen);68 status = pj_base64_decode(&chal->nonce, (pj_uint8_t*)nonce_bin.ptr, &len); 69 nonce_bin.slen = len; 70 70 if (status != PJ_SUCCESS) 71 71 return PJSIP_EAUTHINNONCE;
Note: See TracChangeset
for help on using the changeset viewer.