Ignore:
Timestamp:
Oct 29, 2006 6:13:13 PM (17 years ago)
Author:
bennylp
Message:

Another Symbian commit, ported all PJSIP libraries and sipstateless runs without crashes (still no SIP message though)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/symbian/pjsip/src/pjsip/sip_auth_msg.c

    r82 r789  
    4747PJ_DEF(pjsip_authorization_hdr*) pjsip_authorization_hdr_create(pj_pool_t *pool) 
    4848{ 
    49     pjsip_authorization_hdr *hdr = pj_pool_calloc(pool, 1, sizeof(*hdr)); 
     49    pjsip_authorization_hdr *hdr = (pjsip_authorization_hdr *) 
     50                                    pj_pool_calloc(pool, 1, sizeof(*hdr)); 
    5051    init_hdr(hdr, PJSIP_H_AUTHORIZATION, &authorization_hdr_vptr); 
    5152    pj_list_init(&hdr->credential.common.other_param); 
     
    5556PJ_DEF(pjsip_proxy_authorization_hdr*) pjsip_proxy_authorization_hdr_create(pj_pool_t *pool) 
    5657{ 
    57     pjsip_proxy_authorization_hdr *hdr = pj_pool_calloc(pool, 1, sizeof(*hdr)); 
     58    pjsip_proxy_authorization_hdr *hdr = (pjsip_proxy_authorization_hdr *) 
     59                                         pj_pool_calloc(pool, 1, sizeof(*hdr)); 
    5860    init_hdr(hdr, PJSIP_H_PROXY_AUTHORIZATION, &authorization_hdr_vptr); 
    5961    pj_list_init(&hdr->credential.common.other_param); 
     
    173175{ 
    174176    /* This function also serves Proxy-Authorization header. */ 
    175     pjsip_authorization_hdr *hdr = pj_pool_alloc(pool, sizeof(*hdr)); 
     177    pjsip_authorization_hdr *hdr = (pjsip_authorization_hdr *) 
     178                                   pj_pool_alloc(pool, sizeof(*hdr)); 
    176179    pj_memcpy(hdr, rhs, sizeof(*hdr)); 
    177180    pjsip_param_shallow_clone(pool, &hdr->credential.common.other_param,  
     
    202205PJ_DEF(pjsip_www_authenticate_hdr*) pjsip_www_authenticate_hdr_create(pj_pool_t *pool) 
    203206{ 
    204     pjsip_www_authenticate_hdr *hdr = pj_pool_calloc(pool, 1, sizeof(*hdr)); 
     207    pjsip_www_authenticate_hdr *hdr = (pjsip_www_authenticate_hdr *)  
     208                                      pj_pool_calloc(pool, 1, sizeof(*hdr)); 
    205209    init_hdr(hdr, PJSIP_H_WWW_AUTHENTICATE, &www_authenticate_hdr_vptr); 
    206210    pj_list_init(&hdr->challenge.common.other_param); 
     
    211215PJ_DEF(pjsip_proxy_authenticate_hdr*) pjsip_proxy_authenticate_hdr_create(pj_pool_t *pool) 
    212216{ 
    213     pjsip_proxy_authenticate_hdr *hdr = pj_pool_calloc(pool, 1, sizeof(*hdr)); 
     217    pjsip_proxy_authenticate_hdr *hdr = (pjsip_proxy_authenticate_hdr *) 
     218                                         pj_pool_calloc(pool, 1, sizeof(*hdr)); 
    214219    init_hdr(hdr, PJSIP_H_PROXY_AUTHENTICATE, &www_authenticate_hdr_vptr); 
    215220    pj_list_init(&hdr->challenge.common.other_param); 
     
    323328{ 
    324329    /* This function also serves Proxy-Authenticate header. */ 
    325     pjsip_www_authenticate_hdr *hdr = pj_pool_alloc(pool, sizeof(*hdr)); 
     330    pjsip_www_authenticate_hdr *hdr = (pjsip_www_authenticate_hdr *)  
     331                                       pj_pool_alloc(pool, sizeof(*hdr)); 
    326332    pj_memcpy(hdr, rhs, sizeof(*hdr)); 
    327333    pjsip_param_shallow_clone(pool, &hdr->challenge.common.other_param,  
Note: See TracChangeset for help on using the changeset viewer.