* This method is used to parse Proxy-Authenticate header. * * params: msg : sip msg * returns 0 on success, * -1 on failure. */
| 431 | * -1 on failure. |
| 432 | */ |
| 433 | int 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 | |
| 446 | void free_authenticate(struct authenticate_body *authenticate_b) |
no test coverage detected