Home
last modified time | relevance | path

Searched refs:psl (Results 1 – 25 of 56) sorted by relevance

123

/third_party/curl/lib/
Dpsl.c39 if(pslcache->psl) { in Curl_psl_destroy()
41 psl_free((psl_ctx_t *) pslcache->psl); in Curl_psl_destroy()
42 pslcache->psl = NULL; in Curl_psl_destroy()
56 struct PslCache *pslcache = easy->psl; in Curl_psl_use()
57 const psl_ctx_t *psl; in Curl_psl_use() local
65 if(!pslcache->psl || pslcache->expires <= now) { in Curl_psl_use()
74 if(!pslcache->psl || pslcache->expires <= now) { in Curl_psl_use()
79 psl = psl_latest(NULL); in Curl_psl_use()
80 dynamic = psl != NULL; in Curl_psl_use()
85 if(!psl && !pslcache->dynamic) in Curl_psl_use()
[all …]
/third_party/libpsl/tests/
Dtest-is-public-all.c70 static void test_ps(const psl_ctx_t *psl, const char *domain, int type, int expected) in test_ps() argument
74 if ((result = psl_is_public_suffix2(psl, domain, type)) != expected) { in test_ps()
81 static void test_type_any(const psl_ctx_t *psl, const char *domain, int type, int expected) in test_type_any() argument
86 test_ps(psl, domain, type, expected); in test_type_any()
87 test_ps(psl, domain, type|PSL_TYPE_NO_STAR_RULE, expected); in test_type_any()
88 test_ps(psl, domain, PSL_TYPE_ANY, expected); in test_type_any()
89 test_ps(psl, domain, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE, expected); in test_type_any()
93 test_ps(psl, domain, PSL_TYPE_ICANN, 1); in test_type_any()
94 test_ps(psl, domain, PSL_TYPE_ICANN|PSL_TYPE_NO_STAR_RULE, 0); in test_type_any()
96 test_ps(psl, domain, PSL_TYPE_ICANN, 0); in test_type_any()
[all …]
Dtest-registrable-domain.c53 static void testx(const psl_ctx_t *psl, const char *domain, const char *encoding, const char *lang,… in testx() argument
74 result = psl_registrable_domain(psl, domain); in testx()
87 static void test(const psl_ctx_t *psl, const char *domain, const char *expected_result) in test() argument
89 testx(psl, domain, "utf-8", "en", expected_result); in test()
92 static void test_iso(const psl_ctx_t *psl, const char *domain, const char *expected_result) in test_iso() argument
96 testx(psl, domain, "iso-8859-15", "de", expected_result); in test_iso()
103 const psl_ctx_t *psl; in test_psl() local
110 psl = psl_builtin(); in test_psl()
112 …tf("have %d suffixes and %d exceptions\n", psl_suffix_count(psl), psl_suffix_exception_count(psl)); in test_psl()
125 test(psl, "www.\303\230yer.no", "www.\303\270yer.no"); in test_psl()
[all …]
Dtest-is-public.c93 psl_ctx_t *psl; in test_psl() local
95 psl = psl_load_file(PSL_FILE); in test_psl()
97 …("loaded %d suffixes and %d exceptions\n", psl_suffix_count(psl), psl_suffix_exception_count(psl)); in test_psl()
101 result = psl_is_public_suffix(psl, t->domain); in test_psl()
113 result = psl_is_public_suffix2(psl, t->domain, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE); in test_psl()
172 psl_suffix_wildcard_count(psl); in test_psl()
179 psl_registrable_domain(psl, NULL); in test_psl()
180 psl_registrable_domain(psl, "www.example.com"); in test_psl()
182 psl_unregistrable_domain(psl, NULL); in test_psl()
184 psl_is_public_suffix2(psl, NULL, PSL_TYPE_ANY); in test_psl()
[all …]
Dtest-is-cookie-domain-acceptable.c85 psl_ctx_t *psl; in test_psl() local
87 psl = psl_load_file(PSL_FILE); in test_psl()
89 …("loaded %d suffixes and %d exceptions\n", psl_suffix_count(psl), psl_suffix_exception_count(psl)); in test_psl()
93 int result = psl_is_cookie_domain_acceptable(psl, t->request_domain, t->cookie_domain); in test_psl()
107 psl_free(psl); in test_psl()
Dtest-is-public-builtin.c98 const psl_ctx_t *psl; in test_psl() local
100 psl = psl_builtin(); in test_psl()
102 …tf("have %d suffixes and %d exceptions\n", psl_suffix_count(psl), psl_suffix_exception_count(psl)); in test_psl()
106 int result = psl_is_public_suffix(psl, t->domain); in test_psl()
118 int result = psl_is_public_suffix2(psl, t->domain, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE); in test_psl()
/third_party/libpsl/tools/
Dpsl.c83 psl_ctx_t *psl = (psl_ctx_t *) psl_latest(NULL); in main() local
103 psl_free(psl); in main()
108 if (!(psl = (psl_ctx_t *) psl_latest(NULL))) in main()
112 psl_free(psl); in main()
117 if (!(psl = (psl_ctx_t *) psl_builtin())) in main()
124 psl_free(psl); in main()
129 if (!(psl = psl_load_file(psl_file = *(++arg)))) { in main()
166 if (!psl) { in main()
192 printf("%d", psl_is_public_suffix2(psl, lower, PSL_TYPE_ANY|PSL_TYPE_NO_STAR_RULE)); in main()
194 printf("%d", psl_is_public_suffix(psl, lower)); in main()
[all …]
Dmeson.build1 psl = executable('psl', 'psl.c', build
DMakefile.am1 bin_PROGRAMS = psl program
6 dist_man_MANS = psl.1
/third_party/node/deps/npm/node_modules/psl/
DREADME.md1 # psl (Public Suffix List)
3 [![NPM](https://nodei.co/npm/psl.png?downloads=true&downloadRank=true)](https://nodei.co/npm/psl/)
5 [![Greenkeeper badge](https://badges.greenkeeper.io/wrangr/psl.svg)](https://greenkeeper.io/)
6 [![Build Status](https://travis-ci.org/wrangr/psl.svg?branch=master)](https://travis-ci.org/wrangr/
7 …devDependency Status](https://david-dm.org/wrangr/psl/dev-status.png)](https://david-dm.org/wrangr…
9 `psl` is a `JavaScript` domain name parser based on the
38 npm install --save psl
43 Download [psl.min.js](https://raw.githubusercontent.com/wrangr/psl/master/dist/psl.min.js)
47 <script src="psl.min.js"></script>
56 ### `psl.parse(domain)`
[all …]
/third_party/libpsl/src/
Dpsl.c827 static int is_public_suffix(const psl_ctx_t *psl, const char *domain, int type) in is_public_suffix() argument
856 if (psl->utf8 || psl == &builtin_psl) in is_public_suffix()
878 if (psl == &builtin_psl || psl->dafsa) { in is_public_suffix()
879 size_t dafsa_size = psl == &builtin_psl ? sizeof(kDafsa) : psl->dafsa_size; in is_public_suffix()
880 const unsigned char *dafsa = psl == &builtin_psl ? kDafsa : psl->dafsa; in is_public_suffix()
914 psl_entry_t *rule = vector_get(psl->suffixes, 0); in is_public_suffix()
919 rule = vector_get(psl->suffixes, vector_find(psl->suffixes, &suffix)); in is_public_suffix()
943 rule = vector_get(psl->suffixes, (pos = vector_find(psl->suffixes, &suffix))); in is_public_suffix()
990 int psl_is_public_suffix(const psl_ctx_t *psl, const char *domain) in psl_is_public_suffix() argument
992 if (!psl || !domain) in psl_is_public_suffix()
[all …]
Dmeson.build1 psl_make_dafsa = files('psl-make-dafsa')
10 'psl.c',
19 libpsl = library('psl', sources, suffixes_dafsa_h, build
/third_party/libpsl/fuzz/
Dlibpsl_fuzzer.c48 psl_ctx_t *psl; in LLVMFuzzerTestOneInput() local
62 psl = (psl_ctx_t *) psl_builtin(); in LLVMFuzzerTestOneInput()
64 psl_is_public_suffix(psl, domain); in LLVMFuzzerTestOneInput()
65 psl_is_public_suffix2(psl, domain, PSL_TYPE_PRIVATE); in LLVMFuzzerTestOneInput()
66 psl_is_public_suffix2(psl, domain, PSL_TYPE_ICANN); in LLVMFuzzerTestOneInput()
67 psl_is_public_suffix2(psl, domain, PSL_TYPE_NO_STAR_RULE); in LLVMFuzzerTestOneInput()
68 psl_is_public_suffix2(psl, domain, PSL_TYPE_NO_STAR_RULE|PSL_TYPE_ANY); in LLVMFuzzerTestOneInput()
69 psl_unregistrable_domain(psl, domain); in LLVMFuzzerTestOneInput()
70 psl_registrable_domain(psl, domain); in LLVMFuzzerTestOneInput()
72 psl_is_cookie_domain_acceptable(psl, "", NULL); in LLVMFuzzerTestOneInput()
[all …]
Dlibpsl_load_dafsa_fuzzer.c46 psl_ctx_t *psl; in LLVMFuzzerTestOneInput() local
58 psl = psl_load_fp(fp); in LLVMFuzzerTestOneInput()
61 psl_is_public_suffix(psl, ".ü.com"); in LLVMFuzzerTestOneInput()
62 psl_suffix_wildcard_count(psl); in LLVMFuzzerTestOneInput()
63 psl_suffix_exception_count(psl); in LLVMFuzzerTestOneInput()
64 psl_suffix_count(psl); in LLVMFuzzerTestOneInput()
66 psl_free(psl); in LLVMFuzzerTestOneInput()
69 psl = psl_latest(NULL); in LLVMFuzzerTestOneInput()
70 psl_free(psl); in LLVMFuzzerTestOneInput()
Dlibpsl_load_fuzzer.c46 psl_ctx_t *psl; in LLVMFuzzerTestOneInput() local
52 psl = psl_load_fp(fp); in LLVMFuzzerTestOneInput()
54 psl_is_public_suffix(psl, ".ü.com"); in LLVMFuzzerTestOneInput()
56 psl_free(psl); in LLVMFuzzerTestOneInput()
/third_party/libsoup/libsoup/
Dsoup-tld.c68 static psl_ctx_t *psl = NULL; in soup_psl_context() local
70 if (!psl) in soup_psl_context()
71 psl = psl_latest (NULL); in soup_psl_context()
73 return psl; in soup_psl_context()
94 const psl_ctx_t* psl = soup_psl_context (); in soup_tld_domain_is_public_suffix() local
98 if (!psl) { in soup_tld_domain_is_public_suffix()
103 return psl_is_public_suffix2 (psl, domain, PSL_TYPE_ANY | PSL_TYPE_NO_STAR_RULE); in soup_tld_domain_is_public_suffix()
144 const psl_ctx_t* psl = soup_psl_context (); in soup_tld_get_base_domain_internal() local
147 if (!psl) { in soup_tld_get_base_domain_internal()
184 unregistrable_domain = psl_unregistrable_domain (psl, hostname); in soup_tld_get_base_domain_internal()
[all …]
/third_party/libpsl/include/
Dlibpsl.h99 psl_free(psl_ctx_t *psl);
129 psl_is_public_suffix(const psl_ctx_t *psl, const char *domain);
134 psl_is_public_suffix2(const psl_ctx_t *psl, const char *domain, int type);
139 …psl_is_cookie_domain_acceptable(const psl_ctx_t *psl, const char *hostname, const char *cookie_dom…
144 psl_unregistrable_domain(const psl_ctx_t *psl, const char *domain);
149 psl_registrable_domain(const psl_ctx_t *psl, const char *domain);
159 psl_suffix_count(const psl_ctx_t *psl);
164 psl_suffix_exception_count(const psl_ctx_t *psl);
169 psl_suffix_wildcard_count(const psl_ctx_t *psl);
Dlibpsl.h.in99 psl_free(psl_ctx_t *psl);
129 psl_is_public_suffix(const psl_ctx_t *psl, const char *domain);
134 psl_is_public_suffix2(const psl_ctx_t *psl, const char *domain, int type);
139 …psl_is_cookie_domain_acceptable(const psl_ctx_t *psl, const char *hostname, const char *cookie_dom…
144 psl_unregistrable_domain(const psl_ctx_t *psl, const char *domain);
149 psl_registrable_domain(const psl_ctx_t *psl, const char *domain);
159 psl_suffix_count(const psl_ctx_t *psl);
164 psl_suffix_exception_count(const psl_ctx_t *psl);
169 psl_suffix_wildcard_count(const psl_ctx_t *psl);
/third_party/libpsl/msvc/
Dgenerate-msvc.mak8 vs$(VSVER)\$(CFG)\$(PLAT)\psl \
12 …$(PLAT)\libpsl\suffixes_dafsa.h: vs$(VSVER)\$(CFG)\$(PLAT)\libpsl $(PSL_FILE) ..\src\psl-make-dafsa
14 $(PYTHON) ..\src\psl-make-dafsa --output-format=cxx+ "$(PSL_FILE_INPUT)" $@
16 vs$(VSVER)\$(CFG)\$(PLAT)\psl.dafsa: vs$(VSVER)\$(CFG)\$(PLAT)\tests
18 $(PYTHON) ..\src\psl-make-dafsa --output-format=binary "$(PSL_FILE_INPUT)" $@
22 $(PYTHON) ..\src\psl-make-dafsa --output-format=binary --encoding=ascii "$(PSL_FILE_INPUT)" $@
Dbuild-rules-msvc.mak22 {..\tools\}.c{vs$(VSVER)\$(CFG)\$(PLAT)\psl\}.obj::
23 …BASE_CFLAGS) $(PSL_INCLUDES) /Fovs$(VSVER)\$(CFG)\$(PLAT)\psl\ /Fdvs$(VSVER)\$(CFG)\$(PLAT)\psl\ /…
27 # Make sure we generate suffixes_dafsa.h before trying to compile psl.c
28 vs$(VSVER)\$(CFG)\$(PLAT)\libpsl\psl.obj: vs$(VSVER)\$(CFG)\$(PLAT)\libpsl\suffixes_dafsa.h
80 vs$(VSVER)\$(CFG)\$(PLAT)\psl.exe: $(PSL_LIB) vs$(VSVER)\$(CFG)\$(PLAT)\psl $(psl_OBJS)
98 @if exist vs$(VSVER)\$(CFG)\$(PLAT)\psl.dafsa del vs$(VSVER)\$(CFG)\$(PLAT)\psl.dafsa
109 @-del /f /q vs$(VSVER)\$(CFG)\$(PLAT)\psl\*.pdb
110 @-del /f /q vs$(VSVER)\$(CFG)\$(PLAT)\psl\*.obj
Dconfig-msvc.mak.in54 # We build the psl.dll or psl.lib at least, with the psl.exe utility
55 PSL_LIB = vs$(VSVER)\$(CFG)\$(PLAT)\psl.lib
56 PSL_UTILS = vs$(VSVER)\$(CFG)\$(PLAT)\psl.exe
64 vs$(VSVER)\$(CFG)\$(PLAT)\psl.dafsa \
80 PSL_DLL = vs$(VSVER)\$(CFG)\$(PLAT)\$(PSL_DLL_PREFIX)psl$(PSL_DLL_SUFFIX).dll
135 /DPSL_DAFSA=\"$(MAKEDIR:\=/)/vs$(VSVER)/$(CFG)/$(PLAT)/psl.dafsa\" \
Dinstall-msvc.mak8 @copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl.exe $(PREFIX)\bin
9 @copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl-tool.pdb $(PREFIX)\bin
11 @if "$(PSL_LIBTYPE)" == "DLL" copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl.pdb $(PREFIX)\bin
12 @copy /b vs$(VSVER)\$(CFG)\$(PLAT)\psl.lib $(PREFIX)\lib
/third_party/libpsl/
DNEWS10 * Add -b/--batch to 'psl' to suppress printing the domain
65 * Add --use-latest-psl to tools/psl as default
70 * Replace psl2c by psl-make-dafsa
76 * Python3 compatibility for psl-make-dafsa
81 * Install man pages for psl-make-dafsa and psl
85 * Remove unneeded libraries from tools/psl link step
87 * Add man page for tools/psl
89 * Rename make_dafsa.py to psl-make-dafsa
90 * Add man page for psl-make-dafsa
181 * psl utility reads from stdin if no argument specified
[all …]
DREADME.md63 const psl_ctx_t *psl = psl_builtin();
66 is_public = psl_is_public_suffix(psl, domain);
69 is_acceptable = psl_is_cookie_domain_acceptable(psl, domain, cookie_domain);
79 Libpsl comes with a tool 'psl' that gives you access to most of the
82 $ psl --help
92 Generate `psl.dafsa` from `list/public_suffix_list.dat`
94 $ src/psl-make-dafsa --output-format=binary list/public_suffix_list.dat psl.dafsa
98 $ tools/psl --load-psl-file psl.dafsa aeroclub.aero
106 src/psl-make-dafsa and src/lookup_string_in_fixed_set.c are licensed under the term written in
/third_party/node/deps/npm/node_modules/tough-cookie/lib/
Dpubsuffix-psl.js32 var psl = require('psl'); variable
35 return psl.get(domain);

123