* This method is used to parse WWW-Authenticate header. * * params: msg : sip msg * returns 0 on success, * -1 on failure. */
| 411 | * -1 on failure. |
| 412 | */ |
| 413 | int 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 | /* |
no test coverage detected