Ondřej Surý
9a3a257374
Always use random data from the crypto provider
2018-05-03 15:03:46 +02:00
Mark Andrews and Ondřej Surý
49f8e9571c
use %u instead of %d for unsigned int arguments
2018-04-20 14:50:35 -07:00
Michał Kępień and Ondř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
102a397e39
libdns refactoring: get rid of multiple versions of dns_keytable_add, dns_iptable_addprefix and dns_iptable_addprefix
2018-04-06 08:04:41 +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
702c022016
libdns refactoring: get rid of multiple versions of dns_xfrin_create, dst_key_generate, dst_lib_init and dst_context_create
2018-04-06 08:04:41 +02:00
Witold Kręcicki
7dbc6768d6
libdns refactoring: get rid of multiple versions of dns_zone_setfile, dns_zone_notifyreceive, dns_zone_dumptostream, dns_zone_getserial
2018-04-06 08:04:41 +02:00
Witold Kręcicki
e2a06db7f3
libdns refactoring: get rid of multiple versions of dns_master_loadfile, dns_master_loadfileinc, dns_master_dump, dns_master_dumpinc, dns_master_dumptostream, dns_master_stylecreate
2018-04-06 08:04:41 +02:00
Witold Kręcicki
e20b702418
libdns refactoring: get rid of multiple versions of dns_dispatch_createtcp and dns_dispatch_addresponse, unify dns_dispatch_gettcp and dns_dispatch_gettcp2
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
Mukund Sivaraman
de3a4af1bf
Check return value of isc_mem_get()
2018-03-19 18:10:41 +05:30
Evan Hunt
86e00cbb71
final cleanup
...
- update Kyuafiles to match Atffiles
- copyrights
- CHANGES note
2018-03-09 14:12:50 -08:00
Evan Hunt
a4ebe83cdb
migrate t_dst signature test to lib/dns/tests/dst_test
2018-03-09 14:12:50 -08:00
Evan Hunt
f58ac8ada3
migrate t_db to lib/dns/tests/db_test
2018-03-09 14:12:49 -08:00
Evan Hunt
8ecf69ef7b
migrate t_names to lib/dns/tests/name_test
2018-03-09 14:12:49 -08:00
Evan Hunt
109546cbda
migrate t_rbt to lib/dns/tests/rbt_test
2018-03-09 14:12:49 -08:00
Evan Hunt
d80825c40b
migrate t_resolver to lib/dns/tests/resolver_test
2018-03-09 14:12:49 -08:00
Evan Hunt
ef0b4c91bc
allow ATF tests to run in parallel
2018-03-09 14:03:02 -08:00
Michał Kępień
2a50fc324b
Add a release note about dropping support for non-dotted-quad IPv4 addresses in master files
...
Support for non-dotted-quad IPv4 addresses in master files was dropped
when the inet_aton() call inside getquad() got replaced with a call to
inet_pton(), so a release note should have been added back then to
inform users that such syntax will no longer work.
2018-03-06 09:49:27 +01:00
Evan Hunt
3c028ed07d
Merge branch 'kyua-oot' into 'master'
...
chg: dev: Unit tests were broken in out-of-tree builds.
See merge request isc-projects/bind9!57
2018-02-23 18:22:59 -05: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
Petr Menšík
95cde3608a
unit/unittest.sh is generated by configure. It will always be
...
generated into builddir. If out-of-tree build is used, make unit
will always fail. Kyuafiles and testdata still have to be copied
manually into the builddir.
2018-02-22 15:32:16 +01:00
Mark Andrews
99d02c6531
Clarify calculation precedence for '&' and '?'
2018-02-16 10:20:39 +11:00
Tinderbox User
47d13972e9
update copyright notice / whitespace
2018-01-24 23:46:02 +00:00
Evan Hunt
52043a7204
[master] change uint to isc_uint
2018-01-24 11:03:05 -08:00
Tinderbox User
38a9d9ba76
update copyright notice / whitespace
2018-01-21 23:45:57 +00:00
Mark Andrews
fdd8838bf9
4869. [bug] Address some cases where NULL with zero length could
...
be passed to memmove which is undefined behaviour and
can lead to bad optimisation. [RT #46888 ]
2018-01-22 09:36:12 +11:00
Tinderbox User
015c017dfa
regen master
2017-12-29 01:04:39 +00:00
Mark Andrews
9f61f6b46b
initalize sigsize to zero; ATF_CHECK_EQ(sigsize, tsig.siglen);
2017-12-22 08:58:20 +11:00
Mark Andrews
cb8650d875
don't attempt to call isc_buffer_free(&buf) twice; don't attempt to call dns_message_destroy(&msg) twice; don't test for key != NULL
2017-12-12 13:20:56 +11:00
Mark Andrews
1dc8208a89
silence %lu vs size_t warning by casting to (unsigned long)
2017-11-24 10:25:37 +11:00
Tinderbox User
3bfc28a0d0
update copyright notice / whitespace
2017-11-13 23:45:33 +00:00
Mark Andrews
04934b28ea
4815. [bug] rbt_test.c:insert_and_delete needed to call
...
dns_rbt_addnode instead of dns_rbt_addname. [RT #46553 ]
2017-11-13 15:26:35 +11:00
Michał Kępień
c6c1193e39
[master] Improve clarity of keytable unit tests
...
4799. [cleanup] Improve clarity of keytable unit tests. [RT #46407 ]
2017-10-28 19:59:40 +02:00
Evan Hunt
c9f8165a06
[master] tag initializing keys
...
4798. [func] Keys specified in "managed-keys" statements
are tagged as "initializing" until they have been
updated by a key refresh query. If initialization
fails it will be visible from "rndc secroots".
[RT #46267 ]
2017-10-27 15:49:44 -07:00
Tinderbox User
08f18efba2
update copyright notice / whitespace
2017-10-26 23:45:58 +00:00
Tinderbox User
8e2a8a3855
update copyright notice / whitespace
2017-10-25 23:47:47 +00:00
Michał Kępień
910a01550a
[master] Rename nsec3param_salt_totext() to dns_nsec3param_salttotext(), make it public, add unit tests
...
4786. [cleanup] Turn nsec3param_salt_totext() into a public function,
dns_nsec3param_salttotext(), and add unit tests for it.
[RT #46289 ]
2017-10-25 09:46:18 +02:00
Evan Hunt
3abcd7cd8a
[master] Revert "[master] tag initializing keys so they can't be used for normal validation"
...
This reverts commit 560d8b833e .
This change created a potential race between key refresh queries and
root zone priming queries which could leave the root name servers in
the bad-server cache.
2017-10-12 10:53:35 -07:00
Evan Hunt
d0c3272eaa
[master] copyrights
2017-10-11 21:11:37 -07:00
Evan Hunt
560d8b833e
[master] tag initializing keys so they can't be used for normal validation
...
4773. [bug] Keys specified in "managed-keys" statements
can now only be used when validating key refresh
queries during initialization of RFC 5011 key
maintenance. If initialization fails, DNSSEC
validation of normal queries will also fail.
Previously, validation of normal queries could
succeed using the initializing key, potentially
masking problems with managed-keys. [RT #46077 ]
2017-10-11 21:01:13 -07:00
Michał Kępień
c0f78692ee
[master] Sync draft-durand-doa-over-dns snippet in lib/dns/tests/rdata_test.c with draft version -03
2017-10-09 10:52:50 +02:00
Michał Kępień
417218837e
[master] Add support for DOA
...
4761. [protocol] Add support for DOA. [RT #45612 ]
2017-10-06 12:22:08 +02:00
Tinderbox User
791aa3e9be
update copyright notice / whitespace
2017-09-28 23:45:49 +00:00
Mark Andrews
f735293431
4743. [func] Exclude trust-anchor-telementry queries from
...
synth-from-dnssec processing. [RT #46123 ]
2017-09-28 16:40:45 +10:00
Mark Andrews
f9f3f20d2d
4739. [cleanup] Address clang static analysis warnings. [RT #45952 ]
2017-09-27 10:27:09 +10:00
Mark Andrews
d17cf1cade
explicitly list test programs
2017-09-21 12:56:33 +10:00
Tinderbox User
cb5bc50c91
update copyright notice / whitespace
2017-09-18 23:48:50 +00:00
Evan Hunt
6e5ae91479
[master] silence compiler warning
2017-09-16 21:01:06 -07:00