Tim Rühsen
82e9445493
Add psl2c --binary to create DAFSA binary file from PSL
2015-12-29 16:53:47 +01:00
Tim Rühsen
5363290cbe
Remove debugging printf
2015-12-26 14:29:10 +01:00
Tim Rühsen
093d5eac3d
Fix ./configure --disable-runtime
...
Added runtime punycode generation code from
http://www.nicemice.net/idn/punycode-spec.gz
2015-12-26 14:15:08 +01:00
Tim Rühsen
e252af877f
Fix ./configure --disable-builtin
2015-12-15 20:46:25 +01:00
Daniel Kahn Gillmor
01a3751524
re-fix psl_builtin_outdated()
2015-12-11 22:59:15 -05: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
36139b601d
Merge branch 'develop' into dafsa
2015-12-07 10:33:44 +01:00
Tim Rühsen
9d2e93f0b8
New function psl_is_public_suffix2()
...
The current PSL has two sections, ICANN and PRIVATE.
This new function allows to limit the check for one or both
of these sections.
2015-12-06 21:55:56 +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
aa0593460c
Remove .travis.yml from branch
2015-12-04 17:15:03 +01:00
Tim Rühsen
b53273d406
Use absolute PSL path to make psl_builtin_outdated() work reliable
2015-11-19 11:18:17 +01:00
Tim Rühsen
dbefdb6767
Remove include of bits/stat.h
2015-11-19 10:06:04 +01:00
Tim Rühsen
643e523f09
Fix psl_builtin_outdated()
2015-09-27 19:14:13 +02:00
Tim Rühsen
53c2fe31a8
Update copyright years
2015-09-23 14:50:01 +02:00
Tim Rühsen
00b9cfb119
Add function psl_check_version_number()
2015-09-23 14:04:17 +02:00
Tim Rühsen
6a8f33ee39
Add new function psl_builtin_outdated()
2015-09-19 14:00:49 +02:00
Tim Rühsen
34289fa59b
Add function psl_suffix_wildcard_count()
2015-09-19 10:55:09 +02:00
Tim Rühsen
e443d21b61
Code cleanup, faster lookups
2015-09-19 10:50:00 +02:00
Tim Rühsen
597709cb11
Support combination of foo.bar and *.foo.bar
2015-09-15 14:49:53 +02:00
Tim Rühsen
f6a3b96f91
Check PSL entries before generating built-in data
2015-09-15 11:46:21 +02:00
Daniel Kahn Gillmor
ac8ba5a828
Documentation cleanup
2015-08-12 10:06:49 +02:00
Tim Rühsen
3f5e208967
src/psl.c: Fix C99 comment to C89
2015-08-06 12:31:21 +02:00
Tim Rühsen
71835fcd44
Add https://github.com/publicsuffix as git submodule
2015-07-14 13:25:42 +02:00
Daniel Kahn Gillmor
f9a1bdcf80
Embed _psl_compile_time derived from $SOURCE_DATE_EPOCH if set
...
Making packages build byte-for-byte reproducibly from a given
toolchain+source makes it much easier to corroborate builds by testing
against other build infrastructure.
By default, libpsl currently embeds the current unix timestamp in
_psl_compile_time, which makes it bytewise incompatible if it is
rebuild even on the same machine one second later.
See https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal for
more information about $SOURCE_DATE_EPOCH.
2015-07-12 22:55:35 +02:00
Tim Rühsen
998b5515d7
Work around a libidn<=1.30 vulnerability
2015-07-06 13:03:50 +02:00
Giuseppe Scrivano
7a07205f1b
psl.c: fix strndup replacement
...
Do not copy more bytes than the src string length.
2015-02-28 18:52:47 +01:00
Giuseppe Scrivano
225c557e23
psl.c: Do not define _GNU_SOURCE
2015-02-28 18:37:14 +01:00
Tim Rühsen
067f6aee9c
Don't use locale dependent isspace()
...
Fixes an issue on Solaris
Reported-by: Dagobert Michelsen <dam@opencsw.org>
2015-01-26 11:05:32 +01:00
Tim Rühsen
896f7f6ae4
Fix ASCII check in src/psl2c.c
2015-01-26 11:04:22 +01:00
Tim Rühsen
58a4f6c028
add iconv Solaris compatibility
2015-01-23 16:13:19 +01:00
Tim Rühsen
910c4b37b6
add strndup() compatibility code
2015-01-23 15:05:02 +01:00
Tim Rühsen
16d751c7d3
mark API as stable
2015-01-21 15:38:18 +01:00
Tim Rühsen
6f899ae32b
fixed gcc warning about comparison being always true
2015-01-21 12:26:44 +01:00
Tim Rühsen
d5254ac816
removed C99 style comments
2015-01-21 12:21:32 +01:00
Tim Rühsen
c8a9d2d6ff
revoke ec63726165
2014-11-14 17:18:41 +01:00
Tim Rühsen
ec63726165
fixed compiler warning in src/psl.c
2014-11-14 15:52:37 +01:00
Tim Rühsen
bbed26b303
check for alloca.h before including
2014-10-28 15:41:35 +01:00
Tim Rühsen
4a33c2f65c
removed qsort_r() which seems unavailable on CygWin
2014-08-22 17:44:48 +02:00
Tim Rühsen
8c6179e798
added support for IP addresses in psl_is_cookie_domain_acceptable()
2014-08-19 17:46:36 +02:00
Tim Rühsen
c5f61d745b
whitespace correction
2014-08-14 11:05:47 +02:00
Jakub Čajka
c599471282
Fixed ascii string detection on architectures with unsigned char
2014-08-01 09:16:44 +02:00
Tim Rühsen
5c5ee3aad7
added code for all of runtime and builtin options
2014-06-30 13:21:16 +02:00
Tim Ruehsen
373bcb912c
more work on support for libidn, libidn2, libicu
2014-06-29 22:56:33 +02:00
Tim Rühsen
74f715bd9c
started with libidn2 integration
2014-06-27 17:13:30 +02:00
Tim Ruehsen
c9fd29a977
small doc format change
2014-06-23 12:56:13 +02:00
Tim Ruehsen
f7f1408088
removed possible C89 compilation issue
2014-06-20 17:04:22 +02:00
Tim Ruehsen
1c20931896
introduced defines for error codes
2014-06-20 12:36:51 +02:00
Tim Ruehsen
9f5d6b1e9d
added idn2 punycode generation as fallback for missing libicu
2014-06-19 13:15:31 +02:00
Tim Ruehsen
1d13ab1d18
removed redundant code from psl2c.c
2014-06-19 12:06:54 +02:00
Tim Ruehsen
a1a5b5e5d7
fixed c89 compatibility
2014-06-18 16:27:29 +02:00