Tim Ruehsen
79cd551b17
fixed libicu implementation, use pkg-config for libicu detection
2014-06-05 11:39:28 +02:00
Tim Ruehsen
58daea97ce
added IDNA2008 UTS#46 via libicu
2014-06-04 13:20:34 +02:00
Tim Ruehsen
ecdadf76e5
added psl_get_version(), bumped version to 0.2.5
2014-05-31 19:33:30 +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
7d3e2eebb2
use alloca instead of malloc for command buffer allocation
2014-05-12 12:27:32 +02:00
Tim Ruehsen
1efb6b75f4
changed code to C89 standard
2014-05-12 12:20:59 +02:00
Tim Ruehsen
608d9d951f
added punycode considerations to the API docs
2014-04-22 16:49:00 +02:00
Tim Ruehsen
ed9562848c
small --disable-builtin cleanups
2014-04-17 13:09:29 +02:00
Tim Ruehsen
ee0064532c
added psl_builtin_filename()
2014-04-17 12:31:06 +02:00
Tim Ruehsen
c18f6fdc6f
fixed docs
2014-04-16 11:36:37 +02:00
Tim Ruehsen
2c7c11d8a6
added psl_is_cookie_domain_acceptable()
2014-04-16 10:52:35 +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
0dad83966d
added the missing function documentation
2014-04-11 16:30:20 +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
9d18b46ed9
moved gettext defines away from header file
2014-04-02 10:26:40 +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
2cc4be71c4
removed incomplete and unneeded initialization of _builtin_psl
2014-03-30 12:06:16 +02:00
Tim Ruehsen
3d3884fc6f
fixed errors introduced in last change
2014-03-29 18:58:24 +01:00
Tim Ruehsen
834f280100
removed fprintf from library code
2014-03-29 18:54:04 +01:00
Tim Ruehsen
9d2fde5fce
check input params in exported functions
2014-03-29 18:54:04 +01:00
Tim Ruehsen
acb06542c9
finished comment
2014-03-29 18:54:04 +01:00
Tim Ruehsen
535751b6cc
prevailing rule is *
2014-03-28 22:02:42 +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
e7599d2ca0
fixed punycode sorting
2014-03-27 10:02:58 +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
a18777c2e3
new function psl_registered_domain()
2014-03-26 17:14:25 +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
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
3b94a03638
use idn2 instead of libidn2 to avoid the need for GPL3+ license
2014-03-24 15:54:43 +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
3b33ff2575
added libidn2 to .travis.yml
2014-03-22 23:05:55 +01:00
Tim Ruehsen
4a54c3cf2a
removed punycode debug output
2014-03-22 22:57:10 +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
3998137fd0
added PSL inline library
2014-03-22 20:35:56 +01:00
Tim Ruehsen
a707b267c9
new function psl_load_fp()
2014-03-22 14:28:55 +01:00
Tim Ruehsen
577fd14bb4
renamed psl_is_tld() to psl_is_public()
2014-03-22 10:26:59 +01:00
Daniel Kahn Gillmor
c07ea9d0a0
return NULL from psl_load_file() if the file could not be read.
2014-03-21 14:43:27 -04: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
Daniel Kahn Gillmor
e3c28f8a86
fgets into buf directly, rather than the stack
2014-03-21 14:18:36 -04:00
Tim Ruehsen
cf46f5d84b
replaced getline() by fgets() for compatibility reasons
2014-03-21 15:41:27 +01:00
Tim Ruehsen
f22a3fcb71
do not redefine _GNU_SOURCE
2014-03-21 11:05:09 +01:00
Tim Ruehsen
dc05276515
autoconf first version
2014-03-20 22:43:04 +01:00