Ignore:
Timestamp:
May 1, 2007 4:54:54 PM (15 years ago)
Author:
bennylp
Message:

PJSDP port to Symbian

File:
1 edited

Legend:

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

    r974 r1240  
    214214     
    215215    /* Allocate memory. */ 
    216     cred->response.ptr = pj_pool_alloc(pool, PJSIP_MD5STRLEN); 
     216    cred->response.ptr = (char*) pj_pool_alloc(pool, PJSIP_MD5STRLEN); 
    217217    cred->response.slen = PJSIP_MD5STRLEN; 
    218218 
     
    229229         */ 
    230230        cred->qop = pjsip_AUTH_STR; 
    231         cred->nc.ptr = pj_pool_alloc(pool, 16); 
     231        cred->nc.ptr = (char*) pj_pool_alloc(pool, 16); 
    232232        cred->nc.slen = pj_ansi_snprintf(cred->nc.ptr, 16, "%08u", nc); 
    233233 
     
    267267    if (cached_auth->cnonce.slen == 0) { 
    268268        /* Save the whole challenge */ 
    269         cached_auth->last_chal = pjsip_hdr_clone(ses_pool, hdr); 
     269        cached_auth->last_chal = (pjsip_www_authenticate_hdr*) 
     270                                 pjsip_hdr_clone(ses_pool, hdr); 
    270271 
    271272        /* Create cnonce */ 
     
    367368    sess->endpt = (pjsip_endpoint*)rhs->endpt; 
    368369    sess->cred_cnt = rhs->cred_cnt; 
    369     sess->cred_info = pj_pool_alloc(pool,  
     370    sess->cred_info = (pjsip_cred_info*) 
     371                      pj_pool_alloc(pool,  
    370372                                    sess->cred_cnt*sizeof(pjsip_cred_info)); 
    371373    for (i=0; i<rhs->cred_cnt; ++i) { 
     
    402404    } else { 
    403405        int i; 
    404         sess->cred_info = pj_pool_alloc(sess->pool, cred_cnt * sizeof(*c)); 
     406        sess->cred_info = (pjsip_cred_info*) 
     407                          pj_pool_alloc(sess->pool, cred_cnt * sizeof(*c)); 
    405408        for (i=0; i<cred_cnt; ++i) { 
    406409            sess->cred_info[i].data_type = c[i].data_type; 
     
    817820        cached_auth = find_cached_auth(sess, &hchal->challenge.common.realm ); 
    818821        if (!cached_auth) { 
    819             cached_auth = pj_pool_zalloc( sess->pool, sizeof(*cached_auth)); 
     822            cached_auth = PJ_POOL_ZALLOC_T( sess->pool, pjsip_cached_auth); 
    820823            pj_strdup( sess->pool, &cached_auth->realm, &hchal->challenge.common.realm); 
    821824            cached_auth->is_proxy = (hchal->type == PJSIP_H_PROXY_AUTHENTICATE); 
     
    845848 
    846849    /* Remove branch param in Via header. */ 
    847     via = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
     850    via = (pjsip_via_hdr*) pjsip_msg_find_hdr(tdata->msg, PJSIP_H_VIA, NULL); 
    848851    via->branch_param.slen = 0; 
    849852 
Note: See TracChangeset for help on using the changeset viewer.