Commit Graph

25528 Commits

Author SHA1 Message Date
Mukund Sivaraman
f72911dd12 Don't insert 2nd space between NSEC3 nexthash and typemap fields
(cherry picked from commit d4ea1edd2c)
2018-06-04 13:21:57 +10:00
Mark Andrews
0e474b2236 Merge branch '286-new-cppcheck-detected-errors-v9_10' into 'v9_10'
Resolve "New cppcheck-detected errors"

See merge request isc-projects/bind9!324
2018-05-29 09:53:19 +10:00
Mark Andrews
c72275b897 add CHANGES note
(cherry picked from commit e9134b15eb)
2018-05-29 09:53:09 +10:00
Mark Andrews
6120aba080 work around cppcheck false positive
(cherry picked from commit cb5802e854)
2018-05-29 09:52:37 +10:00
Evan Hunt
0df904b68d Merge branch '245-fix-test-color' into 'v9_10'
Resolve "rpz test fails to launch ns2 on openbsd"

Closes #245

See merge request isc-projects/bind9!321
2018-05-25 13:01:55 -07:00
Evan Hunt
d63e38889b fix openbsd color-display problem in system test output
(cherry picked from commit 1e31fdb76d)
2018-05-25 13:01:50 -07:00
Mark Andrews
045bf8adcb Merge branch '290-documentation-error-missing-v9_10' into 'v9_10'
Resolve "Documentation error - missing "};""

Closes #290

See merge request isc-projects/bind9!318
2018-05-25 13:12:25 +10:00
Mark Andrews
ceb986b2a6 add closing '};'
(cherry picked from commit ab22160a1c)
2018-05-25 13:12:24 +10:00
Evan Hunt
40712144f2 Merge branch '283-ensure-there-is-a-blank-line-before-a-changes-entry-and-a-release-marker' into 'v9_10'
Resolve "ensure there is a blank line before a changes entry and a release marker."

Closes #283

See merge request isc-projects/bind9!311
2018-05-23 17:58:57 -07:00
Mark Andrews
a9f60d15f1 ensure there is a blank line before a changes entry and a release marker
(cherry picked from commit c91770549f)
(cherry picked from commit d87eb5804d)
2018-05-23 17:58:53 -07:00
Evan Hunt
2832670181 Merge branch 'generate-notes-txt' into 'v9_10'
use w3m to generate notes.txt as part of the doc build

See merge request isc-projects/bind9!310
2018-05-23 10:03:57 -07:00
Evan Hunt
58fd94cbce copyrights 2018-05-23 09:58:39 -07:00
Evan Hunt
0bb2c62fd5 use w3m to generate notes.txt as part of the doc build
(cherry picked from commit 7c955e0eb8)
(cherry picked from commit 5b2390e016)
(cherry picked from commit 4729357675)
2018-05-23 09:56:16 -07:00
Mark Andrews
05cacaaf98 Merge branch '273-add-home-arpa-to-list-of-empty-zones-rfc-8375-v9_10' into 'v9_10'
Resolve "Add "HOME.ARPA" to list of empty zones (RFC 8375)"

Closes #273

See merge request isc-projects/bind9!297
2018-05-23 11:26:04 +10:00
Mark Andrews
6d49a3f7f5 add HOME.ARPA to the list of empty zones
(cherry picked from commit 10dd0b3efe)
2018-05-23 11:25:51 +10:00
Mark Andrews
ff4e1d43ac fix handling of failed tests
(cherry picked from commit 4283f9552f)
2018-05-23 11:19:50 +10:00
Evan Hunt
a69ad88cf6 Merge branch 'fix-kit-v9_10' into 'v9_10'
use the correct repository, and get archive by tag not hash

See merge request isc-projects/bind9!304
2018-05-21 13:57:20 -07:00
Evan Hunt
99b182f904 use the correct repository, and get archive by tag not hash
(cherry picked from commit 999e3233f3)
2018-05-21 13:57:20 -07:00
Mark Andrews
fa8d286e65 Merge branch '238-isc_net_recvoverflow-support-is-broken-v9_10' into 'v9_10'
Resolve "ISC_NET_RECVOVERFLOW support is broken."

Closes #238

See merge request isc-projects/bind9!226
2018-05-18 16:02:16 +10:00
Mark Andrews
4a73559364 ISC_SOCKEVENTATTR_TRUNC was not be set
(cherry picked from commit 6bff1768cf)
2018-05-18 16:02:04 +10:00
Mark Andrews
c87d118fe5 Merge branch '274-print-c-9-12-and-earlier-v9_10' into 'v9_10'
Resolve "print.c 9.12 and earlier"

See merge request isc-projects/bind9!298
2018-05-18 12:47:21 +10:00
Mark Andrews
7fc6a5f4ef add CHANGES note
(cherry picked from commit 3f3d424a70)
2018-05-18 12:47:13 +10:00
Mark Andrews
a0cfa7da7c look for '\0'
(cherry picked from commit d03a81c265)
2018-05-18 12:46:52 +10:00
Mark Andrews
13494a5a20 add some %f format tests
(cherry picked from commit f5233ba5de)
2018-05-18 12:46:52 +10:00
Mark Andrews
719dd0837d don't produce a false negative for %z with CFLAGS=-Werror
(cherry picked from commit 800012de23)
2018-05-18 12:46:52 +10:00
Evan Hunt
337db29dfe Merge branch '233-clarify-documentation-of-update-policy-tcp-self-and-6to4-self' into 'v9_10'
Resolve "Clarify documentation of update-policy tcp-self and 6to4-self"

Closes #233

See merge request isc-projects/bind9!227
2018-05-15 13:20:40 -07:00
Evan Hunt
1935ec55fd rewrite the update-policy documentation
- clarify the behavior of the name and identity fields for various
  rule types, particularly tcp-self and 6to4-self.

(cherry picked from commit dea89f2a52)
2018-05-15 13:20:35 -07:00
Michał Kępień
ab64e4de2b Merge branch '252-9-9-sigs_test-updatesigs-is-failing-v9_10' into 'v9_10'
[v9_10] Skip lib/dns/tests/sigs_test for builds without DNSSEC support

See merge request isc-projects/bind9!275
2018-05-14 03:38:43 -04:00
Michał Kępień
1e1ed6627b Extend the list of headers included by lib/dns/tests/sigs_test.c
(cherry picked from commit f98e145c5b)
2018-05-14 09:32:44 +02:00
Mark Andrews
9d8bab64ad return untested if not built with OPENSSL or PKCS11CRYPTO
(cherry picked from commit 2420320b96)
2018-05-14 09:32:35 +02:00
Evan Hunt
31283484ca Merge branch 'v9_10' of gitlab.isc.org:isc-projects/bind9 into v9_10 2018-05-10 09:41:48 -07:00
Evan Hunt
b2451397c0 Merge branch '135-add-basic-unit-tests-for-update_sigs-v9_11-v9_10' into 'v9_10'
Add basic unit tests for update_sigs()

Closes #135

See merge request isc-projects/bind9!112
2018-05-10 09:40:54 -07:00
Michał Kępień
6338ca0849 Add CHANGES entry
4939.	[test]		Add basic unit tests for update_sigs(). [GL #135]

(cherry picked from commit 4885809eb9)
(cherry picked from commit 1f9b0cbc63)
(cherry picked from commit d6b8bca379)
2018-05-10 09:40:51 -07:00
Michał Kępień
5a957ec9e1 Define basic test cases for dns__zone_updatesigs()
Add some basic test cases ensuring dns__zone_updatesigs() behaves as
expected.

(cherry picked from commit 8b9d2c27b4)
(cherry picked from commit 3e93e4bb62)
(cherry picked from commit 505267f320)
2018-05-10 09:36:01 -07:00
Michał Kępień
7394dd8732 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.

(cherry picked from commit 1f10186476)
(cherry picked from commit 3dde7c42db)
(cherry picked from commit e787e54ea1)
2018-05-10 09:35:59 -07:00
Michał Kępień
b8720b8f50 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.

(cherry picked from commit d7143986b1)
(cherry picked from commit fc0e99c7d7)
(cherry picked from commit a6be59ce08)
2018-05-10 09:32:21 -07:00
Michał Kępień
ae03a5c1fa 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.

(cherry picked from commit b1947cee82)
(cherry picked from commit 4d06f50ba8)
(cherry picked from commit 5c71a025c6)
2018-05-10 09:28:53 -07:00
Michał Kępień
5f0b4eaf70 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.

(cherry picked from commit ace465a9f9)
(cherry picked from commit ea15c54d8a)
(cherry picked from commit 5712d9528f)
2018-05-10 09:28:52 -07:00
Michał Kępień
27f777c61a 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.

(cherry picked from commit c1bc3be806)
(cherry picked from commit 2b0add6d1a)
(cherry picked from commit 536d6dc0c5)
2018-05-10 09:25:08 -07:00
Michał Kępień
7193496b6e 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.

(cherry picked from commit 3c22af0d35)
(cherry picked from commit d4c603eb8a)
(cherry picked from commit 1f454b8d91)
2018-05-10 09:24:15 -07:00
Michał Kępień
94caf8ebdb 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.

(cherry picked from commit 2980cbd55f)
(cherry picked from commit 107102d333)
(cherry picked from commit 5097723d1b)
2018-05-10 09:24:12 -07:00
Michał Kępień
d76fdb8718 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.

(cherry picked from commit bfbeef3609)
(cherry picked from commit f70c02d2c2)
(cherry picked from commit d45ee39bae)
2018-05-10 09:20:31 -07:00
Ondřej Surý
eda49245a9 Merge branch 'gitlab-ci-amd64-v9_10' into 'v9_10'
Tag docker images with appropriate architectures

See merge request isc-projects/bind9!257
2018-05-10 04:16:03 -04:00
Ondřej Surý
33bff7f0d3 Tag docker images with appropriate architectures
(cherry picked from commit ab112d2c4f)
2018-05-10 09:27:56 +02:00
Ondřej Surý
d41507521a Merge branch '236-silence-cppcheck-issues-in-lib-dns-dst_parse-c-v9_10' into 'v9_10'
[v9_10] Resolve "silence cppcheck issues in lib/dns/dst_parse.c"

See merge request isc-projects/bind9!242
2018-05-03 11:22:17 -04:00
Mark Andrews
44ff35c6cb simplify mask construction
(cherry picked from commit 22fab3199f)
2018-05-03 17:16:10 +02:00
Evan Hunt
0b2f74ef06 Merge branch '208-dig-doc' into 'v9_10'
Resolve "Added -t TYPEnn description to dig"

Closes #208

See merge request isc-projects/bind9!221
2018-04-27 00:01:16 -07:00
Paul Hoffman
efcad103e7 add -t type### description to the dig man page
(cherry picked from commit 2d957c6b9f)
(cherry picked from commit d742db122e)
2018-04-27 00:01:11 -07:00
Evan Hunt
a0ed0e20f2 Merge branch '159-improve-handling-of-inline-signed-zones-with-missing-signing-keys' into 'v9_10'
Improve handling of inline signed zones with missing signing keys

Closes #159

See merge request isc-projects/bind9!133
2018-04-25 12:19:09 -07:00
Michał Kępień
821c27bb7c 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]

(cherry picked from commit 7d2c09c905)
(cherry picked from commit e4995efe24)
2018-04-25 12:19:04 -07:00