MCPcopy Create free account
hub / github.com/apache/httpd / new_digest

Function new_digest

modules/aaa/mod_auth_digest.c:1497–1513  ·  view source on GitHub ↗

RFC-2617 */

Source from the content-addressed store, hash-verified

1495
1496/* RFC-2617 */
1497static 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
1515static void copy_uri_components(apr_uri_t *dst,
1516 apr_uri_t *src, request_rec *r) {

Callers 1

authenticate_digest_userFunction · 0.85

Calls 1

ap_md5Function · 0.85

Tested by

no test coverage detected