Commit Graph

24489 Commits

Author SHA1 Message Date
Mukund Sivaraman
2420b8f5fc Don't insert 2nd space between NSEC3 nexthash and typemap fields
(cherry picked from commit d4ea1edd2c)
2018-06-04 13:34:46 +10:00
Mark Andrews
24dd75db91 fix merge error 2018-05-29 10:02:29 +10:00
Mark Andrews
fc0b3d5397 Merge branch '286-new-cppcheck-detected-errors-v9_9' into 'v9_9'
Resolve "New cppcheck-detected errors"

See merge request isc-projects/bind9!324
2018-05-29 09:56:11 +10:00
Mark Andrews
f89f550259 add CHANGES note
(cherry picked from commit e9134b15eb)
2018-05-29 09:55:50 +10:00
Mark Andrews
20d279571f work around cppcheck false positive
(cherry picked from commit cb5802e854)
2018-05-29 09:55:25 +10:00
Evan Hunt
1c0977255c Merge branch '245-fix-test-color' into 'v9_9'
Resolve "rpz test fails to launch ns2 on openbsd"

Closes #245

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

Closes #290

See merge request isc-projects/bind9!318
2018-05-25 13:12:44 +10:00
Mark Andrews
99d4760f0e add closing '};'
(cherry picked from commit ab22160a1c)
2018-05-25 13:12:43 +10:00
Evan Hunt
cbd40d7454 Merge branch '283-ensure-there-is-a-blank-line-before-a-changes-entry-and-a-release-marker' into 'v9_9'
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:59:08 -07:00
Mark Andrews
af973bfe8b 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:59:05 -07:00
Evan Hunt
fe663aa18f Merge branch 'generate-notes-txt' into 'v9_9'
use w3m to generate notes.txt as part of the doc build

See merge request isc-projects/bind9!310
2018-05-23 10:03:49 -07:00
Evan Hunt
f2dc9a516f copyrights
(cherry picked from commit 58fd94cbce)
2018-05-23 09:58:57 -07:00
Evan Hunt
69568409c4 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)
(cherry picked from commit 0bb2c62fd5)
2018-05-23 09:58:57 -07:00
Mark Andrews
6bf149bd16 Merge branch '273-add-home-arpa-to-list-of-empty-zones-rfc-8375-v9_9' into 'v9_9'
Resolve "Add "HOME.ARPA" to list of empty zones (RFC 8375)"

Closes #273

See merge request isc-projects/bind9!297
2018-05-23 11:31:05 +10:00
Mark Andrews
26e0694aee add HOME.ARPA to the list of empty zones
(cherry picked from commit 10dd0b3efe)
2018-05-23 11:30:55 +10:00
Evan Hunt
0e8c36d1d8 Merge branch 'fix-kit-v9_9' into 'v9_9'
use the correct repository, and get archive by tag not hash

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

Closes #238

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

See merge request isc-projects/bind9!298
2018-05-18 12:51:55 +10:00
Mark Andrews
53c85ca373 add CHANGES note
(cherry picked from commit 3f3d424a70)
2018-05-18 12:51:49 +10:00
Mark Andrews
9789729a43 look for '\0'
(cherry picked from commit d03a81c265)
2018-05-18 12:51:20 +10:00
Mark Andrews
593933bd5f add some %f format tests
(cherry picked from commit f5233ba5de)
2018-05-18 12:51:20 +10:00
Mark Andrews
d4ae45a2b7 don't produce a false negative for %z with CFLAGS=-Werror
(cherry picked from commit 800012de23)
2018-05-18 12:51:20 +10:00
Evan Hunt
bcb212bf13 Merge branch '233-clarify-documentation-of-update-policy-tcp-self-and-6to4-self' into 'v9_9'
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:53 -07:00
Evan Hunt
88a597de6e 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:51 -07:00
Michał Kępień
92a360ab67 Merge branch '252-9-9-sigs_test-updatesigs-is-failing-v9_9' into 'v9_9'
[v9_9] Skip lib/dns/tests/sigs_test for builds without DNSSEC support

See merge request isc-projects/bind9!276
2018-05-14 03:41:02 -04:00
Michał Kępień
7f38fd70c1 Extend the list of headers included by lib/dns/tests/sigs_test.c
(cherry picked from commit 1e1ed6627b)
2018-05-14 09:34:56 +02:00
Mark Andrews
77cd6fe0f5 return untested if not built with OPENSSL or PKCS11CRYPTO
(cherry picked from commit 9d8bab64ad)
2018-05-14 09:34:42 +02:00
Evan Hunt
08f84c8fab Merge branch '135-add-basic-unit-tests-for-update_sigs' into 'v9_9'
Add basic unit tests for update_sigs()

Closes #135

See merge request isc-projects/bind9!112
2018-05-10 09:50:33 -07:00
Michał Kępień
dfe3c55ec8 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)
(cherry picked from commit 6338ca0849)
2018-05-10 09:45:51 -07:00
Michał Kępień
e41d2a195e 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)
(cherry picked from commit 5a957ec9e1)
2018-05-10 09:45:50 -07:00
Michał Kępień
02da03b17f 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)
(cherry picked from commit 7394dd8732)
2018-05-10 09:45:48 -07:00
Michał Kępień
781105c046 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)
(cherry picked from commit b8720b8f50)
2018-05-10 09:42:39 -07:00
Michał Kępień
b767528e13 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)
(cherry picked from commit ae03a5c1fa)
2018-05-10 09:42:13 -07:00
Michał Kępień
645c43d09c 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)
(cherry picked from commit 5f0b4eaf70)
2018-05-10 09:42:13 -07:00
Michał Kępień
0d126920e6 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)
(cherry picked from commit 27f777c61a)
2018-05-10 09:42:13 -07:00
Michał Kępień
f7a84380dd 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)
(cherry picked from commit 7193496b6e)
2018-05-10 09:42:13 -07:00
Michał Kępień
1eec107a94 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)
(cherry picked from commit 94caf8ebdb)
2018-05-10 09:42:13 -07:00
Michał Kępień
c7d9100dcb 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)
(cherry picked from commit d76fdb8718)
2018-05-10 09:42:13 -07:00
Ondřej Surý
a1e279669b Merge branch 'gitlab-ci-amd64-v9_9' into 'v9_9'
Tag docker images with appropriate architectures

See merge request isc-projects/bind9!258
2018-05-10 03:35:38 -04:00
Ondřej Surý
b6fd49c749 Tag docker images with appropriate architectures
(cherry picked from commit ab112d2c4f)
2018-05-10 09:28:10 +02:00
Ondřej Surý
98fb050c25 Merge branch '236-silence-cppcheck-issues-in-lib-dns-dst_parse-c-v9_9' into 'v9_9'
[v9_9] Resolve "silence cppcheck issues in lib/dns/dst_parse.c"

See merge request isc-projects/bind9!243
2018-05-03 11:23:39 -04:00
Mark Andrews
d1d04fdffd simplify mask construction
(cherry picked from commit 22fab3199f)
2018-05-03 17:17:38 +02:00
Evan Hunt
beb08ef52d Merge branch '208-dig-doc' into 'v9_9'
Resolve "Added -t TYPEnn description to dig"

Closes #208

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

Closes #159

See merge request isc-projects/bind9!133
2018-04-25 12:24:51 -07:00
Michał Kępień
cac0073e5b 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)
(cherry picked from commit 821c27bb7c)
2018-04-25 12:24:39 -07:00
Michał Kępień
8b0f7f1b8d 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.

(cherry picked from commit 6acf326969)
(cherry picked from commit 8a58a60772)
(cherry picked from commit fcbdeed802)
2018-04-25 12:24:36 -07:00