]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
7 years agoProvide debugging information for the isc_random function test-random
Ondřej Surý [Wed, 23 May 2018 16:26:47 +0000 (18:26 +0200)] 
Provide debugging information for the isc_random function

7 years agoMerge branch '273-add-home-arpa-to-list-of-empty-zones-rfc-8375' into 'master'
Mark Andrews [Wed, 23 May 2018 00:57:19 +0000 (20:57 -0400)] 
Merge branch '273-add-home-arpa-to-list-of-empty-zones-rfc-8375' into 'master'

Resolve "Add "HOME.ARPA" to list of empty zones (RFC 8375)"

Closes #273

See merge request isc-projects/bind9!297

7 years agoadd HOME.ARPA to the list of empty zones
Mark Andrews [Fri, 18 May 2018 01:13:39 +0000 (11:13 +1000)] 
add HOME.ARPA to the list of empty zones

7 years agofix handling of failed tests
Mark Andrews [Fri, 18 May 2018 01:13:39 +0000 (11:13 +1000)] 
fix handling of failed tests

7 years agoMerge branch '272-missing-crypto-defines-in-windows-build' into 'master' v9.13.0
Evan Hunt [Tue, 22 May 2018 23:42:35 +0000 (19:42 -0400)] 
Merge branch '272-missing-crypto-defines-in-windows-build' into 'master'

Closes #272

See merge request isc-projects/bind9!308

7 years agofix broken win32 code in random.c
Evan Hunt [Tue, 22 May 2018 16:22:51 +0000 (09:22 -0700)] 
fix broken win32 code in random.c

7 years agoaddress win32 build issues
Ondřej Surý [Tue, 22 May 2018 13:24:37 +0000 (15:24 +0200)] 
address win32 build issues

- Replace external -DOPENSSL/-DPKCS11CRYPTO with properly AC_DEFINEd
  HAVE_OPENSSL/HAVE_PKCS11
- Don't enforce the crypto provider from platform.h, just from dst_api.c
  and configure scripts

7 years agoMerge branch '278-prevent-false-negatives-in-rootkeysentinel-system-test' into 'master'
Ondřej Surý [Tue, 22 May 2018 11:59:42 +0000 (07:59 -0400)] 
Merge branch '278-prevent-false-negatives-in-rootkeysentinel-system-test' into 'master'

Prevent false negatives in rootkeysentinel system test

Closes #278

See merge request isc-projects/bind9!301

7 years agoFix the name of the variable used in some bad TA checks
Michał Kępień [Mon, 21 May 2018 07:04:59 +0000 (09:04 +0200)] 
Fix the name of the variable used in some bad TA checks

7 years agoPrevent false negatives in rootkeysentinel system test
Michał Kępień [Mon, 21 May 2018 06:00:44 +0000 (08:00 +0200)] 
Prevent false negatives in rootkeysentinel system test

7 years agoMerge branch '280-remove-fatal-prefix' into 'master'
Ondřej Surý [Tue, 22 May 2018 11:02:17 +0000 (07:02 -0400)] 
Merge branch '280-remove-fatal-prefix' into 'master'

Remove "FATAL:" prefix and the newline from FATAL_ERROR call

See merge request isc-projects/bind9!307

7 years agoRemove extra FATAL prefix from FATAL_ERROR call
Ondřej Surý [Tue, 22 May 2018 10:31:27 +0000 (12:31 +0200)] 
Remove extra FATAL prefix from FATAL_ERROR call

7 years agoMerge branch '280-provide-diagnostic-on-failed-RAND_bytes' into 'master'
Ondřej Surý [Tue, 22 May 2018 10:27:05 +0000 (06:27 -0400)] 
Merge branch '280-provide-diagnostic-on-failed-RAND_bytes' into 'master'

Provide more diagnostic output on failed RAND_bytes() call

See merge request isc-projects/bind9!306

7 years agoProvide better error message on failed RAND_bytes call
Ondřej Surý [Tue, 22 May 2018 10:00:00 +0000 (12:00 +0200)] 
Provide better error message on failed RAND_bytes call

7 years agoMerge branch 'fix-kit' into 'master'
Evan Hunt [Mon, 21 May 2018 20:55:27 +0000 (16:55 -0400)] 
Merge branch 'fix-kit' into 'master'

use the correct repository, and get archive by tag not hash

See merge request isc-projects/bind9!304

7 years agouse the correct repository, and get archive by tag not hash
Evan Hunt [Mon, 21 May 2018 20:43:49 +0000 (13:43 -0700)] 
use the correct repository, and get archive by tag not hash

7 years agoMerge branch 'prep-913' into 'master'
Evan Hunt [Mon, 21 May 2018 20:12:19 +0000 (16:12 -0400)] 
Merge branch 'prep-913' into 'master'

prepare development release 9.13.0

See merge request isc-projects/bind9!296

7 years agoregenerate doc
Tinderbox User [Mon, 21 May 2018 19:59:10 +0000 (19:59 +0000)] 
regenerate doc

7 years agobegin preparation for 9.13.0
Evan Hunt [Thu, 17 May 2018 21:55:10 +0000 (14:55 -0700)] 
begin preparation for 9.13.0

- tidy up release notes, removing the existing "security fixes" and
  "bug fixes" sections
- add a section in the release notes to discuss the new version
  numbering
- update version, CHANGES, api, and mapapi files

7 years agoMerge branch '185-fix-changes-entry' into 'master'
Mukund Sivaraman [Mon, 21 May 2018 17:31:41 +0000 (13:31 -0400)] 
Merge branch '185-fix-changes-entry' into 'master'

Resolve "[CVE-2018-5737] serve-stale crash"

Closes #185

See merge request isc-projects/bind9!303

7 years agoFix CHANGES entry
Mukund Sivaraman [Mon, 21 May 2018 17:22:15 +0000 (22:52 +0530)] 
Fix CHANGES entry

7 years agoMerge branch '185-public-fix' into 'master'
Evan Hunt [Mon, 21 May 2018 17:02:30 +0000 (13:02 -0400)] 
Merge branch '185-public-fix' into 'master'

Resolve "[CVE-2018-5737] serve-stale crash"

Closes #185

See merge request isc-projects/bind9!302

7 years agoupdate CHANGES
Evan Hunt [Mon, 21 May 2018 16:51:20 +0000 (09:51 -0700)] 
update CHANGES

7 years agoDetect recursion loops during query processing
Michał Kępień [Fri, 27 Apr 2018 07:13:26 +0000 (09:13 +0200)] 
Detect recursion loops during query processing

Interrupt query processing when query_recurse() attempts to ask the same
name servers for the same QNAME/QTYPE tuple for two times in a row as
this indicates that query processing may be stuck for an indeterminate
period of time, e.g. due to interactions between features able to
restart query_lookup().

7 years agoPrevent check_stale_header() from leaking rdataset headers
Michał Kępień [Fri, 27 Apr 2018 07:13:26 +0000 (09:13 +0200)] 
Prevent check_stale_header() from leaking rdataset headers

check_stale_header() fails to update the pointer to the previous header
while processing rdataset headers eligible for serve-stale, thus
enabling rdataset headers to be leaked (i.e. disassociated from a node
and left on the relevant TTL heap) while iterating through a node.  This
can lead to several different assertion failures.  Add the missing
pointer update.

7 years agoMerge branch '238-isc_net_recvoverflow-support-is-broken' into 'master'
Mark Andrews [Fri, 18 May 2018 05:44:02 +0000 (01:44 -0400)] 
Merge branch '238-isc_net_recvoverflow-support-is-broken' into 'master'

Resolve "ISC_NET_RECVOVERFLOW support is broken."

Closes #238

See merge request isc-projects/bind9!226

7 years agoISC_SOCKEVENTATTR_TRUNC was not be set
Mark Andrews [Tue, 1 May 2018 06:52:01 +0000 (16:52 +1000)] 
ISC_SOCKEVENTATTR_TRUNC was not be set

7 years agoMerge branch 'placeholder' into 'master'
Mark Andrews [Fri, 18 May 2018 02:41:19 +0000 (22:41 -0400)] 
Merge branch 'placeholder' into 'master'

add placeholder

See merge request isc-projects/bind9!299

7 years agoadd placeholder
Mark Andrews [Fri, 18 May 2018 02:32:37 +0000 (12:32 +1000)] 
add placeholder

7 years agoMerge branch '251-documentation-of-rpz-min-update-interval-is-inconsistent-with-imple...
Evan Hunt [Fri, 18 May 2018 02:12:17 +0000 (22:12 -0400)] 
Merge branch '251-documentation-of-rpz-min-update-interval-is-inconsistent-with-implementation' into 'master'

Resolve "Documentation of RPZ min-update-interval is inconsistent with implementation"

Closes #251

See merge request isc-projects/bind9!277

7 years agoFix ARM about min-update-interval default for RPZ zones
Mukund Sivaraman [Mon, 14 May 2018 08:29:40 +0000 (13:59 +0530)] 
Fix ARM about min-update-interval default for RPZ zones

Also, use variable names consistent with catz for rpz configuration functions

8 years agoMerge branch '267-iscpk11libs-is-not-defined-anywhere-resulting-in-dstrandom_test... 293/head
Mark Andrews [Thu, 17 May 2018 06:20:30 +0000 (02:20 -0400)] 
Merge branch '267-iscpk11libs-is-not-defined-anywhere-resulting-in-dstrandom_test-not-being-built' into 'master'

Remove dstrandom_test from lib/dns/tests/Atffile

See merge request isc-projects/bind9!292

8 years agoremove dstrandom_test
Mark Andrews [Thu, 17 May 2018 06:10:24 +0000 (16:10 +1000)] 
remove dstrandom_test

8 years agoMerge branch 'u/fanf2/restore-nsid-logging' into 'master'
Mark Andrews [Thu, 17 May 2018 03:49:25 +0000 (23:49 -0400)] 
Merge branch 'u/fanf2/restore-nsid-logging' into 'master'

Fix request-nsid log level to match documentation.

See merge request isc-projects/bind9!290

8 years agoAdd CHANGES entry.
Tony Finch [Wed, 16 May 2018 19:24:24 +0000 (20:24 +0100)] 
Add CHANGES entry.

4948. [bug] When request-nsid is turned on, EDNS NSID options
should be logged at level info. Since change 3741
they have been logged at debug(3) by mistake.
[GL !290]

8 years agoFix request-nsid log level to match documentation.
Tony Finch [Wed, 16 May 2018 19:20:05 +0000 (20:20 +0100)] 
Fix request-nsid log level to match documentation.

Since change 3741 (commit 1d761cb4) they have been logged at
debug(3) by mistake.

8 years agoMerge branch '221-new-isc_random-api' into 'master'
Witold Krecicki [Wed, 16 May 2018 08:05:31 +0000 (04:05 -0400)] 
Merge branch '221-new-isc_random-api' into 'master'

Unify the random number provider

Closes #221

See merge request isc-projects/bind9!269

8 years agoAdd CHANGES entry.
Ondřej Surý [Mon, 14 May 2018 10:45:43 +0000 (12:45 +0200)] 
Add CHANGES entry.

4947.   [func]          Replace all random functions with isc_random(),
                        isc_random_buf() and isc_random_uniform() API.
                        [GL #221]

8 years agoAdd release notes.
Ondřej Surý [Mon, 14 May 2018 10:43:19 +0000 (12:43 +0200)] 
Add release notes.

8 years agoRemove -p pseudo-random documentation from dnssec-signzone
Ondřej Surý [Mon, 14 May 2018 07:37:56 +0000 (09:37 +0200)] 
Remove -p pseudo-random documentation from dnssec-signzone

8 years agoRemove genrandom man page
Ondřej Surý [Mon, 14 May 2018 07:31:17 +0000 (09:31 +0200)] 
Remove genrandom man page

8 years agoRemove -p option usage from rpz test
Ondřej Surý [Tue, 24 Apr 2018 19:11:48 +0000 (21:11 +0200)] 
Remove -p option usage from rpz test

8 years agoRemove genrandom command and all usage of specific random files throughout the system...
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

8 years agoReplace all random functions with isc_random, isc_random_buf and isc_random_uniform...
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

8 years agoMerge branch '209-glue-is-no-longer-included' into 'master'
Ondřej Surý [Wed, 16 May 2018 06:27:32 +0000 (02:27 -0400)] 
Merge branch '209-glue-is-no-longer-included' into 'master'

Resolve "Glue is no longer included for non-DNSSEC-signed zones since CHANGE 4596"

Closes #209

See merge request isc-projects/bind9!247

8 years agoAdd CHANGES entry
Mukund Sivaraman [Wed, 2 May 2018 07:47:36 +0000 (13:17 +0530)] 
Add CHANGES entry

8 years agoAdd system test
Mukund Sivaraman [Wed, 2 May 2018 07:37:14 +0000 (13:07 +0530)] 
Add system test

8 years agoDon't validate non-pending glue when adding to the additional section
Mukund Sivaraman [Wed, 2 May 2018 06:48:44 +0000 (12:18 +0530)] 
Don't validate non-pending glue when adding to the additional section

8 years agoMerge branch '233-clarify-documentation-of-update-policy-tcp-self-and-6to4-self'...
Evan Hunt [Tue, 15 May 2018 20:19:27 +0000 (16:19 -0400)] 
Merge branch '233-clarify-documentation-of-update-policy-tcp-self-and-6to4-self' into 'master'

Resolve "Clarify documentation of update-policy tcp-self and 6to4-self"

Closes #233

See merge request isc-projects/bind9!227

8 years agorewrite the update-policy documentation
Evan Hunt [Tue, 15 May 2018 20:05:05 +0000 (13:05 -0700)] 
rewrite the update-policy documentation

- clarify the behavior of the name and identity fields for various
  rule types, particularly tcp-self and 6to4-self.

8 years agoMerge branch '258-address-ubsan-warnings' into 'master'
Michał Kępień [Tue, 15 May 2018 07:27:27 +0000 (03:27 -0400)] 
Merge branch '258-address-ubsan-warnings' into 'master'

Address issues found by ubsan

Closes #258

See merge request isc-projects/bind9!278

8 years agoisc_buffer_*(): if source can be NULL, only call memmove() when length is non-zero
Michał Kępień [Tue, 15 May 2018 06:18:01 +0000 (08:18 +0200)] 
isc_buffer_*(): if source can be NULL, only call memmove() when length is non-zero

Certain isc_buffer_*() functions might call memmove() with the second
argument (source) set to NULL and the third argument (length) set to 0.
While harmless, it triggers an ubsan warning:

    runtime error: null pointer passed as argument 2, which is declared to never be null

Modify all memmove() call sites in lib/isc/include/isc/buffer.h and
lib/isc/buffer.c which may potentially use NULL as the second argument
(source) so that memmove() is only called if the third argument (length)
is non-zero.

8 years agodns_rdataslab_merge(): use dns_rdata_compare() instead of compare_rdata()
Michał Kępień [Tue, 15 May 2018 06:18:01 +0000 (08:18 +0200)] 
dns_rdataslab_merge(): use dns_rdata_compare() instead of compare_rdata()

compare_rdata() was meant to be used as a qsort() callback.  Meanwhile,
dns_rdataslab_merge() calls compare_rdata() for a pair of dns_rdata_t
structures rather than a pair of struct xrdata structures, which is
harmless, but triggers an ubsan warning:

    rdataslab.c:84:33: runtime error: member access within address <address> with insufficient space for an object of type 'const struct xrdata'

Use dns_rdata_compare() instead of compare_rdata() to prevent the
warning from being triggered.

8 years agoMerge branch '252-9-9-sigs_test-updatesigs-is-failing' into 'master'
Michał Kępień [Mon, 14 May 2018 07:26:43 +0000 (03:26 -0400)] 
Merge branch '252-9-9-sigs_test-updatesigs-is-failing' into 'master'

Skip lib/dns/tests/sigs_test for builds without DNSSEC support

Closes #252

See merge request isc-projects/bind9!271

8 years agoExtend the list of headers included by lib/dns/tests/sigs_test.c
Michał Kępień [Mon, 14 May 2018 06:55:50 +0000 (08:55 +0200)] 
Extend the list of headers included by lib/dns/tests/sigs_test.c

8 years agoreturn untested if not built with OPENSSL or PKCS11CRYPTO
Mark Andrews [Mon, 14 May 2018 01:52:54 +0000 (11:52 +1000)] 
return untested if not built with OPENSSL or PKCS11CRYPTO

8 years agoMerge branch 'dont-close-stderr-doc' into 'master'
Ondřej Surý [Mon, 14 May 2018 06:08:52 +0000 (02:08 -0400)] 
Merge branch 'dont-close-stderr-doc' into 'master'

Add notice about closing stdout/stderr file descriptors to style.md

See merge request isc-projects/bind9!272

8 years agoAdd notice about closing stdout/stderr file descriptors to style.md
Ondřej Surý [Mon, 14 May 2018 05:54:23 +0000 (07:54 +0200)] 
Add notice about closing stdout/stderr file descriptors to style.md

8 years agoMerge branch '244-enforce-crypto-library' into 'master'
Evan Hunt [Mon, 14 May 2018 02:27:33 +0000 (22:27 -0400)] 
Merge branch '244-enforce-crypto-library' into 'master'

Disable builds without cryptographic provider (OpenSSL or PKCS#11)

Closes #244

See merge request isc-projects/bind9!266

8 years agoCHANGES and release note
Evan Hunt [Mon, 14 May 2018 02:18:39 +0000 (19:18 -0700)] 
CHANGES and release note

8 years agoEnforce usage of OpenSSL or PKCS#11 library in platform.h header
Ondřej Surý [Fri, 11 May 2018 11:39:42 +0000 (13:39 +0200)] 
Enforce usage of OpenSSL or PKCS#11 library in platform.h header

8 years agoEnforce crypto selection in configure
Evan Hunt [Mon, 26 Feb 2018 07:19:18 +0000 (23:19 -0800)] 
Enforce crypto selection in configure

8 years agoMerge branch '9-remove-dolar-ids-and-other-cruft' into 'master'
Ondřej Surý [Fri, 11 May 2018 12:18:32 +0000 (08:18 -0400)] 
Merge branch '9-remove-dolar-ids-and-other-cruft' into 'master'

Remove $Id$s and other cruft in a batch

See merge request isc-projects/bind9!263

8 years agoRemove $Id markers, Principal Author and Reviewed tags from the full source tree
Ondřej Surý [Tue, 17 Apr 2018 16:32:20 +0000 (09:32 -0700)] 
Remove $Id markers, Principal Author and Reviewed tags from the full source tree

8 years agoMerge branch 'redirect-stderr-to-dev-null' into 'master'
Ondřej Surý [Fri, 11 May 2018 11:10:42 +0000 (07:10 -0400)] 
Merge branch 'redirect-stderr-to-dev-null' into 'master'

Use 2>/dev/null instead of '>&-'

See merge request isc-projects/bind9!262

8 years agoUpdate tests to not use '>&-' that closes file descriptor, but instead use correct...
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'

8 years agoMerge branch '239-don-t-use-null-as-a-argument-to-a-varargs-function-as-it-may-not...
Michał Kępień [Fri, 11 May 2018 06:20:43 +0000 (02:20 -0400)] 
Merge branch '239-don-t-use-null-as-a-argument-to-a-varargs-function-as-it-may-not-be-promoted-properly' into 'master'

Resolve "don't use NULL as a argument to a varargs function as it may not be promoted properly"

Closes #239

See merge request isc-projects/bind9!228

8 years agosilence cppcheck portability warning
Mark Andrews [Tue, 1 May 2018 08:12:41 +0000 (18:12 +1000)] 
silence cppcheck portability warning

8 years agoMerge branch '248-named-9-12-uses-too-much-memory-with-tuning-large-regression-vs...
Mark Andrews [Fri, 11 May 2018 01:27:10 +0000 (21:27 -0400)] 
Merge branch '248-named-9-12-uses-too-much-memory-with-tuning-large-regression-vs-9-11' into 'master'

Resolve "named 9.12 uses too much memory with `--tuning=large` (regression vs. 9.11)"

Closes #248

See merge request isc-projects/bind9!251

8 years agoadd CHANGES note
Mark Andrews [Thu, 10 May 2018 02:23:55 +0000 (12:23 +1000)] 
add CHANGES note

8 years agoDon't keep around debuglist structs when done
Mukund Sivaraman [Wed, 9 May 2018 06:21:22 +0000 (11:51 +0530)] 
Don't keep around debuglist structs when done

8 years agoReduce number of buckets in tracklines debuglink table
Mukund Sivaraman [Wed, 9 May 2018 06:15:12 +0000 (11:45 +0530)] 
Reduce number of buckets in tracklines debuglink table

With 1044 res contexts, each with 65536 debuglink structs of 16 bytes
each, the debuglink table itself was consuming 1GB+ of memory.

8 years agoMerge branch '196-clang-scan-build-reporting-possible-null-pointer-dereferences'...
Mark Andrews [Fri, 11 May 2018 01:02:50 +0000 (21:02 -0400)] 
Merge branch '196-clang-scan-build-reporting-possible-null-pointer-dereferences' into 'master'

Resolve "clang scan-build reporting possible null pointer dereferences"

Closes #196

See merge request isc-projects/bind9!230

8 years agoSilence clang static analyzer warnings; Consolidate multiple instances of splitting...
Mark Andrews [Wed, 2 May 2018 03:07:28 +0000 (13:07 +1000)] 
Silence clang static analyzer warnings; Consolidate multiple instances of splitting of batchline in dig into a single function.

8 years agoMerge branch '249-address-gcc-8-compilation-warnings' into 'master'
Michał Kępień [Thu, 10 May 2018 08:51:23 +0000 (04:51 -0400)] 
Merge branch '249-address-gcc-8-compilation-warnings' into 'master'

Address GCC 8 compilation warnings

Closes #249

See merge request isc-projects/bind9!252

8 years agoAddress GCC 8 -Wstringop-truncation warning
Ondřej Surý [Wed, 9 May 2018 12:08:53 +0000 (14:08 +0200)] 
Address GCC 8 -Wstringop-truncation warning

8 years agoAddress GCC 8 -Wformat-truncation warnings
Michał Kępień [Wed, 9 May 2018 06:09:54 +0000 (08:09 +0200)] 
Address GCC 8 -Wformat-truncation warnings

8 years agoMerge branch 'refactor-update-sigs' into 'master'
Michał Kępień [Thu, 10 May 2018 07:54:53 +0000 (03:54 -0400)] 
Merge branch 'refactor-update-sigs' into 'master'

Refactor update_sigs()

See merge request isc-projects/bind9!10

8 years agoAdd CHANGES entry
Michał Kępień [Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)] 
Add CHANGES entry

4940. [cleanup] Extract the loop in dns__zone_updatesigs() into
separate functions to improve code readability.
[GL #135]

8 years agoUse a while loop instead of a for loop in dns__zone_updatesigs()
Michał Kępień [Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)] 
Use a while loop instead of a for loop in dns__zone_updatesigs()

Replace the outer for loop with a while loop to emphasize it keeps
processing the first element of diff->tuples, which changes on each
iteration due to tuples being removed from diff->tuples by
move_matching_tuples().

8 years agoRemove redundant assertions
Michał Kępień [Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)] 
Remove redundant assertions

The ENSURE assertion at the end of dns_diff_appendminimal() is not
needed because it is placed right after code which resets *tuplep to
NULL if it is not NULL already.

The INSIST assertion in move_matching_tuples() checks the same pointer
again.

8 years agoLook for the next matching tuple in a separate function
Michał Kępień [Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)] 
Look for the next matching tuple in a separate function

Extract the portion of the do-while loop responsible for finding the
next tuple with the same name and type into a separate function to
improve code clarity.

8 years agoExtract the do-while loop in dns__zone_updatesigs() into a separate function
Michał Kępień [Thu, 10 May 2018 07:43:38 +0000 (09:43 +0200)] 
Extract the do-while loop in dns__zone_updatesigs() into a separate function

The do-while loop in dns__zone_updatesigs() is hard to follow due to
heavy nesting and the 'tuple' variable also being used in the outer for
loop.  Add a comment to explain the purpose of the do-while loop.
Extract it into a separate function to decrease indentation and prevent
using 'tuple' in two different loops.

8 years agoMerge branch 'gitlab-ci-amd64' into 'master'
Ondřej Surý [Thu, 10 May 2018 07:21:08 +0000 (03:21 -0400)] 
Merge branch 'gitlab-ci-amd64' into 'master'

Tag docker images with appropriate architectures

See merge request isc-projects/bind9!254

8 years agoTag docker images with appropriate architectures
Ondřej Surý [Wed, 9 May 2018 20:20:16 +0000 (22:20 +0200)] 
Tag docker images with appropriate architectures

8 years agoMerge branch '135-add-basic-unit-tests-for-update_sigs' into 'master'
Evan Hunt [Thu, 10 May 2018 02:10:47 +0000 (22:10 -0400)] 
Merge branch '135-add-basic-unit-tests-for-update_sigs' into 'master'

Add basic unit tests for update_sigs()

Closes #135

See merge request isc-projects/bind9!112

8 years agoAdd CHANGES entry
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]

8 years agoDefine basic test cases for dns__zone_updatesigs()
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.

8 years agoAdd a framework for dns__zone_updatesigs() unit tests
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.

8 years agoMove find_zone_keys() to lib/dns/zone_p.h
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.

8 years agoMove update_sigs() to lib/dns/zone_p.h
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.

8 years agoMove zonediff_t to lib/dns/zone_p.h
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.

8 years agoAdd lib/dns/zone_p.h
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.

8 years agoAdd a helper function to facilitate preparing dns_diff_t structures
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.

8 years agoRename dns_test_rdata_fromstring() to dns_test_rdatafromstring()
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.

8 years agoRework dns_test_makezone()
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.

8 years agoMerge branch 'use-clang-6.0' into 'master'
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

8 years agoUse clang 6.0 in clang CI jobs
Michał Kępień [Tue, 8 May 2018 08:30:48 +0000 (10:30 +0200)] 
Use clang 6.0 in clang CI jobs

8 years agoMerge branch 'placeholder' into 'master'
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

8 years agoplaceholder
Evan Hunt [Sat, 5 May 2018 00:50:17 +0000 (17:50 -0700)] 
placeholder