Tim Rühsen
523397fb83
psl tool: Fix possible crashes with printf %s, NULL
...
Reported-by: Mike Schiffman
2018-07-04 09:37:25 +02:00
Tim Rühsen
4c68696eb1
Add -b/--batch to suppress printing the domain
2018-05-18 15:37:53 +02:00
Chun-wei Fan
5f85085d76
src/psl.c: Fix build on Visual Studio
...
Visual Studio does not come with unistd.h, so only include it when we
have HAVE_UNISTD_H. It also does not like including locale.h within
main() for some reason, so include that with the other system headers.
2018-04-20 14:46:26 +02:00
Tim Rühsen
337e189979
Add --no-star-rule to psl utility
2018-02-26 11:23:01 +01:00
Tim Rühsen
43ec750b40
Update copyrights
2018-02-22 10:04:00 +01:00
Tim Rühsen
4e51142022
psl_*_count() return -1 if information is not available
2017-09-15 17:14:32 +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
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
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
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
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
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
2a404722f6
added a 'psl' tool to acces functions from command line
2014-04-11 17:16:23 +02:00