Changeset 789 for pjproject/branches/symbian/pjsip/src/pjsip/sip_auth_msg.c
- Timestamp:
- Oct 29, 2006 6:13:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/pjsip/src/pjsip/sip_auth_msg.c
r82 r789 47 47 PJ_DEF(pjsip_authorization_hdr*) pjsip_authorization_hdr_create(pj_pool_t *pool) 48 48 { 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)); 50 51 init_hdr(hdr, PJSIP_H_AUTHORIZATION, &authorization_hdr_vptr); 51 52 pj_list_init(&hdr->credential.common.other_param); … … 55 56 PJ_DEF(pjsip_proxy_authorization_hdr*) pjsip_proxy_authorization_hdr_create(pj_pool_t *pool) 56 57 { 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)); 58 60 init_hdr(hdr, PJSIP_H_PROXY_AUTHORIZATION, &authorization_hdr_vptr); 59 61 pj_list_init(&hdr->credential.common.other_param); … … 173 175 { 174 176 /* 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)); 176 179 pj_memcpy(hdr, rhs, sizeof(*hdr)); 177 180 pjsip_param_shallow_clone(pool, &hdr->credential.common.other_param, … … 202 205 PJ_DEF(pjsip_www_authenticate_hdr*) pjsip_www_authenticate_hdr_create(pj_pool_t *pool) 203 206 { 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)); 205 209 init_hdr(hdr, PJSIP_H_WWW_AUTHENTICATE, &www_authenticate_hdr_vptr); 206 210 pj_list_init(&hdr->challenge.common.other_param); … … 211 215 PJ_DEF(pjsip_proxy_authenticate_hdr*) pjsip_proxy_authenticate_hdr_create(pj_pool_t *pool) 212 216 { 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)); 214 219 init_hdr(hdr, PJSIP_H_PROXY_AUTHENTICATE, &www_authenticate_hdr_vptr); 215 220 pj_list_init(&hdr->challenge.common.other_param); … … 323 328 { 324 329 /* 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)); 326 332 pj_memcpy(hdr, rhs, sizeof(*hdr)); 327 333 pjsip_param_shallow_clone(pool, &hdr->challenge.common.other_param,
Note: See TracChangeset
for help on using the changeset viewer.