* 0x0D), starting at pointer <start> which must be within <ist>. Returns
* non-zero if such a character is found, 0 otherwise. When run on unlikely
* header match, it's recommended to first check for the presence of control
- * chars using ist_find_ctl().
+ * chars using ist_find_http_ctl().
*/
static inline int http_header_has_forbidden_char(const struct ist ist, const char *start)
{
* 0x20, 0x23), starting at pointer <start> which must be within <ist>.
* Returns non-zero if such a character is found, 0 otherwise. When run on
* unlikely header match, it's recommended to first check for the presence
- * of control chars using ist_find_ctl().
+ * of control chars using ist_find_http_ctl().
*/
static inline int http_path_has_forbidden_char(const struct ist ist, const char *start)
{
if (unlikely(ctl) && http_path_has_forbidden_char(list[idx].v, ctl))
goto fail;
} else {
- ctl = ist_find_ctl(list[idx].v);
+ ctl = ist_find_http_ctl(list[idx].v);
if (unlikely(ctl) && http_header_has_forbidden_char(list[idx].v, ctl))
goto fail;
}
/* RFC7540#10.3: intermediaries forwarding to HTTP/1 must take care of
* rejecting NUL, CR and LF characters.
*/
- ctl = ist_find_ctl(list[idx].v);
+ ctl = ist_find_http_ctl(list[idx].v);
if (unlikely(ctl) && http_header_has_forbidden_char(list[idx].v, ctl))
goto fail;
static int _h3_handle_phdr(struct qcs *qcs, const struct http_hdr *h)
{
/* look for forbidden control characters in the pseudo-header value */
- const char *ctl = ist_find_ctl(h->v);
+ const char *ctl = ist_find_http_ctl(h->v);
if (unlikely(ctl) && http_header_has_forbidden_char(h->v, ctl)) {
TRACE_ERROR("control character present in pseudo-header value", H3_EV_RX_FRAME|H3_EV_RX_HDR, qcs->qcc->conn, qcs);
goto err;
*/
/* look for forbidden control characters in the header value */
- ctl = ist_find_ctl(value);
+ ctl = ist_find_http_ctl(value);
if (unlikely(ctl) && http_header_has_forbidden_char(value, ctl)) {
TRACE_ERROR("control character present in header value", H3_EV_RX_FRAME|H3_EV_RX_HDR, qcs->qcc->conn, qcs);
goto err;
* response that contains a character not permitted in a field
* value MUST be treated as malformed
*/
- ctl = ist_find_ctl(list[idx].v);
+ ctl = ist_find_http_ctl(list[idx].v);
if (unlikely(ctl) && http_header_has_forbidden_char(list[idx].v, ctl)) {
ret = HTTP_PRS_INV_HVAL;
goto fail;