| 1893 | |
| 1894 | |
| 1895 | static inline str *cred_user(struct sip_msg *rq) |
| 1896 | { |
| 1897 | struct hdr_field* h; |
| 1898 | auth_body_t* cred; |
| 1899 | |
| 1900 | get_authorized_cred(rq->proxy_auth, &h); |
| 1901 | if (!h) get_authorized_cred(rq->authorization, &h); |
| 1902 | if (!h) return 0; |
| 1903 | cred=(auth_body_t*)(h->parsed); |
| 1904 | if (!cred || !cred->digest.username.user.len) |
| 1905 | return 0; |
| 1906 | return &cred->digest.username.user; |
| 1907 | } |
| 1908 | |
| 1909 | |
| 1910 | static inline str *cred_realm(struct sip_msg *rq) |
no test coverage detected