]>
git.ipfire.org Git - thirdparty/bind9.git/log
Michał Kępień [Tue, 13 Mar 2018 13:06:15 +0000 (14:06 +0100)]
Add CHANGES entry
4939. [test] Add basic unit tests for update_sigs(). [GL #135]
Michał Kępień [Tue, 13 Mar 2018 13:06:13 +0000 (14:06 +0100)]
Define basic test cases for dns__zone_updatesigs()
Add some basic test cases ensuring dns__zone_updatesigs() behaves as
expected.
Michał Kępień [Tue, 13 Mar 2018 13:06:11 +0000 (14:06 +0100)]
Add a framework for dns__zone_updatesigs() unit tests
Add a new ATF test, sigs_test, containing everything required to start
defining test cases for dns__zone_updatesigs(). The framework is
written in a way which ensures that changes to zone database applied by
any dns__zone_updatesigs() invocation are preserved between subsequent
checks.
Michał Kępień [Tue, 13 Mar 2018 13:06:10 +0000 (14:06 +0100)]
Move find_zone_keys() to lib/dns/zone_p.h
Rename find_zone_keys() to dns__zone_findkeys() and move it to
lib/dns/zone_p.h, so that it can be used in unit tests. Add a comment
describing the purpose of this function.
Michał Kępień [Tue, 13 Mar 2018 13:06:09 +0000 (14:06 +0100)]
Move update_sigs() to lib/dns/zone_p.h
Rename update_sigs() to dns__zone_updatesigs() and move it to
lib/dns/zone_p.h, so that it can be unit tested. Add a comment
describing the purpose of this function.
Michał Kępień [Tue, 13 Mar 2018 13:06:08 +0000 (14:06 +0100)]
Move zonediff_t to lib/dns/zone_p.h
Rename zonediff_t to dns__zonediff_t and move it to lib/dns/zone_p.h, so
that unit tests can be written for functions taking pointers to
structures of this type as arguments.
Michał Kępień [Tue, 13 Mar 2018 13:06:07 +0000 (14:06 +0100)]
Add lib/dns/zone_p.h
Add a new private header file, lib/dns/zone_p.h, which will hold type
definitions and function prototypes not meant to be exported by libdns,
but required by zone-related unit tests.
Michał Kępień [Tue, 13 Mar 2018 13:06:06 +0000 (14:06 +0100)]
Add a helper function to facilitate preparing dns_diff_t structures
Implement dns_test_difffromchanges(), a function which enables preparing
a dns_diff_t structure from a mostly-textual representation of zone
database changes to be applied. This will improve readability of test
case definitions by allowing contents of a dns_diff_t structure, passed
e.g. to update_sigs(), to be represented in a human-friendly manner.
Michał Kępień [Wed, 9 May 2018 11:12:08 +0000 (13:12 +0200)]
Rename dns_test_rdata_fromstring() to dns_test_rdatafromstring()
Remove the underscore from "rdata_fromstring" so that all helper
functions for libdns tests use a common naming covention.
Michał Kępień [Tue, 13 Mar 2018 13:06:04 +0000 (14:06 +0100)]
Rework dns_test_makezone()
The dns_test_makezone() helper function always assigns the created zone
to some view, which is not always necessary and complicates cleanup of
non-managed zones as they are required not to be assigned to any view.
Rework dns_test_makezone() in order to make it easier to use in unit
tests operating on non-managed zones. Use dns_name_fromstring() instead
of dns_name_fromtext() to simplify code. Do not use the CHECK() macro
and add comments to make code flow simpler to follow. Use
dns_test_makeview() instead of dns_view_create().
Adjust existing unit tests using this function so that they still pass.
Michał Kępień [Tue, 8 May 2018 08:46:59 +0000 (04:46 -0400)]
Merge branch 'use-clang-6.0' into 'master'
Use clang 6.0 in clang CI jobs
See merge request isc-projects/bind9!250
Michał Kępień [Tue, 8 May 2018 08:30:48 +0000 (10:30 +0200)]
Use clang 6.0 in clang CI jobs
Evan Hunt [Sat, 5 May 2018 00:51:14 +0000 (20:51 -0400)]
Merge branch 'placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!248
Evan Hunt [Sat, 5 May 2018 00:50:17 +0000 (17:50 -0700)]
placeholder
Ondřej Surý [Thu, 3 May 2018 15:18:28 +0000 (11:18 -0400)]
Merge branch '219-new-coverity-warnings' into 'master'
Resolve "New Coverity Warnings"
Closes #219
See merge request isc-projects/bind9!225
Mark Andrews [Tue, 1 May 2018 06:05:01 +0000 (16:05 +1000)]
if _headers is NULL don't process If-Modified-Since
Mark Andrews [Tue, 1 May 2018 06:03:46 +0000 (16:03 +1000)]
insist option != NULL and initalise last to NULL
Mark Andrews [Tue, 1 May 2018 05:52:35 +0000 (15:52 +1000)]
check that order is non NULL before calling strtok_r
Ondřej Surý [Thu, 3 May 2018 15:03:35 +0000 (11:03 -0400)]
Merge branch '236-silence-cppcheck-issues-in-lib-dns-dst_parse-c' into 'master'
Resolve "silence cppcheck issues in lib/dns/dst_parse.c"
Closes #236
See merge request isc-projects/bind9!223
Mark Andrews [Tue, 1 May 2018 00:08:23 +0000 (10:08 +1000)]
simplify mask construction
Ondřej Surý [Thu, 3 May 2018 14:36:20 +0000 (10:36 -0400)]
Merge branch '234-add-prerequisite-check-to-rootkeysentinel-for-dnssec-support' into 'master'
Resolve "add prerequisite check to rootkeysentinel for dnssec support"
Closes #234
See merge request isc-projects/bind9!222
Mark Andrews [Sun, 29 Apr 2018 23:56:20 +0000 (09:56 +1000)]
add bin/tests/system/rootkeysentinel/prereq.sh
Mark Andrews [Sun, 29 Apr 2018 23:53:47 +0000 (09:53 +1000)]
add dnssec prerequisite test to rootkeysentinel
Ondřej Surý [Thu, 3 May 2018 14:20:56 +0000 (10:20 -0400)]
Merge branch '191-remove-openssl-0.9.x-support' into 'master'
Remove OpenSSL 0.9.x support
Closes #191
See merge request isc-projects/bind9!175
Ondřej Surý [Wed, 4 Apr 2018 19:42:26 +0000 (21:42 +0200)]
Add CHANGES entries
4937. [func] Remove support for OpenSSL < 1.0.0 [GL #191]
Ondřej Surý [Wed, 4 Apr 2018 20:10:37 +0000 (22:10 +0200)]
Add release notes about removed support for OpenSSL 0.9.x
Ondřej Surý [Thu, 3 May 2018 12:03:50 +0000 (14:03 +0200)]
Remove support for OpenSSL < 1.0.0
Ondřej Surý [Thu, 3 May 2018 13:52:33 +0000 (09:52 -0400)]
Merge branch '191-misc-improvements' into 'master'
Miscelaneous improvements found when working on #191
See merge request isc-projects/bind9!236
Ondřej Surý [Wed, 4 Apr 2018 19:50:16 +0000 (21:50 +0200)]
Use standard OPENSSL_NO_ENGINE instead of custom USE_ENGINE define
Ondřej Surý [Wed, 2 May 2018 12:17:40 +0000 (14:17 +0200)]
Use BN_hex2bn instead of custom BN_fromhex function
Ondřej Surý [Wed, 4 Apr 2018 19:57:28 +0000 (21:57 +0200)]
Fix extra ] in configure.in
Ondřej Surý [Thu, 3 May 2018 13:13:00 +0000 (09:13 -0400)]
Merge branch '165-always-use-crypto-provider-for-random-data' into 'master'
Always use OpenSSL or PKCS#11 random data providers
Closes #165
See merge request isc-projects/bind9!208
Ondřej Surý [Wed, 4 Apr 2018 19:42:26 +0000 (21:42 +0200)]
Add CHANGES entries
4936. [func] Always use OpenSSL or PKCS#11 random data providers and
remove the configure option --{enable,disable}-crypto-rand.
[GL #165]
Evan Hunt [Fri, 27 Apr 2018 07:13:52 +0000 (00:13 -0700)]
remove dangling references to --enable-crypto-rand in doc and comments
Ondřej Surý [Wed, 18 Apr 2018 19:13:28 +0000 (12:13 -0700)]
Always use random data from the crypto provider
Ondřej Surý [Thu, 3 May 2018 13:02:09 +0000 (09:02 -0400)]
Merge branch 'random-test-improvement' into 'master'
Improve random_test to also test the high bound of the confidence interval
See merge request isc-projects/bind9!210
Ondřej Surý [Thu, 19 Apr 2018 15:48:28 +0000 (08:48 -0700)]
Also test the higher part of the confidence interval
Ondřej Surý [Thu, 3 May 2018 12:25:40 +0000 (08:25 -0400)]
Merge branch '191-add-LibreSSL-2.7-support' into 'master'
Add LibreSSL 2.7.0 support
Closes #210
See merge request isc-projects/bind9!233
Ondřej Surý [Thu, 3 May 2018 12:17:17 +0000 (14:17 +0200)]
Add CHANGES entry
4935. [func] Add support for LibreSSL >= 2.7.0 (some OpenSSL 1.1.0
call were added). [GL #191]
Ondřej Surý [Wed, 2 May 2018 12:18:06 +0000 (14:18 +0200)]
Workaround LibreSSL 2.7.0-2.7.2 quirk in DH_set0_key
Ondřej Surý [Thu, 3 May 2018 11:59:04 +0000 (13:59 +0200)]
Add support for LibreSSL 2.7
Evan Hunt [Wed, 2 May 2018 01:04:13 +0000 (21:04 -0400)]
Merge branch 'placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!229
Evan Hunt [Tue, 1 May 2018 23:14:23 +0000 (16:14 -0700)]
placeholder
Evan Hunt [Fri, 27 Apr 2018 06:24:07 +0000 (02:24 -0400)]
Merge branch '208-dig-doc' into 'master'
Resolve "Added -t TYPEnn description to dig"
Closes #208
See merge request isc-projects/bind9!221
Paul Hoffman [Fri, 27 Apr 2018 01:08:03 +0000 (18:08 -0700)]
add -t type### description to the dig man page
Evan Hunt [Fri, 27 Apr 2018 06:12:46 +0000 (02:12 -0400)]
Merge branch 'date-test-error' into 'master'
Fix a testing error when using python3 on certain dates
See merge request isc-projects/bind9!220
Evan Hunt [Fri, 27 Apr 2018 06:02:40 +0000 (23:02 -0700)]
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.
Evan Hunt [Wed, 25 Apr 2018 19:07:47 +0000 (15:07 -0400)]
Merge branch '159-improve-handling-of-inline-signed-zones-with-missing-signing-keys' into 'master'
Improve handling of inline signed zones with missing signing keys
Closes #159
See merge request isc-projects/bind9!133
Michał Kępień [Fri, 16 Mar 2018 23:12:24 +0000 (00:12 +0100)]
Add CHANGES entries
4916. [bug] Not creating signing keys for an inline signed zone
prevented changes applied to the raw zone from being
reflected in the secure zone until signing keys were
made available. [GL #159]
4915. [bug] Bumped signed serial of an inline signed zone was
logged even when an error occurred while updating
signatures. [GL #159]
Michał Kępień [Fri, 16 Mar 2018 23:12:23 +0000 (00:12 +0100)]
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.
Michał Kępień [Fri, 16 Mar 2018 23:12:21 +0000 (00:12 +0100)]
Only log bumped signed serial after a successful secure zone update
If a raw zone is modified, but the dns_update_signaturesinc() call in
receive_secure_serial() fails, the corresponding secure zone's database
will not be modified, even though by that time a message containing the
bumped signed serial will already have been logged. This creates
confusion, because a different secure zone version will be served than
the one announced in the logs. Move the relevant dns_zone_log() call so
that it is only performed if the secure zone's database is modified.
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]