Lines Matching refs:dp
888 mod_auth_digest_mutate (http_auth_info_t * const ai, const http_auth_digest_params_t * const dp, co… in mod_auth_digest_mutate() argument
915 iov[2].iov_base = dp->ptr[e_nonce]; in mod_auth_digest_mutate()
916 iov[2].iov_len = dp->len[e_nonce]; in mod_auth_digest_mutate()
919 iov[4].iov_base = dp->ptr[e_cnonce]; in mod_auth_digest_mutate()
920 iov[4].iov_len = dp->len[e_cnonce]; in mod_auth_digest_mutate()
930 iov[2].iov_base = dp->ptr[e_uri]; in mod_auth_digest_mutate()
931 iov[2].iov_len = dp->len[e_uri]; in mod_auth_digest_mutate()
935 if (dp->ptr[e_qop] && buffer_eq_icase_ss(dp->ptr[e_qop], dp->len[e_qop], in mod_auth_digest_mutate()
952 iov[2].iov_base = dp->ptr[e_nonce]; in mod_auth_digest_mutate()
953 iov[2].iov_len = dp->len[e_nonce]; in mod_auth_digest_mutate()
957 if (dp->len[e_qop]) { in mod_auth_digest_mutate()
958 iov[4].iov_base = dp->ptr[e_nc]; in mod_auth_digest_mutate()
959 iov[4].iov_len = dp->len[e_nc]; in mod_auth_digest_mutate()
962 iov[6].iov_base = dp->ptr[e_cnonce]; in mod_auth_digest_mutate()
963 iov[6].iov_len = dp->len[e_cnonce]; in mod_auth_digest_mutate()
966 iov[8].iov_base = dp->ptr[e_qop]; in mod_auth_digest_mutate()
967 iov[8].iov_len = dp->len[e_qop]; in mod_auth_digest_mutate()
1213 mod_auth_digest_parse_authorization (http_auth_digest_params_t * const dp, const char *c) in mod_auth_digest_parse_authorization() argument
1268 dp->ptr[dkv[i].id] = c; in mod_auth_digest_parse_authorization()
1269 dp->len[dkv[i].id] = (uint16_t)(e - c); in mod_auth_digest_parse_authorization()
1283 mod_auth_digest_validate_userstar (request_st * const r, http_auth_digest_params_t * const dp, http… in mod_auth_digest_validate_userstar() argument
1287 if (dp->len[e_userhash] == 4) { /*("true")*/ in mod_auth_digest_validate_userstar()
1295 const char *ptr = dp->ptr[e_userstar]; in mod_auth_digest_validate_userstar()
1296 uint32_t len = dp->len[e_userstar]; in mod_auth_digest_validate_userstar()
1309 len - (uint32_t)(ptr - dp->ptr[e_userstar])))) { in mod_auth_digest_validate_userstar()
1318 buffer_copy_string_len(tb, ptr, len-(uint32_t)(ptr - dp->ptr[e_userstar])); in mod_auth_digest_validate_userstar()
1320 if (dp->ptr[e_userstar][0] == 'u' && !buffer_is_valid_UTF8(tb)) { in mod_auth_digest_validate_userstar()
1348 …uct http_auth_require_t * const require, http_auth_digest_params_t * const dp, http_auth_info_t * … in mod_auth_digest_validate_params() argument
1351 if ((!dp->ptr[e_qop] || (dp->ptr[e_nc] && dp->ptr[e_cnonce])) in mod_auth_digest_validate_params()
1352 && ((NULL != dp->ptr[e_username]) ^ (NULL != dp->ptr[e_userstar])) in mod_auth_digest_validate_params()
1353 && dp->ptr[e_realm] in mod_auth_digest_validate_params()
1354 && dp->ptr[e_nonce] in mod_auth_digest_validate_params()
1355 && dp->ptr[e_uri] in mod_auth_digest_validate_params()
1356 && dp->ptr[e_response]) { in mod_auth_digest_validate_params()
1357 ai->username = dp->ptr[e_username]; in mod_auth_digest_validate_params()
1358 ai->ulen = dp->len[e_username]; in mod_auth_digest_validate_params()
1359 ai->realm = dp->ptr[e_realm]; in mod_auth_digest_validate_params()
1360 ai->rlen = dp->len[e_realm]; in mod_auth_digest_validate_params()
1361 ai->userhash = (dp->len[e_userhash]==4);/*("true", not "false",absent)*/ in mod_auth_digest_validate_params()
1363 if (HANDLER_GO_ON != mod_auth_digest_validate_userstar(r, dp, ai)) in mod_auth_digest_validate_params()
1379 if (!mod_auth_algorithm_parse(ai,dp->ptr[e_algorithm],dp->len[e_algorithm]) in mod_auth_digest_validate_params()
1383 (int)dp->len[e_algorithm], dp->ptr[e_algorithm]); in mod_auth_digest_validate_params()
1389 && (!dp->ptr[e_nonce] || !dp->ptr[e_cnonce])) { in mod_auth_digest_validate_params()
1392 (int)dp->len[e_algorithm], dp->ptr[e_algorithm]); in mod_auth_digest_validate_params()
1396 if (0 != li_hex2bin(dp->rdigest, sizeof(dp->rdigest), in mod_auth_digest_validate_params()
1397 dp->ptr[e_response], dp->len[e_response]) in mod_auth_digest_validate_params()
1398 || dp->len[e_response] != (ai->dlen << 1)) { in mod_auth_digest_validate_params()
1400 "digest: (%s): invalid format", dp->ptr[e_response]); in mod_auth_digest_validate_params()
1404 if (dp->ptr[e_qop]&& buffer_eq_icase_ss(dp->ptr[e_qop], dp->len[e_qop], in mod_auth_digest_validate_params()
1419 if (!buffer_eq_slen(&r->target_orig, dp->ptr[e_uri], dp->len[e_uri])) { in mod_auth_digest_validate_params()
1422 r->target_orig.ptr, (int)dp->len[e_uri], dp->ptr[e_uri], in mod_auth_digest_validate_params()
1432 …uct http_auth_require_t * const require, http_auth_digest_params_t * const dp, http_auth_info_t * … in mod_auth_digest_validate_nonce() argument
1451 const unsigned char * const nonce = (unsigned char *)dp->ptr[e_nonce]; in mod_auth_digest_validate_nonce()
1463 dp->send_nextnonce_ts = cur_ts; in mod_auth_digest_validate_nonce()
1480 if (!buffer_eq_slen(tb, dp->ptr[e_nonce], dp->len[e_nonce])) { in mod_auth_digest_validate_nonce()
1508 http_auth_digest_params_t dp; in mod_auth_check_digest() local
1513 memset(&dp, 0, sizeof(dp) - sizeof(dp.rdigest)); in mod_auth_check_digest()
1515 mod_auth_digest_parse_authorization(&dp, vb->ptr + sizeof("Digest ")-1); in mod_auth_check_digest()
1517 rc = mod_auth_digest_validate_params(r, require, &dp, &ai); in mod_auth_check_digest()
1521 rc = mod_auth_digest_validate_nonce(r, require, &dp, &ai); in mod_auth_check_digest()
1529 mod_auth_digest_mutate(&ai, &dp, http_method_buf(r->http_method)); in mod_auth_check_digest()
1531 if (!ck_memeq_const_time_fixed_len(dp.rdigest, ai.digest, ai.dlen)) { in mod_auth_check_digest()
1548 if (dp.send_nextnonce_ts) { in mod_auth_check_digest()
1553 dp.send_nextnonce_ts /*(cur_ts)*/, require, ai.dalgo); in mod_auth_check_digest()