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

Function parse_www_authenticate_header

parser/parse_authenticate.c:413–423  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

411 * -1 on failure.
412 */
413int parse_www_authenticate_header(struct sip_msg *msg,
414 const struct match_auth_hf_desc *md, struct authenticate_body **picked_auth)
415{
416 if ( !msg->www_authenticate &&
417 (parse_headers(msg, HDR_WWW_AUTHENTICATE_F,0)==-1 || !msg->www_authenticate)) {
418 return -1;
419 }
420
421 return parse_authenticate_header(msg->www_authenticate, md,
422 picked_auth);
423}
424
425
426/*

Callers 5

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

Calls 1

Tested by

no test coverage detected