/illumos-gate/usr/src/lib/libsip/common/ |
H A D | sip_gids.c | 241 hdrlen = via->sip_hdr_end - via->sip_hdr_start; in sip_branchid() 242 _sasl_MD5Update(&ctx, (uchar_t *)via->sip_hdr_start, hdrlen); in sip_branchid() 243 hdrlen = to->sip_hdr_end - to->sip_hdr_start; in sip_branchid() 244 _sasl_MD5Update(&ctx, (uchar_t *)to->sip_hdr_start, hdrlen); in sip_branchid() 245 hdrlen = from->sip_hdr_end - from->sip_hdr_start; in sip_branchid() 246 _sasl_MD5Update(&ctx, (uchar_t *)from->sip_hdr_start, hdrlen); in sip_branchid() 247 hdrlen = callid->sip_hdr_end - callid->sip_hdr_start; in sip_branchid() 248 _sasl_MD5Update(&ctx, (uchar_t *)callid->sip_hdr_start, hdrlen); in sip_branchid() 257 hdrlen = via->sip_hdr_end - via->sip_hdr_start; in sip_branchid() 258 MD5Update(&ctx, (uchar_t *)via->sip_hdr_start, hdrlen); in sip_branchid() [all …]
|
H A D | sip_headers.c | 235 new_header->sip_hdr_start = calloc(1, header_size + 1); in sip_new_header() 236 if (new_header->sip_hdr_start == NULL) { in sip_new_header() 240 new_header->sip_hdr_end = new_header->sip_hdr_start + header_size; in sip_new_header() 241 new_header->sip_hdr_current = new_header->sip_hdr_start; in sip_new_header() 253 assert(sip_header->sip_hdr_start != NULL); in sip_free_header() 254 free(sip_header->sip_hdr_start); in sip_free_header() 275 hdr_size = from->sip_hdr_end - from->sip_hdr_start; in sip_dup_header() 280 to->sip_hdr_end = to->sip_hdr_start + in sip_dup_header() 281 sip_copy_values(to->sip_hdr_start, from); in sip_dup_header() 283 (void) memcpy(to->sip_hdr_start, from->sip_hdr_start, hdr_size); in sip_dup_header() [all …]
|
H A D | sip_add_hdrs.c | 148 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_empty_hdr() 203 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg() 207 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg() 213 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg() 218 (void) snprintf(new_header->sip_hdr_start, in sip_add_2strs_to_msg() 268 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_str_to_msg() 271 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_str_to_msg() 328 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_int_to_msg() 331 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_int_to_msg() 392 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_intstr_to_msg() [all …]
|
H A D | sip_msg.c | 278 msg->sip_msg_start_line->sip_hdr_start; in sip_msg_to_msgbuf() 279 (void) strncpy(e, msg->sip_msg_start_line->sip_hdr_start, len); in sip_msg_to_msgbuf() 293 header->sip_hdr_start; in sip_msg_to_msgbuf() 294 (void) strncpy(e, header->sip_hdr_start, len); in sip_msg_to_msgbuf() 369 header->sip_hdr_start; in sip_adjust_msgbuf() 412 len = header->sip_hdr_current - header->sip_hdr_start; in sip_copy_values() 413 (void) strncpy(p, header->sip_hdr_start, len); in sip_copy_values() 567 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_response_line() 923 (void) snprintf(new_header->sip_hdr_start, header_size + 1, in sip_add_request_line()
|
H A D | sip_xaction.c | 91 sip_md5_hash(via->sip_hdr_start, in sip_find_md5_digest() 92 via->sip_hdr_end - via->sip_hdr_start, in sip_find_md5_digest() 93 cid->sip_hdr_start, in sip_find_md5_digest() 94 cid->sip_hdr_end - cid->sip_hdr_start, in sip_find_md5_digest() 95 from->sip_hdr_start, in sip_find_md5_digest() 96 from->sip_hdr_end - from->sip_hdr_start, in sip_find_md5_digest()
|
H A D | sip_ui.c | 217 _sip_hdr->sip_hdr_start; in sip_delete_header_by_name() 250 _sip_header->sip_hdr_start; in sip_delete_header() 818 (void) snprintf(new_header->sip_hdr_start, header_size + 1, "%s%s", in sip_add_header() 870 hdrlen = _sip_header->sip_hdr_end - _sip_header->sip_hdr_start; in sip_add_param() 879 (void) memcpy(new_header->sip_hdr_start, _sip_header->sip_hdr_start, in sip_add_param() 881 new_header->sip_hdr_end = new_header->sip_hdr_start + hdrlen; in sip_add_param() 889 if (tmp_ptr == new_header->sip_hdr_start) { in sip_add_param()
|
H A D | sip_parse_generic.c | 97 if (sip_header->sip_hdr_current == sip_header->sip_hdr_start) in sip_find_cr() 171 while (sip_header->sip_hdr_current >= sip_header->sip_hdr_start) { in sip_reverse_skip_white_space() 340 sip_header->sip_hdr_current = sip_header->sip_hdr_start; in sip_is_empty_hdr() 345 sip_header->sip_hdr_current = sip_header->sip_hdr_start; in sip_is_empty_hdr() 349 sip_header->sip_hdr_current = sip_header->sip_hdr_start; in sip_is_empty_hdr() 425 assert(sip_header->sip_hdr_start == sip_header->sip_hdr_current); in sip_prim_parsers()
|
H A D | sip_msg.h | 509 #define sip_hdr_start sip_hdr_general.sip_hdr_start macro
|
H A D | sip_itf.c | 188 sip_msg_header->sip_hdr_start = msg; in sip_setup_header_pointers() 208 sip_msg_header->sip_hdr_start = msg; in sip_setup_header_pointers()
|
H A D | sip.h | 352 char *sip_hdr_start; member
|
H A D | sip_dialog.c | 464 (void) snprintf(rhdr->sip_hdr_start, rset_len + strlen(SIP_CRLF) + 1, in sip_dialog_set_route_hdr() 846 newhdr->sip_hdr_current = newhdr->sip_hdr_start; in sip_dlg_xchg_from_to()
|