Commit Graph
80 Commits
Author SHA1 Message Date
Ondřej Surý 994e656977 Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
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
Ondřej Surý 5311a3b7b5 We use too old Visual Compiler to use scoped variables 2018-04-12 10:37:33 +02:00
Ondřej Surý 11f26b42e3 Replace all usage of non-reentrant strtok() with strtok_r() 2018-04-12 10:37:33 +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 c8aa1ee9e6 libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext 2018-04-06 08:04:41 +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 e3d74bdd7f copyright 2016-07-21 19:38:52 +10:00
Mark Andrews 0c27b3fe77 4401. [misc] Change LICENSE to MPL 2.0. 2016-06-27 14:56:38 +10:00
Mark Andrews d7ab0204e2 4378. [contrib] #include <isc/string.h> for strlcat in zone2ldap.c.
[RT #42525]
2016-05-27 11:19:55 +10:00
Mark Andrews ffdd3bc812 4231. [contrib] Address unchecked memory allocation calls in
query-loc and zone2ldap. [RT #40789]
2015-09-30 15:46:55 +10:00
Evan Hunt 1c182f1516 [master] fix SDB bug
3970.   [contrib]       Fixed a use after free bug in the SDB LDAP driver.
                        [RT #37237]
2014-10-02 23:24:07 -07: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
Evan Hunt 96a1161785 [master] quote table names
3563.	[contrib]	zone2sqlite failed with some table names. [RT #33375]
2013-05-02 07:38:49 -07:00
Tinderbox User a3128c1995 update copyright notice 2012-06-29 23:45:57 +00:00
Mark Andrews bf8267aa45 reverse bad copyright update 2012-06-29 11:39:47 +10:00
Tinderbox User 247bf37860 update copyright notice 2012-06-29 01:22:18 +00:00
Mark Andrews 411d2914ad 3226. [bug] Address minor resource leakages. [RT #26624] 2011-11-30 00:48:51 +00: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
Mark Andrews f94ec08c17 2942. [contrib] zone2sqlite failed to setup the entropy sources.
[RT #21610]
2010-08-16 05:32:44 +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 4259095c80 2155. [contrib] SQLite sdb module from jaboydjr@netwalk.com.
[RT #16694]
2007-03-05 05:30:22 +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 e6bddc301c create and destroy entropy and hash 2005-08-11 23:32:32 +00:00
Mark Andrews 9cc53f2a08 1707. [contrib] sdb/ldap updated to version 1.0-beta. 2004-08-27 00:07:23 +00:00
Mark Andrews dafcb997e3 update copyright notice 2004-03-05 05:14:21 +00:00
Mark Andrews e9f2290397 silence compiler warning 2003-03-31 07:23:47 +00:00
Mark Andrews 0ae34c3f62 1353. [contrib] sdb/ldap to version 0.9. 2002-08-05 04:23:13 +00:00
Mark Andrews 88aa68f478 1292. [contrib] Berkeley DB 4.0 sdb implementation from
Nuno Miguel Rodrigues <nmr@co.sapo.pt>.
2002-05-16 04:25:22 +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
Andreas Gustafsson f8aa552edb Split contrib/sdb into a subdirectory per driver 2001-11-15 23:15:34 +00:00
David Lawrence 99c9a71675 update from author 2001-06-10 22:36:38 +00:00
Brian Wellington a6f360bb94 update from the author 2001-06-08 18:40:35 +00:00
Brian Wellington adf16bbdb6 update to newer version 2001-05-30 22:02:09 +00:00
Brian Wellington 80b3f47796 Empty database nodes caused the program to fail. 2001-03-17 01:53:01 +00:00