Mukund Sivaraman
303391ea41
Add system test
2018-05-16 08:15:36 +02:00
Ondřej Surý
23c1f7e506
Enforce usage of OpenSSL or PKCS#11 library in platform.h header
2018-05-13 19:18:56 -07: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ý
3f66b8acb0
Update tests to not use '>&-' that closes file descriptor, but instead use correct redirection to '>/dev/null'
2018-05-11 12:44:27 +02:00
Mark Andrews
92e540df1e
Silence clang static analyzer warnings; Consolidate multiple instances of splitting of batchline in dig into a single function.
2018-05-11 10:54:21 +10:00
Ondřej Surý
9845c4c4a7
Address GCC 8 -Wstringop-truncation warning
2018-05-10 10:35:01 +02:00
Michał Kępień
172d0c401e
Address GCC 8 -Wformat-truncation warnings
2018-05-10 10:35:01 +02:00
Mark Andrews
5613c3441f
if _headers is NULL don't process If-Modified-Since
2018-05-03 11:08:59 -04:00
Mark Andrews
8801c65a4b
insist option != NULL and initalise last to NULL
2018-05-03 11:08:59 -04:00
Mark Andrews
e713f83064
add dnssec prerequisite test to rootkeysentinel
2018-05-03 10:27:50 -04:00
Ondřej Surý
61da2bf028
Remove support for OpenSSL < 1.0.0
2018-05-03 15:55:39 +02:00
Ondřej Surý
9a3a257374
Always use random data from the crypto provider
2018-05-03 15:03:46 +02:00
Paul Hoffman
2d957c6b9f
add -t type### description to the dig man page
2018-04-27 02:16:51 -04:00
Evan Hunt
30b988f09a
Fix a testing error when using python3 on certain dates
...
Date conversion was broken in python3 for dates with
leading zeroes in both month and day.
2018-04-26 23:02:40 -07:00
Michał Kępień
6acf326969
Apply raw zone deltas to yet unsigned secure zones
...
When inline signing is enabled for a zone without creating signing keys
for it, changes subsequently applied to the raw zone will not be
reflected in the secure zone due to the dns_update_signaturesinc() call
inside receive_secure_serial() failing. Given that an inline zone will
be served (without any signatures) even with no associated signing keys
being present, keep applying raw zone deltas to the secure zone until
keys become available in an attempt to follow the principle of least
astonishment.
2018-04-25 12:00:31 -07:00
Evan Hunt
0cc7aa250e
change "key" to "tsigkey" to silence "short global name" warning
2018-04-20 19:51:00 -04:00
Evan Hunt
9ca3ab1168
fix shadowed global variables
2018-04-20 19:51:00 -04:00
Mark Andrews
686edad5c5
remove dead code
2018-04-20 14:50:35 -07:00
Mukund Sivaraman
89cf503880
Remove bogus comparison
2018-04-20 14:43:06 -07:00
Mark Andrews
58c103e09c
dig: add the ability to set RA and TC in queries
2018-04-20 14:17:58 -07:00
Evan Hunt
c592655c0f
new option "dnskey-sig-validity"
...
- overrides "sig-validity-interval" for DNSKEY, CDNSKEY and CDS RRSIGs
2018-04-20 12:12:08 -07:00
Mark Andrews
a23b305e6b
add system test for root-key-sentinel
2018-04-18 08:49:55 -07:00
Mark Andrews
68e9315c7d
add named.conf option root-key-sentinel
2018-04-18 08:49:55 -07:00
Evan Hunt
46fd0b62f8
fixed a missing variable declaration needed by strtok_r on non-threaded builds
2018-04-13 11:55:30 -07:00
Tony Finch
286a7b6b9a
Allow TTL values when configuring TTLs and time intervals.
...
Options updated to use ttlvals: max-cache-ttl, max-ncache-ttl,
max-policy-ttl, fstrm-set-reopen-interval, interface-interval, and
min-update-interval.
2018-04-13 11:46:06 -07:00
Tony Finch
13d1861034
Appease -Werror=maybe-uninitialized before calling strtok_r()
2018-04-12 19:19:24 +01: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ý
96a07ba867
Remove usage of strcasestr, so we don't have to have replacement function on Windows
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
Ondřej Surý
921d05ddcf
Replace usage of strsep with POSIX strtok_r()
2018-04-12 10:37:33 +02:00
Ondřej Surý
9fda5253fd
Remove isc_string_printf and isc_string_printf_truncate.
...
Replace with simple snprintf() as appropriate.
2018-04-12 10:37:33 +02:00
Evan Hunt
93ee6b8a22
Alter distclean rule to prevent recursing into the same directory twice
...
Commit f87e0c03ee removed the "system" directory from the TESTDIRS
variable in bin/tests/Makefile.in in an attempt to fix "make distclean"
which was broken since commit 0d784de16a . However, this change
prevented any system tests from being run when "make test" is invoked.
We now put it back into both SUBDIRS and TESTDIRS, but with a modified
rule to check for the existence of a Makefile in each subdirectory before
trying to run make there. This prevents "make distclean" from trying to
run again in a directory where it's already been run.
2018-04-10 19:56:45 -07:00
Mathieu Arnold
ebf7641610
Rename the last occurence of dns_dt_create2.
2018-04-09 16:46:07 +02:00
Michał Kępień
39ddf9991f
Do not access dns_fixedname_t fields directly
...
Employ dns_fixedname_name() and dns_fixedname_initname() to no longer
directly access dns_fixedname_t fields.
2018-04-09 12:14:16 +02:00
Michał Kępień
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
d54d482af0
libdns refactoring: get rid of multiple versions of dns_view_find, dns_view_findzonecut and dns_view_flushcache
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
ef0e68bfc3
libdns refactoring: integrate zone->options and zone->options2 into one enum, removing unnecessary flags.
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
42ee8c853a
libdns refactoring: get rid of 3 versions of dns_resolver_createfetch
2018-04-06 08:04:41 +02:00
Witold Kręcicki
25cd3168a7
libdns refactoring: get rid of multiple versions of dns_dnssec_findmatchingkeys and dns_dnssec_findzonekeys
2018-04-06 08:04:41 +02:00
Witold Kręcicki
8c12e488f7
libdns refactoring: get rid of multiple versions of dns_request_createraw and dns_request_createvia
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
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
Witold Kręcicki
76e17b54ea
libdns refactoring: get rid of two versions of dns_client_createx
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d39b3209fb
libdns refactoring: get rid of 3 versions of dns_cache_create
2018-04-06 08:04:41 +02:00
Witold Kręcicki
d76ed0da1c
libdns refactoring: get rid of two versions of dns_byaddr_createptrname
2018-04-06 08:04:41 +02:00
Witold Kręcicki
f0a07b7546
libdns refactoring: get rid of two versions of dns_adb_createfind and dns_adb_probesize
2018-04-06 08:04:41 +02:00