]>
git.ipfire.org Git - thirdparty/bind9.git/log
Evan Hunt [Mon, 26 Feb 2018 17:54:12 +0000 (09:54 -0800)]
Remove local implementations of hash functions
Evan Hunt [Mon, 26 Feb 2018 07:19:18 +0000 (23:19 -0800)]
Enforce crypto selection in configure
Ondřej Surý [Tue, 24 Apr 2018 19:11:48 +0000 (21:11 +0200)]
Remove -p option usage from rpz test
Ondřej Surý [Tue, 24 Apr 2018 18:58:58 +0000 (20:58 +0200)]
Update tests to not use '>&-' that closes file descriptor, but instead use correct redirection to '>/dev/null'
Ondřej Surý [Tue, 24 Apr 2018 14:01:23 +0000 (16:01 +0200)]
Remove genrandom command and all usage of specific random files throughout the system test suite
Ondřej Surý [Tue, 20 Mar 2018 17:20:50 +0000 (17:20 +0000)]
Refactor and cleanup duplicate code in the isc_hmac functions
Ondřej Surý [Sun, 22 Apr 2018 12:56:28 +0000 (14:56 +0200)]
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
Evan Hunt [Sat, 21 Apr 2018 00:18:28 +0000 (20:18 -0400)]
Merge branch '171-lgtm-issues' into 'master'
Resolve "problems detected by LGTM static analyzer"
Closes #171
See merge request isc-projects/bind9!213
Evan Hunt [Tue, 20 Mar 2018 09:27:39 +0000 (09:27 +0000)]
remove unnecessary comparison
Evan Hunt [Tue, 20 Mar 2018 09:22:57 +0000 (09:22 +0000)]
silence warnings about unnecessary comparisons
- these are cases where result has been explicitly set, so
if (result != ISC_R_SUCCESS) is unnecessary
Evan Hunt [Tue, 20 Mar 2018 09:16:29 +0000 (09:16 +0000)]
add header guards in files that were missing them
Evan Hunt [Tue, 20 Mar 2018 09:12:37 +0000 (09:12 +0000)]
add header guard when generating bind.keys.h
Evan Hunt [Mon, 19 Mar 2018 22:16:10 +0000 (22:16 +0000)]
change "key" to "tsigkey" to silence "short global name" warning
Evan Hunt [Mon, 19 Mar 2018 17:31:53 +0000 (17:31 +0000)]
fix shadowed global variables
Evan Hunt [Mon, 19 Mar 2018 17:23:23 +0000 (17:23 +0000)]
fix duplicate include guard in dnsconf.h
- IMHO we should consider removing dnsconf.c and deprecating the
/etc/dns.conf file, though, as I don't think it's likely anyone
is using it
Evan Hunt [Fri, 20 Apr 2018 23:47:55 +0000 (19:47 -0400)]
Merge branch 'fix-win32-def' into 'master'
add missing symbols
See merge request isc-projects/bind9!218
Evan Hunt [Fri, 20 Apr 2018 23:40:17 +0000 (16:40 -0700)]
add missing symbols
Evan Hunt [Fri, 20 Apr 2018 23:34:44 +0000 (19:34 -0400)]
Merge branch '217-remove-rbtdb64' into 'master'
Resolve "remove rbtdb64"
Closes #217
See merge request isc-projects/bind9!209
Evan Hunt [Wed, 18 Apr 2018 22:54:17 +0000 (15:54 -0700)]
remove the rbtdb64 database implementation
Ondřej Surý [Fri, 20 Apr 2018 22:12:39 +0000 (18:12 -0400)]
Merge branch '202-cppcheck-reporting-miscellaneous-issues' into 'master'
Resolve "cppcheck reporting miscellaneous issues"
Closes #202
See merge request isc-projects/bind9!202
Mark Andrews [Wed, 18 Apr 2018 04:18:08 +0000 (14:18 +1000)]
remove exit calls after FATAL_ERROR
Mark Andrews [Wed, 18 Apr 2018 04:18:05 +0000 (14:18 +1000)]
remove dead code
Mark Andrews [Wed, 18 Apr 2018 04:00:17 +0000 (14:00 +1000)]
use %u instead of %d for unsigned int arguments
Ondřej Surý [Fri, 20 Apr 2018 21:50:27 +0000 (17:50 -0400)]
Merge branch '206-nslookup-accepts-any-bogus-option-interpret-it-as-vc' into 'master'
Resolve "nslookup accepts any -bogus -option, interpret it as -vc"
Closes #206
See merge request isc-projects/bind9!205
Mukund Sivaraman [Wed, 18 Apr 2018 16:44:20 +0000 (09:44 -0700)]
Remove bogus comparison
Evan Hunt [Fri, 20 Apr 2018 21:25:17 +0000 (17:25 -0400)]
Merge branch '213-add-raflag-and-tcflag-to-dig' into 'master'
Resolve "Add +raflag and +tcflag to dig."
Closes #213
See merge request isc-projects/bind9!201
Mark Andrews [Tue, 17 Apr 2018 23:18:41 +0000 (09:18 +1000)]
dig: add the ability to set RA and TC in queries
Evan Hunt [Fri, 20 Apr 2018 19:20:09 +0000 (15:20 -0400)]
Merge branch '145-dnskey-sigvalidity' into 'master'
Resolve "different RRSIG expiry for DNSKEY"
Closes #145
See merge request isc-projects/bind9!121
Evan Hunt [Tue, 13 Mar 2018 05:14:26 +0000 (22:14 -0700)]
new option "dnskey-sig-validity"
- overrides "sig-validity-interval" for DNSKEY, CDNSKEY and CDS RRSIGs
Evan Hunt [Thu, 19 Apr 2018 17:36:43 +0000 (13:36 -0400)]
Merge branch 'placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!211
Evan Hunt [Thu, 19 Apr 2018 17:36:13 +0000 (10:36 -0700)]
placeholder
Ondřej Surý [Wed, 18 Apr 2018 22:12:56 +0000 (18:12 -0400)]
Merge branch 'rm-clang-format' into 'master'
Remove .clang-format as we are going to use uncrustify anyway
See merge request isc-projects/bind9!207
Ondřej Surý [Wed, 18 Apr 2018 22:05:24 +0000 (15:05 -0700)]
We are going to use uncrustify
Ondřej Surý [Wed, 18 Apr 2018 18:21:51 +0000 (14:21 -0400)]
Merge branch 'clang-format-updates' into 'master'
Add more tweaks to .clang-format style for experiments
See merge request isc-projects/bind9!206
Ondřej Surý [Wed, 18 Apr 2018 18:14:57 +0000 (11:14 -0700)]
Add more tweaks to .clang-format style for experimenting
Ondřej Surý [Wed, 18 Apr 2018 16:45:51 +0000 (12:45 -0400)]
Merge branch '46-add-clang-format-configuration' into 'master'
Add basic clang-format configuration that match our current formatting style closest
See merge request isc-projects/bind9!204
Ondřej Surý [Mon, 18 Dec 2017 09:15:27 +0000 (10:15 +0100)]
Add basic clang-format configuration that match our current formatting style closest
Ondřej Surý [Wed, 18 Apr 2018 16:27:03 +0000 (12:27 -0400)]
Merge branch '37-implement-geoff-huston-s-trusted-key-sentinel-feature' into 'master'
Implement Geoff Huston's trusted key sentinel feature
Closes #37
See merge request isc-projects/bind9!123
Mark Andrews [Wed, 14 Mar 2018 02:30:48 +0000 (13:30 +1100)]
CHANGES entry for root-key-sentinel
Mark Andrews [Wed, 18 Apr 2018 02:58:23 +0000 (12:58 +1000)]
add release note for root-key-sentinel
Mark Andrews [Wed, 14 Mar 2018 02:22:56 +0000 (13:22 +1100)]
add system test for root-key-sentinel
Mark Andrews [Tue, 13 Mar 2018 04:17:22 +0000 (15:17 +1100)]
add named.conf option root-key-sentinel
Mark Andrews [Tue, 13 Mar 2018 01:11:48 +0000 (12:11 +1100)]
detect and processes root-key-sentinel labels.
Ondřej Surý [Wed, 18 Apr 2018 03:59:04 +0000 (23:59 -0400)]
Merge branch '200-add-clang-to-gitlab-ci' into 'master'
Add clang (with clang specific extra options like -Wenum-conversion) to out GitLab CI
Closes #200
See merge request isc-projects/bind9!203
Ondřej Surý [Wed, 18 Apr 2018 03:40:32 +0000 (20:40 -0700)]
Run the clang-compiled unittest
Ondřej Surý [Thu, 12 Apr 2018 08:32:08 +0000 (10:32 +0200)]
Add clang to the build job matrix and build gcc and clang builds with -Wall -Wextra
Evan Hunt [Fri, 13 Apr 2018 19:02:44 +0000 (15:02 -0400)]
Merge branch 'fix-strtok' into 'master'
fix a missing variable declaration needed by strtok_r on non-threaded builds
See merge request isc-projects/bind9!200
Evan Hunt [Fri, 13 Apr 2018 17:14:52 +0000 (10:14 -0700)]
fixed a missing variable declaration needed by strtok_r on non-threaded builds
Evan Hunt [Fri, 13 Apr 2018 18:53:18 +0000 (14:53 -0400)]
Merge branch '203-max-cache-ttlval' into 'master'
max-cache-ttl and other interval options should take ttlval arguments
Closes #203
See merge request isc-projects/bind9!197
Tony Finch [Thu, 12 Apr 2018 17:42:39 +0000 (18:42 +0100)]
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.
Ondřej Surý [Thu, 12 Apr 2018 20:23:26 +0000 (16:23 -0400)]
Merge branch 'u/fanf2/werror-maybe-uninitialized' into 'master'
Appease -Werror=maybe-uninitialized before calling strtok_r()
See merge request isc-projects/bind9!198
Tony Finch [Thu, 12 Apr 2018 18:03:54 +0000 (19:03 +0100)]
Appease -Werror=maybe-uninitialized before calling strtok_r()
Evan Hunt [Thu, 12 Apr 2018 16:27:03 +0000 (12:27 -0400)]
Merge branch 'add-print.h' into 'master'
add missing include
See merge request isc-projects/bind9!195
Evan Hunt [Thu, 12 Apr 2018 16:20:09 +0000 (09:20 -0700)]
add missing include
Witold Krecicki [Thu, 12 Apr 2018 08:46:09 +0000 (04:46 -0400)]
Merge branch '178-cleanup-isc-string' into 'master'
Cleanup <isc/string.h> functions
See merge request isc-projects/bind9!163
Ondřej Surý [Thu, 5 Apr 2018 11:45:30 +0000 (13:45 +0200)]
Add CHANGES entry:
4924. [cleanup] Clean up the isc_string_* namespace and leave
only strlcpy and strlcat. [GL #178]
Ondřej Surý [Wed, 11 Apr 2018 13:16:34 +0000 (15:16 +0200)]
We use too old Visual Compiler to use scoped variables
Ondřej Surý [Mon, 9 Apr 2018 07:29:02 +0000 (09:29 +0200)]
Remove usage of strcasestr, so we don't have to have replacement function on Windows
Ondřej Surý [Thu, 5 Apr 2018 11:44:25 +0000 (13:44 +0200)]
Remove isc_string_strcasestr implementation and clean up the header and headers
Ondřej Surý [Wed, 21 Mar 2018 21:16:51 +0000 (21:16 +0000)]
Replace all usage of non-reentrant strtok() with strtok_r()
Ondřej Surý [Wed, 21 Mar 2018 21:08:29 +0000 (21:08 +0000)]
Replace usage of strsep with POSIX strtok_r()
Ondřej Surý [Wed, 21 Mar 2018 16:40:42 +0000 (16:40 +0000)]
Remove unused isc_string_regiondup function.
Ondřej Surý [Wed, 21 Mar 2018 16:38:29 +0000 (16:38 +0000)]
Remove isc_string_printf and isc_string_printf_truncate.
Replace with simple snprintf() as appropriate.
Ondřej Surý [Wed, 21 Mar 2018 16:20:59 +0000 (16:20 +0000)]
Remove isc_string_copy, isc_string_copy_truncate and isc_string_append.
Use strlcpy and strlcat as appropriate instead.
Ondřej Surý [Wed, 21 Mar 2018 16:09:08 +0000 (16:09 +0000)]
Replace isc_string_touint64 with strtoull (C99)
Ondřej Surý [Thu, 12 Apr 2018 08:06:51 +0000 (04:06 -0400)]
Merge branch 'socket-options-refactoring' into 'master'
Refactoring #defines into typedef enums
See merge request isc-projects/bind9!135
Ondřej Surý [Thu, 12 Apr 2018 07:55:40 +0000 (09:55 +0200)]
Add CHANGES entry:
4923. [cleanup] Refactor socket and socket event options into
enum types. [GL !135]
Ondřej Surý [Sat, 17 Mar 2018 11:15:40 +0000 (11:15 +0000)]
Change ISC_SOCKEVENTATTR_* defines into isc_sockeventattr_t enum
Ondřej Surý [Sat, 17 Mar 2018 11:01:39 +0000 (11:01 +0000)]
Refactor ISC_SOCKET_* defines into an isc_socket_options_t enum
Ondřej Surý [Thu, 12 Apr 2018 06:46:21 +0000 (02:46 -0400)]
Merge branch '189-fix-win32-build' into 'master'
Fix runtime assertion on Windows due isc_file_template being out-of-sync
Closes #189
See merge request isc-projects/bind9!193
Ondřej Surý [Wed, 11 Apr 2018 21:04:20 +0000 (23:04 +0200)]
Sync isc_file_template functions between unix and win32, so they are same
Ondřej Surý [Wed, 11 Apr 2018 12:37:05 +0000 (08:37 -0400)]
Merge branch '189-fix-tsig-dump-keyfile-name-generation-issues' into 'master'
Resolve "Fix TSIG dump keyfile name generation issues"
Closes #189
See merge request isc-projects/bind9!164
Mukund Sivaraman [Wed, 28 Mar 2018 16:41:22 +0000 (22:11 +0530)]
Fix TSIG dump keyfile name buffer size issues
Ondřej Surý [Wed, 28 Mar 2018 18:57:20 +0000 (20:57 +0200)]
Define PATH_MAX on Windows as _MAX_PATH, so we can use it everywhere
Evan Hunt [Wed, 11 Apr 2018 03:03:36 +0000 (23:03 -0400)]
Merge branch '193-fix-variable-definitions-in-bin-tests-Makefile.in' into 'master'
Fix variable definitions in bin/tests/Makefile.in
Closes #193
See merge request isc-projects/bind9!183
Evan Hunt [Fri, 6 Apr 2018 10:09:50 +0000 (12:09 +0200)]
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.
Michał Kępień [Fri, 6 Apr 2018 10:09:48 +0000 (12:09 +0200)]
Fail CI pipeline when "make test" does not run any system tests
Apart from ensuring "make test" returns 0, also check whether any system
test output was generated as a result of running it. This prevents the
CI job running system tests from succeeding unless it actually tests
something.
Evan Hunt [Wed, 11 Apr 2018 02:54:24 +0000 (22:54 -0400)]
Merge branch 'revert-freebsd-runner' into 'master'
Revert freebsd CI runner
See merge request isc-projects/bind9!189
Evan Hunt [Wed, 11 Apr 2018 02:46:12 +0000 (19:46 -0700)]
Revert "Merge branch 'gitlab-ci-freebsd11' into 'master'"
This reverts commit
f595ab93eb6ea98167ac1c60a6d9dddc7c6f1fa7 , reversing
changes made to
deae7d33f1330c3f60b2c28aab61bf41f164fe5c .
Evan Hunt [Wed, 11 Apr 2018 00:18:03 +0000 (20:18 -0400)]
Merge branch '197-dnstap-sockaddr' into 'master'
Resolve "dnstap: log actual local IPv6 address, not :: listening address"
Closes #197
See merge request isc-projects/bind9!188
Evan Hunt [Wed, 11 Apr 2018 00:13:06 +0000 (17:13 -0700)]
CHANGES note
Tony Finch [Mon, 9 Apr 2018 17:07:47 +0000 (18:07 +0100)]
dnstap: log actual local IPv6 address, not :: listening address
Ondřej Surý [Mon, 9 Apr 2018 14:51:54 +0000 (10:51 -0400)]
Merge branch '194-libdns-cleanup-cleanup' into 'master'
Fixup the one last occurence of dns_dt_create2 (in dnstap enabled build)
Closes #194
See merge request isc-projects/bind9!185
Mathieu Arnold [Mon, 9 Apr 2018 11:25:00 +0000 (13:25 +0200)]
Rename the last occurence of dns_dt_create2.
Ondřej Surý [Mon, 9 Apr 2018 14:43:22 +0000 (10:43 -0400)]
Merge branch 'gitlab-ci-freebsd11' into 'master'
Add FreeBSD 11 to GitLab CI
See merge request isc-projects/bind9!184
Ondřej Surý [Mon, 9 Apr 2018 12:12:11 +0000 (14:12 +0200)]
Add FreeBSD 11 GitLab CI Runner
Ondřej Surý [Mon, 9 Apr 2018 14:12:36 +0000 (10:12 -0400)]
Merge branch '183-add-dns_fixedname_initname' into 'master'
Add and use dns_fixedname_initname()
Closes #183
See merge request isc-projects/bind9!161
Mukund Sivaraman [Wed, 28 Mar 2018 15:13:21 +0000 (20:43 +0530)]
Add CHANGES entry:
4921. [cleanup] Add dns_fixedname_initname() and refactor the caller
code to make usage of the new function, as a part of
refactoring dns_fixedname_*() macros were turned into
functions. [GL #183]
Michał Kępień [Thu, 29 Mar 2018 08:17:37 +0000 (10:17 +0200)]
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.
Michał Kępień [Wed, 28 Mar 2018 12:38:09 +0000 (14:38 +0200)]
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.
Mukund Sivaraman [Tue, 27 Mar 2018 11:56:35 +0000 (17:26 +0530)]
Add a dns_fixedname_initname() helper function
This also turns the dns_fixedname macros into functions.
Witold Krecicki [Fri, 6 Apr 2018 06:10:50 +0000 (02:10 -0400)]
Merge branch 'libdns-cleanup2' into 'master'
libdns cleanup
See merge request isc-projects/bind9!172
Witold Kręcicki [Thu, 5 Apr 2018 18:12:47 +0000 (20:12 +0200)]
libdns refactoring: CHANGES entry
Witold Kręcicki [Thu, 5 Apr 2018 14:23:56 +0000 (16:23 +0200)]
libdns refactoring: get rid of multiple versions of dns_keytable_add, dns_iptable_addprefix and dns_iptable_addprefix
Witold Kręcicki [Thu, 5 Apr 2018 14:27:36 +0000 (16:27 +0200)]
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
Witold Kręcicki [Wed, 4 Apr 2018 07:51:42 +0000 (09:51 +0200)]
libdns refactoring: get rid of multiple versions of dns_view_find, dns_view_findzonecut and dns_view_flushcache
Witold Kręcicki [Wed, 4 Apr 2018 07:44:50 +0000 (09:44 +0200)]
libdns refactoring: get rid of multiple versions of dns_xfrin_create, dst_key_generate, dst_lib_init and dst_context_create
Witold Kręcicki [Tue, 3 Apr 2018 21:56:04 +0000 (23:56 +0200)]
libdns refactoring: integrate zone->options and zone->options2 into one enum, removing unnecessary flags.
Witold Kręcicki [Tue, 3 Apr 2018 14:34:41 +0000 (16:34 +0200)]
libdns refactoring: get rid of multiple versions of dns_zone_setfile, dns_zone_notifyreceive, dns_zone_dumptostream, dns_zone_getserial
Witold Kręcicki [Tue, 3 Apr 2018 14:05:11 +0000 (16:05 +0200)]
libdns refactoring: get rid of 3 versions of dns_resolver_createfetch