Commit Graph

444 Commits

Author SHA1 Message Date
Tim Ruehsen 87f269b6fb skip 'example' unregistered TLD tests, added some special tests 2014-03-27 12:32:35 +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 96574a795c added reference to Gmane mailing list archive 2014-03-26 21:15:25 +01:00
Tim Ruehsen a18777c2e3 new function psl_registered_domain() 2014-03-26 17:14:25 +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
Tim Ruehsen fd6320db9e removed init/deinit function declarations 2014-03-26 09:09:22 +01:00
rockdaboot 912d9a296a Merge pull request #3 from dkg/master
API pruning
2014-03-25 21:39:17 +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 e4950f35d9 added package idn2 in .travis.yml 2014-03-24 17:30: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 eaf4f01b78 added check for idn2 2014-03-24 15:53:33 +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 63fc945fff fill in AUTHORS 2014-03-23 19:33:36 +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 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 a707b267c9 new function psl_load_fp() 2014-03-22 14:28:55 +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
Tim Ruehsen 0bead9b000 added Mailing List info 2014-03-22 08:28:52 +01:00
Tim Ruehsen 59835ed696 added Travis-CI .travis.yml file 2014-03-21 21:25:44 +01:00
rockdaboot 6569b1c948 Merge pull request #1 from dkg/master
minor source and edge case cleanup
2014-03-21 20:21:18 +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 4e674ccbae document indentation conventions for emacs users 2014-03-21 14:39:17 -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 cdeea860f7 git should ignore ephemeral files. 2014-03-21 14:19:25 -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 2327025f3a fix 'make distcheck' 2014-03-21 11:04:01 +01: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
rockdaboot a06ac33343 Initial commit 2014-03-20 08:38:32 -07:00