Tim Rühsen
71835fcd44
Add https://github.com/publicsuffix as git submodule
2015-07-14 13:25:42 +02: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
bbed26b303
check for alloca.h before including
2014-10-28 15:41:35 +01: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 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
1c20931896
introduced defines for error codes
2014-06-20 12:36:51 +02:00
Tim Ruehsen
58bdb22546
revoked UTF-8 IDNA comments
2014-06-18 15:36:26 +02:00
Tim Ruehsen
28adbe1f1b
removed IDNA case test if libicu is not configured
2014-06-18 15:20:48 +02:00
Tim Ruehsen
9aea73fb64
respect test data being always UTF-8
2014-06-18 12:41:23 +02:00
Tim Ruehsen
29d1300c86
free allocated variable
2014-06-18 12:25:06 +02:00
Tim Ruehsen
57394eb1f8
added psl_str_to_utf8lower()
2014-06-17 17:14:02 +02:00
Tim Ruehsen
657a1d4b88
use libicu for UTF-8 lowercase conversion
2014-06-16 21:59:23 +02:00
Daniel Kahn Gillmor
cadb963475
remove LIBPSL_API_VERSION for simplicity
2014-05-31 18:56:07 +02:00
Tim Ruehsen
61753f43ab
added special test cases '.', empty string, NULL, unknown TLD
2014-05-12 14:15:40 +02:00
Tim Ruehsen
1efb6b75f4
changed code to C89 standard
2014-05-12 12:20:59 +02:00
Tim Ruehsen
ed9562848c
small --disable-builtin cleanups
2014-04-17 13:09:29 +02:00
Tim Ruehsen
d04e6f5c09
new test test-is-cookie-domain-acceptable.c
2014-04-16 10:55:57 +02:00
Tim Ruehsen
5fa3b170bd
added checks in test-registrable-domain.c
2014-04-16 10:53:59 +02:00
Tim Ruehsen
b8f7a79947
added checks for special .name domain
2014-04-15 15:02:50 +02:00
Tim Ruehsen
c481e8019d
added ./configure --with-psl-testfile to set PSL test file path
2014-04-13 16:43:03 +02:00
Tim Ruehsen
c93268ce25
added ./configure --with-psl-file to set PSL file path
2014-04-13 16:35:28 +02:00
Tim Ruehsen
b49e681d8f
renamed psl_is_public() to psl_is_public_suffix()
2014-04-12 16:04:42 +02:00
Tim Ruehsen
c37830f6fc
reverted meaning of psl_is_public (again), started function docs
2014-04-06 22:30:50 +02:00
Tim Ruehsen
65a1f03939
small code fixes
2014-03-30 21:52:00 +02:00
Tim Ruehsen
31319a3dc7
added ./configure --disable-builtin to build without PSL data
2014-03-30 17:02:56 +02:00
Tim Ruehsen
535751b6cc
prevailing rule is *
2014-03-28 22:02:42 +01:00
Tim Ruehsen
619959db7a
added utf-8 to lowercase code using sed
2014-03-27 21:29:17 +01:00
Daniel Kahn Gillmor
fb9ccbf88e
change psl_free() to take a psl_ctx_t *psl
...
This uses the more common convention where the variable freed is the
thing returned from the constructor directly, rather than having the
deallocator also zero out the pointer itself.
2014-03-27 20:01:29 +01:00
Tim Ruehsen
87f269b6fb
skip 'example' unregistered TLD tests, added some special tests
2014-03-27 12:32:35 +01:00
Tim Ruehsen
fd0ff2023b
added psl_registrable_domain(), renamed psl_registered_domain -> psl_unregistrable_domain
2014-03-26 22:27:31 +01:00
Tim Ruehsen
8791ad0b9a
removed unused variable 'it'
2014-03-26 09:12:41 +01:00
Tim Ruehsen
1d079fceeb
fixed indentation
2014-03-26 09:11:54 +01:00
Daniel Kahn Gillmor
73acfc570b
avoid the need for psl_global_init() and psl_global_deinit()
...
There is no need to for an initialization function if the builtin
structs if the comparison function will look at label_buf directly
when label == NULL.
This simplifies the API for users, who now don't have to worry about
library initialization and deinitialization functions (these sort of
functions can cause headaches in chained library loads, esp. in plugin
architectures like PAM).
2014-03-24 18:33:27 -04:00
Daniel Kahn Gillmor
6e7e58aa38
builtin should be returned const
...
callers should never try to do any non-const operation with the
builtin public suffix list.
2014-03-24 18:18:45 -04:00
Tim Ruehsen
8f7c266b26
test all entries of effective_tld_names.dat plus some variations
2014-03-24 21:18:48 +01:00
Tim Ruehsen
2ec5dc7567
small cleanups in Makefile.am
2014-03-24 20:54:34 +01:00
Tim Ruehsen
8b096a5eda
LGPL->MIT license, some cleanups
2014-03-24 20:41:46 +01:00
Tim Ruehsen
9d1c62eb07
merged libpsl and libpsl-inline
2014-03-24 17:29:56 +01:00
Tim Ruehsen
e379ba90cf
replaced md5 by sha1 checksumming
2014-03-24 09:48:01 +01:00
Tim Ruehsen
0771255742
added info functions
2014-03-23 21:49:19 +01:00
Tim Ruehsen
a906062b85
added IDNA2008 punycode support for psl_inline_is_public()
2014-03-22 22:55:34 +01:00
Tim Ruehsen
99d057d514
revert logic for psl_is_public()
2014-03-22 22:19:20 +01:00
Tim Ruehsen
1c90fac381
added test with utf-8 domain
2014-03-22 21:36:02 +01:00
Tim Ruehsen
3998137fd0
added PSL inline library
2014-03-22 20:35:56 +01:00
Tim Ruehsen
de7d394223
whitespace glitch
2014-03-22 14:28:19 +01:00
Tim Ruehsen
577fd14bb4
renamed psl_is_tld() to psl_is_public()
2014-03-22 10:26:59 +01:00
Daniel Kahn Gillmor
2d99b964ff
avoid a printf in the library
...
In general, we don't want libraries to send data to the standard file
descriptors. There are more that need fixing.
Note: this introduces a new API (psl_suffix_count() and
psl_suffix_exception_count) to enable the same sort of output from the
test. But this new API seems to imply the internal structure of the
public suffix list.
Do we want to expose this API? There could be some other PSL
mechanism (e.g. DBOUND) that doesn't have these counts, and a drop-in
replacement would not know what to return here.
2014-03-21 14:38:30 -04:00
Tim Ruehsen
dc05276515
autoconf first version
2014-03-20 22:43:04 +01:00
Tim Ruehsen
6563469fc1
inital commit
2014-03-20 17:17:24 +01:00