RFC-2617 */
| 1495 | |
| 1496 | /* RFC-2617 */ |
| 1497 | static const char *new_digest(const request_rec *r, |
| 1498 | digest_header_rec *resp) |
| 1499 | { |
| 1500 | const char *ha1, *ha2, *a2; |
| 1501 | |
| 1502 | ha1 = resp->ha1; |
| 1503 | |
| 1504 | a2 = apr_pstrcat(r->pool, resp->method, ":", resp->uri, NULL); |
| 1505 | ha2 = ap_md5(r->pool, (const unsigned char *)a2); |
| 1506 | |
| 1507 | return ap_md5(r->pool, |
| 1508 | (unsigned char *)apr_pstrcat(r->pool, ha1, ":", resp->nonce, |
| 1509 | ":", resp->nonce_count, ":", |
| 1510 | resp->cnonce, ":", |
| 1511 | resp->message_qop, ":", ha2, |
| 1512 | NULL)); |
| 1513 | } |
| 1514 | |
| 1515 | static void copy_uri_components(apr_uri_t *dst, |
| 1516 | apr_uri_t *src, request_rec *r) { |
no test coverage detected