Tim Rühsen
a48169e6da
psl_*_count() return -1 if information is not available
2018-04-27 15:51:43 +02:00
Darshit Shah
4d5982ed98
Add new function psl_free_string()
...
When writing a wrapper around LibPSL in a different language it is
important that libpsl provide functions to free any memory that it
allocates. Without this, it is impossible to correctly free the memory
allocated by psl_str_to_utf8lower() function since in other languages
one may not have access to the same free() call from libc.
2017-08-30 11:07:04 +02:00
Tim Rühsen
d4ea513f27
Add --use-latest-psl to tools/psl, now default
...
Fixes #76
2016-12-15 12:51:35 +01:00
Tim Rühsen
ff29f13d8f
Add functions psl_latest() and psl_dist_filename()
...
Also add a new ./configure function to set a distribution wide
PSL file used by psl_latest(): --with-psl-distfile
If possible that filename should point to a DAFSA PSL file that
becomes updated regularly.
2016-12-06 20:16:12 +01:00
Tim Rühsen
6490b8214b
Don't taint out variable on error in psl_str_to_utf8lower()
...
Fixes #71
2016-12-05 16:28:47 +01:00
Tim Rühsen
b9e04d6958
Update copyright year
2016-12-05 15:03:27 +01:00
Tim Rühsen
126d2dca9c
Package and install psl.1 and psl-make-dafsa.1
...
Fixes #53
Reported-by: https://github.com/yselkowitz
2016-09-17 14:46:00 +02:00
Tim Rühsen
10fe88b22b
Amend formatting of psl man page
2016-07-06 15:32:51 +02:00
Daniel Kahn Gillmor
a7c2c16585
add a man page
2016-07-06 15:32:51 +02:00
Daniel Kahn Gillmor
dc9cc02982
s/publix/public/
2016-07-06 15:32:51 +02:00
Tim Rühsen
95a5152e56
Update copyright year to 2016
2016-01-02 13:36:49 +01:00
Tim Rühsen
cde5e53ea6
Remove psl_builtin_compile_time() for reproducable builds
2016-01-01 15:44:24 +01:00
Tim Rühsen
0ca3741df6
Use DAWG/DAFSA format for builtin data
...
This data representation reduces the size of the PSL data
drastically and still allows fast lookups.
2015-12-09 09:35:04 +01:00
Tim Rühsen
883e67f008
Create src/suffixes_dafsa.c with DAFSA C array
2015-12-04 21:26:30 +01:00
Tim Rühsen
375aef05ae
Add tools/make_dafsa.py
2015-12-04 17:15:55 +01:00
Tim Rühsen
ac40a6bfc8
Extend tools/psl --print-info and --version
2015-09-27 19:14:58 +02:00
Tim Rühsen
53c2fe31a8
Update copyright years
2015-09-23 14:50:01 +02:00
Tim Rühsen
34289fa59b
Add function psl_suffix_wildcard_count()
2015-09-19 10:55:09 +02:00
Tim Rühsen
5c5ee3aad7
added code for all of runtime and builtin options
2014-06-30 13:21:16 +02:00
Tim Rühsen
bb12832c30
added all combinations of runtime and builtin options
2014-06-30 10:35:33 +02:00
Tim Ruehsen
373bcb912c
more work on support for libidn, libidn2, libicu
2014-06-29 22:56:33 +02:00
Tim Ruehsen
1c20931896
introduced defines for error codes
2014-06-20 12:36:51 +02:00
Tim Ruehsen
a1a5b5e5d7
fixed c89 compatibility
2014-06-18 16:27:29 +02:00
Tim Ruehsen
3cb3704176
fixed compile issue with older libicu versions
2014-06-18 14:51:33 +02:00
Tim Ruehsen
a0a9e76261
fixed locale/charset support
2014-06-18 12:28:22 +02:00
Tim Ruehsen
7cc3eed46b
read from stdin if no domain argument
2014-06-15 22:32:18 +02:00
Daniel Kahn Gillmor
f077346f86
clean up psl --help output
2014-06-06 10:04:25 -04:00
Tim Ruehsen
884d98b61c
fix distcheck
2014-06-06 12:10:39 +02:00
Daniel Kahn Gillmor
5db3946800
bin/psl should be dynamically-linked
2014-06-06 01:23:48 -04:00
Daniel Kahn Gillmor
1addfb07a0
abort with failure if no domain is passed to psl in a mode where it tries to work with domains
2014-06-06 01:14:40 -04:00
Daniel Kahn Gillmor
9b9c3a35c1
clean up help output
2014-06-06 01:10:21 -04:00
Tim Ruehsen
8d9e899039
added --version to psl utility
2014-06-01 12:01:47 +02:00
Daniel Kahn Gillmor
cadb963475
remove LIBPSL_API_VERSION for simplicity
2014-05-31 18:56:07 +02:00
Tim Ruehsen
0eeec32ee3
fix return value of psl_builtin() to NULL if no builtin PSL data available
2014-05-30 16:08:47 +02:00
Tim Ruehsen
1efb6b75f4
changed code to C89 standard
2014-05-12 12:20:59 +02:00
Tim Ruehsen
f85acef96e
added --help to tools/psl.c
2014-04-24 12:39:31 +02:00
Tim Ruehsen
ee0064532c
added psl_builtin_filename()
2014-04-17 12:31:06 +02:00
Tim Ruehsen
5e6bad036b
added --is-cookie-domain-acceptable to tools/psl.c
2014-04-16 10:56:42 +02:00
Tim Ruehsen
41171a949b
added --print-info, --use-builtin-data, --load-psl-file to tools/psl.c
2014-04-13 21:49:03 +02:00
Tim Ruehsen
3fd48b9328
renamed --is-public to --is-public-suffix
2014-04-12 16:12:29 +02:00
Tim Ruehsen
b49e681d8f
renamed psl_is_public() to psl_is_public_suffix()
2014-04-12 16:04:42 +02:00
Tim Ruehsen
4a278766e1
removed accidentially added blobs
2014-04-11 18:50:01 +02:00
Tim Ruehsen
2a404722f6
added a 'psl' tool to acces functions from command line
2014-04-11 17:16:23 +02:00