X-Git-Url: http://www.privoxy.org/gitweb/%40proxy-info-url%40?a=blobdiff_plain;f=urlmatch.h;h=8643aa4e71b921323aafd924656657ce3b90b93c;hb=fa6f0c233abb34b8b6d1c37191914d735e6fc3bf;hp=ba86b5a3771ec9cfb95d7e91ed032e69b61260cf;hpb=d01bb4028a9d19a62672a8d7d8d13f09ae270851;p=privoxy.git diff --git a/urlmatch.h b/urlmatch.h index ba86b5a3..8643aa4e 100644 --- a/urlmatch.h +++ b/urlmatch.h @@ -8,7 +8,7 @@ * patterns. * * Copyright : Written by and Copyright (C) 2001-2002, 2006 the - * Privoxy team. http://www.privoxy.org/ + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -38,9 +38,7 @@ #include "project.h" extern void free_http_request(struct http_request *http); -#ifndef FEATURE_EXTENDED_HOST_PATTERNS extern jb_err init_domain_components(struct http_request *http); -#endif extern jb_err parse_http_request(const char *req, struct http_request *http); extern jb_err parse_http_url(const char *url, struct http_request *http, @@ -52,6 +50,10 @@ extern int url_requires_percent_encoding(const char *url); extern int url_match(const struct pattern_spec *pattern, const struct http_request *http); +#ifdef HAVE_PCRE2 +extern int pcre2_pattern_matches(const pcre2_code *pattern, const char *string); +#endif + extern jb_err create_pattern_spec(struct pattern_spec *url, char *buf); extern void free_pattern_spec(struct pattern_spec *url); extern int match_portlist(const char *portlist, int port);