Commit Graph
41 Commits
Author SHA1 Message Date
Ondřej SurýandWitold Kręcicki 3a4f820d62 Replace all random functions with isc_random, isc_random_buf and isc_random_uniform API.
The three functions has been modeled after the arc4random family of
functions, and they will always return random bytes.

The isc_random family of functions internally use these CSPRNG (if available):

1. getrandom() libc call (might be available on Linux and Solaris)
2. SYS_getrandom syscall (might be available on Linux, detected at runtime)
3. arc4random(), arc4random_buf() and arc4random_uniform() (available on BSDs and Mac OS X)
4. crypto library function:
4a. RAND_bytes in case OpenSSL
4b. pkcs_C_GenerateRandom() in case PKCS#11 library
2018-05-16 09:54:35 +02:00
Ondřej Surý 55a10b7acd Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
Michał KępieńandOndřej Surý 4df4a8e731 Use dns_fixedname_initname() where possible
Replace dns_fixedname_init() calls followed by dns_fixedname_name()
calls with calls to dns_fixedname_initname() where it is possible
without affecting current behavior and/or performance.

This patch was mostly prepared using Coccinelle and the following
semantic patch:

    @@
    expression fixedname, name;
    @@
    -	dns_fixedname_init(&fixedname);
    	...
    -	name = dns_fixedname_name(&fixedname);
    +	name = dns_fixedname_initname(&fixedname);

The resulting set of changes was then manually reviewed to exclude false
positives and apply minor tweaks.

It is likely that more occurrences of this pattern can be refactored in
an identical way.  This commit only takes care of the low-hanging fruit.
2018-04-09 12:14:16 +02:00
Witold Kręcicki 275a6a3bec libdns refactoring: get rid of unnecessary dns_db_dump2 and 3 versions of dns_db_load 2018-04-06 08:04:41 +02:00
Ondřej Surý b097be17ef Remove unused obsolete isc_hash_* function, and just keep the FNV-1a version 2018-04-04 23:12:14 +02:00
Ondřej Surý 843d389661 Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
Mark Andrews 0c27b3fe77 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
Tinderbox User 80d13a0d45 update copyright notice 2014-08-20 23:45:19 +00:00
Mark Andrews 58f1ac8dad 3916. [contrib] zone2sqlite checked wrong result code. Address
compiler warnings. [RT #36931]
2014-08-20 23:14:03 +10:00
Automatic Updater 0e11ca0f0b update copyright notice 2011-10-11 23:46:45 +00:00
Evan Hunt 793814f807 3164. [func] Enable DLZ modules to retrieve client information,
so that responses can be changed depending on the
			source address of the query. [RT #25768]
2011-10-11 00:09:03 +00:00
Automatic Updater d7201de09b update copyright notice 2009-09-02 23:48:03 +00:00
Tatuya JINMEI 神明達哉 307d208450 2660. [func] Add a new set of DNS libraries for non-BIND9
applications.  See README.libdns. [RT #19369]
2009-09-01 00:22:28 +00:00
Mark Andrews 47d9a2bec1 2500. [contrib] contrib/sdb/pgsql/zonetodb.c called non-existant
function. [RT #18582]
2008-11-27 06:14:22 +00:00
Automatic Updater 3398334b3a update copyright notice 2008-09-25 04:02:39 +00:00
Mark Andrews 6098d364b6 2448. [func] Add NSEC3 support. [RT #15452] 2008-09-24 02:46:23 +00:00
Automatic Updater 70e5a7403f update copyright notice 2007-06-19 23:47:24 +00:00
Automatic Updater ec5347e2c7 update copyright notice 2007-06-18 23:47:57 +00:00
Mark Andrews 92f56936fb update copyright notice 2007-01-09 03:11:16 +00:00
Mark Andrews 7acb804e7f update copyright notice 2007-01-09 02:44:24 +00:00
Mark Andrews 675d696977 update copyright notice 2005-09-06 03:51:37 +00:00
Mark Andrews c834db9f95 create/destroy entropy and hash 2005-08-16 04:22:37 +00:00
Mark Andrews dafcb997e3 update copyright notice 2004-03-05 05:14:21 +00:00
Mark Andrews c6b78d91a1 silence compiler 2002-03-19 15:57:23 +00:00
Mark Andrews b597abd9cc 1234. [bug] contrib/sdb: 'zonetodb' failed to call
dns_result_register().  DNS_R_SEENINCLUDE should not
                        be fatal.
2002-03-19 03:32:08 +00:00
Brian Wellington 80b3f47796 Empty database nodes caused the program to fail. 2001-03-17 01:53:01 +00:00
Brian Wellington 1ff970120a Add support for reconnection and allow user, passwd, and host to be specified. 2001-02-28 23:42:37 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Mark Andrews 88a6fef494 init dns_rdata_t's 2000-12-11 23:09:47 +00:00
Brian Wellington 5f3e104347 the drivers should include their own header files 2000-12-06 00:59:08 +00:00
Brian Wellington db237e5475 note that the \ is special for PostgreSQL, not standard SQL. 2000-11-22 21:18:12 +00:00
Brian Wellington 8d69143c07 use ' to quote ', not \ 2000-11-20 19:56:12 +00:00
Brian Wellington 94b6d69d94 If dns_sdb_register() fails, don't call dns_sdb_unregister(). 2000-11-20 19:50:02 +00:00
Brian Wellington 8befe9e546 canonicalize -> quotestring 2000-11-20 19:34:13 +00:00
Andreas Gustafsson 2e9fc52267 comment formatting; spacing 2000-11-20 18:25:14 +00:00
Mark Andrews 25a66b4e41 #include <isc/print.h> 2000-11-20 13:02:18 +00:00
Brian Wellington c0003bfcaf Added header files; fixed copyrights. 2000-11-18 01:29:14 +00:00
Brian Wellington 5aee7a4da4 store and retrieve TTLs 2000-11-17 23:57:33 +00:00
Brian Wellington dfd5809a58 properly quote \ and ' before reading from or writing to the database. 2000-11-17 23:12:11 +00:00
Brian Wellington e6f82b9dbb copyrights 2000-11-17 22:01:45 +00:00
Brian Wellington 18cd5a8e59 The "pgsql" simple database driver and the associated table generator 2000-11-17 21:54:02 +00:00