MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / parse_proxy_authenticate_header

Function parse_proxy_authenticate_header

parser/parse_authenticate.c:433–443  ·  view source on GitHub ↗

* This method is used to parse Proxy-Authenticate header. * * params: msg : sip msg * returns 0 on success, * -1 on failure. */

Source from the content-addressed store, hash-verified

431 * -1 on failure.
432 */
433int parse_proxy_authenticate_header(struct sip_msg *msg,
434 const struct match_auth_hf_desc *md, struct authenticate_body **picked_auth)
435{
436 if ( !msg->proxy_authenticate &&
437 (parse_headers(msg, HDR_PROXY_AUTHENTICATE_F,0)==-1 || !msg->proxy_authenticate)) {
438 return -1;
439 }
440
441 return parse_authenticate_header(msg->proxy_authenticate, md,
442 picked_auth);
443}
444
445
446void free_authenticate(struct authenticate_body *authenticate_b)

Callers 4

pv_get_cauthattrFunction · 0.85
uac_authFunction · 0.85
run_reg_tm_cbackFunction · 0.85
b2b_tm_cbackFunction · 0.85

Calls 1

Tested by

no test coverage detected