]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoMerge branch 'marka-silence-flake8-warning-v9_16' into 'v9_16'
Ondřej Surý [Tue, 12 May 2020 12:09:55 +0000 (12:09 +0000)] 
Merge branch 'marka-silence-flake8-warning-v9_16' into 'v9_16'

Silence: E741 ambiguous variable name 'l'

See merge request isc-projects/bind9!3524

6 years agoSilence: E741 ambiguous variable name 'l'
Mark Andrews [Tue, 12 May 2020 07:41:41 +0000 (17:41 +1000)] 
Silence: E741 ambiguous variable name 'l'

(cherry picked from commit 189d21fb9602a56b1606d514bc6b313d03ef419e)

6 years agoMerge branch 'ondrej/fix-statschannel-setup.sh-failure-v9_16' into 'v9_16'
Ondřej Surý [Tue, 12 May 2020 12:02:33 +0000 (12:02 +0000)] 
Merge branch 'ondrej/fix-statschannel-setup.sh-failure-v9_16' into 'v9_16'

Fix statschannel setup.sh failure (v9_16)

See merge request isc-projects/bind9!3523

6 years agoFix the rsabigexponent setup.sh script to not fail
Ondřej Surý [Tue, 12 May 2020 10:35:53 +0000 (12:35 +0200)] 
Fix the rsabigexponent setup.sh script to not fail

(cherry picked from commit 2dbf68ab30e1cb762358600514814d7fbdd06403)

6 years agoAdd missing manykeys.db.in file that was causing statschannel setup.sh to fail
Ondřej Surý [Tue, 12 May 2020 08:02:41 +0000 (10:02 +0200)] 
Add missing manykeys.db.in file that was causing statschannel setup.sh to fail

(cherry picked from commit e43893fb0c6dbccbddb34c71e91bd55221a40e96)

6 years agoFail immediatelly when clean.sh or setup.sh fails
Ondřej Surý [Tue, 12 May 2020 08:01:35 +0000 (10:01 +0200)] 
Fail immediatelly when clean.sh or setup.sh fails

The `statschannel/ns2/` was missing `manykeys.db.in`, but the test
succeeded even when `setup.sh` (or `clean.sh`) failed to execute.  This
commit makes run.sh to run in stricter mode and fail the test
immediately when `clean.sh` or `setup.sh` fails.

(cherry picked from commit 8b357a35d2478200f7cccd3f357aa8203bf81c0d)

6 years agoMerge branch '25-fix-underlinking-and-overlinking-of-libraries' into 'v9_16'
Ondřej Surý [Mon, 11 May 2020 09:39:24 +0000 (09:39 +0000)] 
Merge branch '25-fix-underlinking-and-overlinking-of-libraries' into 'v9_16'

Resolve "Revise what gets linked where and improve overlinking/underlinking"

See merge request isc-projects/bind9!3442

6 years agoResolve the overlinking of the system libraries
Ondřej Surý [Tue, 28 Apr 2020 09:24:34 +0000 (11:24 +0200)] 
Resolve the overlinking of the system libraries

Originally, every library and binaries got linked to everything, which
creates unnecessary overlinking.  This wasn't as straightforward as it
should be as we still support configuration without libtool for 9.16.

Couple of smaller issues related to include headers and an issue where
sanitizer overload dlopen and dlclose symbols, so we were getting false
negatives in the autoconf test.

6 years agolibns and libirs were underlinked (missing libisc, libdns, libisccfg)
Ondřej Surý [Tue, 28 Apr 2020 09:10:09 +0000 (11:10 +0200)] 
libns and libirs were underlinked (missing libisc, libdns, libisccfg)

Underlinking states for the situation when a binary uses a symbol not provided
by libraries it is directly linked to.  The libns was not linked to libisc and
libdns, and libirs was not linked to libisc, libdns and libisccfg) while using
symbols from these libraries directly.

6 years agoMerge branch 'marka-call-check-categories' into 'v9_16'
Mark Andrews [Mon, 11 May 2020 01:00:01 +0000 (01:00 +0000)] 
Merge branch 'marka-call-check-categories' into 'v9_16'

have CI call util/check-categories.sh

See merge request isc-projects/bind9!3513

6 years agohave CI call util/check-categories.sh
Mark Andrews [Mon, 11 May 2020 00:57:44 +0000 (10:57 +1000)] 
have CI call util/check-categories.sh

6 years agoMerge branch '1817-named-checkzone-s-full-relative-missing-from-usage-v9_16' into...
Mark Andrews [Fri, 8 May 2020 07:22:33 +0000 (07:22 +0000)] 
Merge branch '1817-named-checkzone-s-full-relative-missing-from-usage-v9_16' into 'v9_16'

add [-s (full|relative)] to usage

See merge request isc-projects/bind9!3510

6 years agoadd [-s (full|relative)] to usage
Mark Andrews [Thu, 7 May 2020 06:52:28 +0000 (16:52 +1000)] 
add [-s (full|relative)] to usage

(cherry picked from commit 3f93f3ee1114a6bd0e148b8f7cb699e3e90be387)

6 years agoMerge branch '1812-uninitialized-dscp-v9_16' into 'v9_16'
Evan Hunt [Wed, 6 May 2020 22:38:55 +0000 (22:38 +0000)] 
Merge branch '1812-uninitialized-dscp-v9_16' into 'v9_16'

Unexpected output from named-checkconf

See merge request isc-projects/bind9!3506

6 years agoinitialize sockaddrdscp to prevent spurious output from 'named-checkconf -p'
Evan Hunt [Tue, 5 May 2020 19:48:31 +0000 (12:48 -0700)] 
initialize sockaddrdscp to prevent spurious output from 'named-checkconf -p'

(cherry picked from commit f8d753d452fdbe18a89d9cedab58a51c9b48f113)

6 years agoMerge branch 'michal/prepare-release-notes-for-bind-9.16.3' into 'v9_16'
Michał Kępień [Tue, 5 May 2020 20:32:52 +0000 (20:32 +0000)] 
Merge branch 'michal/prepare-release-notes-for-bind-9.16.3' into 'v9_16'

Prepare release notes for BIND 9.16.3

See merge request isc-projects/bind9!3495

6 years agoAdd release note for GL #1807
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Add release note for GL #1807

6 years agoAdd release note for GL #1695
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Add release note for GL #1695

6 years agoRelease notes: wording and formatting tweaks
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Release notes: wording and formatting tweaks

6 years agoReorder release notes within each section
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Reorder release notes within each section

6 years agoMove release notes to the sections they belong to
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Move release notes to the sections they belong to

6 years agoMove AXFR release note to the correct file
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Move AXFR release note to the correct file

6 years agoTweak and reword recent CHANGES entries
Michał Kępień [Tue, 5 May 2020 20:27:13 +0000 (22:27 +0200)] 
Tweak and reword recent CHANGES entries

6 years agoMerge branch 'michal/fix-server-shutdown-in-run.sh' into 'v9_16'
Michał Kępień [Tue, 5 May 2020 12:18:43 +0000 (12:18 +0000)] 
Merge branch 'michal/fix-server-shutdown-in-run.sh' into 'v9_16'

Fix server shutdown in bin/tests/system/run.sh

See merge request isc-projects/bind9!3500

6 years agoFix server shutdown in bin/tests/system/run.sh
Michał Kępień [Tue, 5 May 2020 11:49:43 +0000 (13:49 +0200)] 
Fix server shutdown in bin/tests/system/run.sh

a4f0281962c8d8f80f6efc04cad550146eec8463 is a flawed backport of
cf5105939c1c1802e69cc63a39e9d71b6e5f67e1 - it retained the original
invocation of bin/tests/system/stop.pl in bin/tests/system/run.sh.  This
results in the former script being called twice for each system test,
which does not cause problems on Unix systems, but triggers false
positives about named instances dying prematurely on Windows.  Fix by
removing the offending invocation of bin/tests/system/stop.pl from
bin/tests/system/run.sh.

6 years agoMerge branch 'wpk/changes-notes-3487' into 'v9_16'
Michał Kępień [Mon, 4 May 2020 10:56:53 +0000 (10:56 +0000)] 
Merge branch 'wpk/changes-notes-3487' into 'v9_16'

CHANGES/relnotes for !3487

See merge request isc-projects/bind9!3494

6 years agoCHANGES/relnotes for \!3487
Witold Kręcicki [Fri, 1 May 2020 07:56:39 +0000 (09:56 +0200)] 
CHANGES/relnotes for \!3487

6 years agoMerge branch '1797-add-release-note-discussing-recvmmsg-support-v9_16' into 'v9_16'
Michał Kępień [Mon, 4 May 2020 10:04:25 +0000 (10:04 +0000)] 
Merge branch '1797-add-release-note-discussing-recvmmsg-support-v9_16' into 'v9_16'

[v9_16] Add release note discussing recvmmsg() support

See merge request isc-projects/bind9!3493

6 years agoAdd release note discussing recvmmsg() support
Michał Kępień [Mon, 4 May 2020 10:00:40 +0000 (12:00 +0200)] 
Add release note discussing recvmmsg() support

(cherry picked from commit 84dc6d86cbb8a3d97893b5b9c0431ae16f48fe5c)

6 years agoMerge branch 'michal/1674-add-release-note' into 'v9_16'
Michał Kępień [Mon, 4 May 2020 09:06:31 +0000 (09:06 +0000)] 
Merge branch 'michal/1674-add-release-note' into 'v9_16'

Add release note for GL #1674

See merge request isc-projects/bind9!3490

6 years agoAdd release note for GL #1674
Michał Kępień [Mon, 4 May 2020 09:00:23 +0000 (11:00 +0200)] 
Add release note for GL #1674

6 years agoMerge branch '1807-checkconf-error-v9_16' into 'v9_16'
Evan Hunt [Sat, 2 May 2020 01:01:56 +0000 (01:01 +0000)] 
Merge branch '1807-checkconf-error-v9_16' into 'v9_16'

named-checkconf -z could exit with an incorrect status

See merge request isc-projects/bind9!3488

6 years agonamed-checkconf -z could exit with an incorrect staatus
Evan Hunt [Thu, 30 Apr 2020 20:17:37 +0000 (13:17 -0700)] 
named-checkconf -z could exit with an incorrect staatus

the CHECK() macro resets result, so an error code from an earlier
view could be erased if the last view loaded had no errors.

(cherry picked from commit 7e736602062a4f96b5ff5e89cd998db861362b03)

6 years agoMerge branch '1713-use-default-buffer-sizes-v9_16' into 'v9_16'
Witold Krecicki [Fri, 1 May 2020 16:56:33 +0000 (16:56 +0000)] 
Merge branch '1713-use-default-buffer-sizes-v9_16' into 'v9_16'

Don't set UDP recv/send buffer sizes - use system defaults (unless explicitly defined)

See merge request isc-projects/bind9!3487

6 years agoDon't set UDP recv/send buffer sizes - use system defaults (unless explicitly defined)
Witold Kręcicki [Wed, 29 Apr 2020 22:25:09 +0000 (00:25 +0200)] 
Don't set UDP recv/send buffer sizes - use system defaults (unless explicitly defined)

(cherry picked from commit fa02f6438b5a07bbd5f979747b2890826461e870)

6 years agoMerge branch 'ondrej/fix-SO_REUSEPORT-usage-on-FreeBSD-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:51:11 +0000 (14:51 +0000)] 
Merge branch 'ondrej/fix-SO_REUSEPORT-usage-on-FreeBSD-v9_16' into 'v9_16'

Fix SO_REUSEPORT usage on FreeBSD (v9.16)

See merge request isc-projects/bind9!3486

6 years agoAdd CHANGES note for GL !3365
Ondřej Surý [Fri, 1 May 2020 12:26:41 +0000 (14:26 +0200)] 
Add CHANGES note for GL !3365

(cherry picked from commit 23a653dd926fb5e55645ed679703a7bc5d03186e)

6 years agoUse SO_REUSEPORT only on Linux, use SO_REUSEPORT_LB on FreeBSD
Ondřej Surý [Wed, 15 Apr 2020 05:33:44 +0000 (07:33 +0200)] 
Use SO_REUSEPORT only on Linux, use SO_REUSEPORT_LB on FreeBSD

The SO_REUSEPORT socket option on Linux means something else on BSD
based systems.  On FreeBSD there's 1:1 option SO_REUSEPORT_LB, so we can
use that.

(cherry picked from commit 09ba47b0676f14af47b71364e1fe52c298b4079a)

6 years agoMerge branch '1795-make-dnstap-work-reliably-with-netmgr-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:32:12 +0000 (14:32 +0000)] 
Merge branch '1795-make-dnstap-work-reliably-with-netmgr-v9_16' into 'v9_16'

Resolve "Some dnstap data may not be logged in BIND 9.15.6+"

See merge request isc-projects/bind9!3485

6 years agoAdd CHANGES entry
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Add CHANGES entry

(cherry picked from commit 47c769e47514427501170a1eb2d24677d25e0c67)

6 years agoAdd a release note
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Add a release note

(cherry picked from commit 4a5c1c7bfe65c6e1c6b3f424af28ff7882976d30)

6 years agoMake dnstap work reliably with netmgr
Michał Kępień [Mon, 27 Apr 2020 05:46:01 +0000 (07:46 +0200)] 
Make dnstap work reliably with netmgr

The introduction of netmgr doubled the number of threads from which
dnstap data may be logged: previously, it could only happen from within
taskmgr worker threads; with netmgr, it can happen both from taskmgr
worker threads and from network threads.  Since the argument passed to
fstrm_iothr_options_set_num_input_queues() was not updated to reflect
this change, some calls to fstrm_iothr_get_input_queue() can now return
NULL, effectively preventing some dnstap data from being logged.
Whether this bug is triggered or not depends on thread scheduling order
and packet distribution between network threads, but will almost
certainly be triggered on any recursive resolver sooner or later.  Fix
by requesting the correct number of dnstap input queues to be allocated.

(cherry picked from commit 77dc091855fa106ecb3197618f40561c09b9976c)

6 years agoMerge branch '1763-ossl-eddsa-engine-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:27:12 +0000 (14:27 +0000)] 
Merge branch '1763-ossl-eddsa-engine-v9_16' into 'v9_16'

Add engine support to OpenSSL EdDSA implementation (v9.16)

See merge request isc-projects/bind9!3483

6 years agoAdd release notes for #1763
Ondřej Surý [Fri, 1 May 2020 10:51:43 +0000 (12:51 +0200)] 
Add release notes for #1763

(cherry picked from commit 3c5cdc3f245bdd9126c50efb60bd38c558faa791)

6 years agoAdd CHANGES note for #1763
Ondřej Surý [Fri, 1 May 2020 10:50:05 +0000 (12:50 +0200)] 
Add CHANGES note for #1763

(cherry picked from commit 3422c496aeb312f7d2c5cb8c2bc896e443c14789)

6 years agoAdd engine support to OpenSSL EdDSA implementation.
Aaron Thompson [Wed, 25 Mar 2020 21:10:57 +0000 (21:10 +0000)] 
Add engine support to OpenSSL EdDSA implementation.

(cherry picked from commit 6a9f20d031bb0b0d8e275b132d5520e7b1d7f8f5)

6 years agoUse OpenSSL raw key functions for EdDSA keys.
Aaron Thompson [Fri, 10 Apr 2020 00:02:35 +0000 (00:02 +0000)] 
Use OpenSSL raw key functions for EdDSA keys.

(cherry picked from commit f9685b29f9bff92793601f0aa5a0b14d1360f8e6)

6 years agoMerge branch '1534-add-ecdsa-openssl-pkcs11-engine-support-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 14:25:17 +0000 (14:25 +0000)] 
Merge branch '1534-add-ecdsa-openssl-pkcs11-engine-support-v9_16' into 'v9_16'

Add engine support to OpenSSL ECDSA implementation (v9.16)

See merge request isc-projects/bind9!3484

6 years agoAdd release note for GL #1534
Ondřej Surý [Fri, 1 May 2020 09:03:34 +0000 (11:03 +0200)] 
Add release note for GL #1534

(cherry picked from commit 80d51223c382690c240c985a1b632ace81cf614f)

6 years agoAdd CHANGES note for GL #1534
Ondřej Surý [Fri, 1 May 2020 08:59:02 +0000 (10:59 +0200)] 
Add CHANGES note for GL #1534

(cherry picked from commit dde438dac716c40819fee427db3ea7eee44f2c95)

6 years agoSimplify error handling
Ondřej Surý [Fri, 7 Feb 2020 13:21:29 +0000 (14:21 +0100)] 
Simplify error handling

(cherry picked from commit 064d8b7a6db18a9c9c9db1cdf99d5914ebfbffab)

6 years agoAdd initial support for ECDSA keys via OpenSSL PKCS#11 engine
Ondřej Surý [Fri, 7 Feb 2020 13:20:54 +0000 (14:20 +0100)] 
Add initial support for ECDSA keys via OpenSSL PKCS#11 engine

(cherry picked from commit aff61535c265617fc770b22a1cb9af9d9e0a29b5)

6 years agoMerge branch 'ondrej/fix-system-tests-on-openbsd-v9.16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 11:40:21 +0000 (11:40 +0000)] 
Merge branch 'ondrej/fix-system-tests-on-openbsd-v9.16' into 'v9_16'

Fix system tests on openbsd v9.16

See merge request isc-projects/bind9!3478

6 years agoRename start() and stop() to start_server() and stop_server()
Ondřej Surý [Fri, 1 May 2020 08:14:21 +0000 (10:14 +0200)] 
Rename start() and stop() to start_server() and stop_server()

On OpenBSD, there's non-POSIX alias from stop to kill that breaks
the conf.sh.common script.

6 years agoChange the 'date -R' to sort-of iso-8601 emulated time
Ondřej Surý [Fri, 1 May 2020 08:04:38 +0000 (10:04 +0200)] 
Change the 'date -R' to sort-of iso-8601 emulated time

6 years agoMerge branch '1797-libuv-1-37-requires-uv_init_ex-to-be-used-for-mmsg-v9_16' into...
Ondřej Surý [Fri, 1 May 2020 10:45:46 +0000 (10:45 +0000)] 
Merge branch '1797-libuv-1-37-requires-uv_init_ex-to-be-used-for-mmsg-v9_16' into 'v9_16'

Resolve "libuv >= 1.37 requires uv_udp_init_ex() to be used for mmsg"

See merge request isc-projects/bind9!3474

6 years agoCHANGES note
Witold Kręcicki [Thu, 30 Apr 2020 08:23:34 +0000 (10:23 +0200)] 
CHANGES note

6 years agoDon't free udp recv buffer if UV_UDP_MMSG_CHUNK is set
Witold Kręcicki [Wed, 29 Apr 2020 13:19:32 +0000 (15:19 +0200)] 
Don't free udp recv buffer if UV_UDP_MMSG_CHUNK is set

(cherry picked from commit 83049ceabf14679583dbfa7d5ee84587db8a0463)

6 years agoUse UV_UDP_RECVMMSG to enable mmsg support in libuv if available
Ondřej Surý [Mon, 27 Apr 2020 16:57:07 +0000 (18:57 +0200)] 
Use UV_UDP_RECVMMSG to enable mmsg support in libuv if available

(cherry picked from commit d5356a40ff17aca187312ac462da1b4e6a3c2feb)

6 years agoMerge branch '1648-native-pkcs11-eddsa-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 08:32:45 +0000 (08:32 +0000)] 
Merge branch '1648-native-pkcs11-eddsa-v9_16' into 'v9_16'

Resolve "Fix PKCS#11-based EdDSA support"

See merge request isc-projects/bind9!3472

6 years agoMake the cleanpkcs11.sh more universal across branches
Ondřej Surý [Fri, 1 May 2020 07:02:54 +0000 (09:02 +0200)] 
Make the cleanpkcs11.sh more universal across branches

6 years agoFix another the start_fail -> start_servers_failed typo
Ondřej Surý [Fri, 1 May 2020 06:04:20 +0000 (08:04 +0200)] 
Fix another the start_fail -> start_servers_failed typo

6 years agoFixup the start_fail -> start_servers_failed typo
Ondřej Surý [Thu, 30 Apr 2020 16:35:25 +0000 (18:35 +0200)] 
Fixup the start_fail -> start_servers_failed typo

(cherry picked from commit 0313d2950a95a56414543488cedb9daa83d9641e)

6 years agoAdd release notes
Ondřej Surý [Mon, 20 Apr 2020 10:05:49 +0000 (12:05 +0200)] 
Add release notes

(cherry picked from commit e69d34a4546e0cb2b42c20120c25a584111ab578)

6 years agoAdd CHANGES
Ondřej Surý [Mon, 20 Apr 2020 10:02:55 +0000 (12:02 +0200)] 
Add CHANGES

(cherry picked from commit 84fffbdb4c582f2aaf079f7d8bd5611f8f7d9e12)

6 years agoFix the check for non-operational algs 15 and 16 in PKCS#11
Ondřej Surý [Thu, 30 Apr 2020 13:26:27 +0000 (15:26 +0200)] 
Fix the check for non-operational algs 15 and 16 in PKCS#11

(cherry picked from commit 57c39ddbe3ead43f86eb14f23a7cc2662b93b91c)

6 years agoFail running run.sh when clean.sh or setup.sh fails
Ondřej Surý [Thu, 30 Apr 2020 12:53:55 +0000 (14:53 +0200)] 
Fail running run.sh when clean.sh or setup.sh fails

(cherry picked from commit 101672f6648d22762a32fa3d1f48fb081be7ba37)

6 years agoRefactor the pkcs11 to test for individual algorithms
Ondřej Surý [Thu, 30 Apr 2020 12:53:40 +0000 (14:53 +0200)] 
Refactor the pkcs11 to test for individual algorithms

(cherry picked from commit a6bdb9639a31cb9237912e033d06cf3f9da4485c)

6 years agoUpdate EdDSA implementation to PKCS#11 v3.0.
Aaron Thompson [Sun, 29 Mar 2020 06:04:08 +0000 (06:04 +0000)] 
Update EdDSA implementation to PKCS#11 v3.0.

Per Current Mechanisms 2.3.5, the curve name is DER-encoded in the
EC_PARAMS attribute, and the public key value is DER-encoded in the
EC_POINT attribute.

(cherry picked from commit 2e6b7a56cc6261582811fc2b14d2160303b4d039)

6 years agoFix EdDSA key sizes (key_size is in bits).
Aaron Thompson [Wed, 25 Mar 2020 21:03:41 +0000 (21:03 +0000)] 
Fix EdDSA key sizes (key_size is in bits).

(cherry picked from commit 9b87fe10518ea0b0b5d254d61ee95a8db4360f49)

6 years agoAdd EdDSA algorithms back to dnssec-keyfromlabel help text.
Aaron Thompson [Sun, 29 Mar 2020 08:54:43 +0000 (08:54 +0000)] 
Add EdDSA algorithms back to dnssec-keyfromlabel help text.

Regressed in 45afdb267253e7178267d696b8b4488ec1d67d47.

(cherry picked from commit 496957718919cf3090f8686305d2b956e20eb7ec)

6 years agoMerge branch '1763-pkcs11-code-cleanups-v9_16' into 'v9_16'
Ondřej Surý [Fri, 1 May 2020 05:57:17 +0000 (05:57 +0000)] 
Merge branch '1763-pkcs11-code-cleanups-v9_16' into 'v9_16'

Resolve "Implement and improve the PKCS#11 code"

See merge request isc-projects/bind9!3471

6 years agoAdd CHANGES
Ondřej Surý [Mon, 20 Apr 2020 09:48:45 +0000 (11:48 +0200)] 
Add CHANGES

(cherry picked from commit 48473d464f24dd7d57e6ce02874aaf6f5c933ff8)

6 years agoUse switch instead of if when evaluating curves
Ondřej Surý [Mon, 20 Apr 2020 08:30:54 +0000 (10:30 +0200)] 
Use switch instead of if when evaluating curves

Previously, the code would do:

    REQUIRE(alg == CURVE1 || alg == CURVE2);

    [...]

    if (alg == CURVE1) { /* code for CURVE1 */ }
    else { /* code for CURVE2 */ }

This approach is less extensible and also more prone to errors in case
the initial REQUIRE() is forgotten.  The code has been refactored to
use:

    REQUIRE(alg == CURVE1 || alg == CURVE2);

    [...]

    switch (alg) {
    case CURVE1: /* code for CURVE1 */; break;
    case CURVE2: /* code for CURVE2 */; break;
    default: INSIST(0);
    }

(cherry picked from commit cf30e7d0d1a0ff16569e76f210efbcefeface83e)

6 years agoRefactor the code using the pk11 ECC constants.
Ondřej Surý [Mon, 20 Apr 2020 08:31:15 +0000 (10:31 +0200)] 
Refactor the code using the pk11 ECC constants.

The pk11/constants.h header contained static CK_BYTE arrays and
we had to use #defines to pull only those we need.  This commit
changes the constants to only define byte arrays with the content
and either use them directly or define the CK_BYTE arrays locally
where used.

(cherry picked from commit da38bd0e1d9739990fcbd582369698e81968ca62)

6 years agoOnly print warning when PKCS#11 dnssec-keygen fails from Edwards curves
Ondřej Surý [Fri, 17 Apr 2020 08:58:46 +0000 (10:58 +0200)] 
Only print warning when PKCS#11 dnssec-keygen fails from Edwards curves

(cherry picked from commit 9d979d7cd60122486c48a8f750af830710807595)

6 years agoFix a segfault when a PKCS#11 token is not found.
Aaron Thompson [Fri, 3 Apr 2020 05:42:26 +0000 (05:42 +0000)] 
Fix a segfault when a PKCS#11 token is not found.

(cherry picked from commit 541d7bafe652c03b14cd9844bfeea371de161e5b)

6 years agoFix bad syntax in pkcs11eddsa_link.c.
Aaron Thompson [Sun, 29 Mar 2020 22:08:13 +0000 (22:08 +0000)] 
Fix bad syntax in pkcs11eddsa_link.c.

Introduced in 994e656977b88516d76519c437b623ddb32b0769.

(cherry picked from commit 46cae09023ca52a200d3d5cc304ebdd1dedde4b5)

6 years agoUpdate to PKCS#11 v3.0 EdDSA macros.
Aaron Thompson [Sun, 29 Mar 2020 21:41:00 +0000 (21:41 +0000)] 
Update to PKCS#11 v3.0 EdDSA macros.

(cherry picked from commit 3e685fe01a4cb92c9caef5fc766d28eaf43f07bc)

6 years agoFix compiler warnings about unused pk11 constants.
Aaron Thompson [Tue, 31 Mar 2020 08:00:30 +0000 (08:00 +0000)] 
Fix compiler warnings about unused pk11 constants.

(cherry picked from commit 2ef379d9110f16f0aeb7fef85950ff304ff857a8)

6 years agoRemove remaining PKCS#11 DH references.
Aaron Thompson [Sat, 28 Mar 2020 21:14:46 +0000 (21:14 +0000)] 
Remove remaining PKCS#11 DH references.

Missed in 0a73c9f13799aec6bfe14beec908d81240e3326f and 8efd394c80449dc7a7e6cbe171d8f42ff957ebf3.

(cherry picked from commit d28c7dadbba071e79a85da7d85d6dd751c4a68b5)

6 years agoRemove unnecessary forward declarations.
Aaron Thompson [Tue, 31 Mar 2020 02:26:21 +0000 (02:26 +0000)] 
Remove unnecessary forward declarations.

(cherry picked from commit 6a6485a531adb590570263ae5d2bac7164161088)

6 years agoFinish refactoring pkcs11eddsa_link.c after isc_buffer_allocate change.
Aaron Thompson [Mon, 30 Mar 2020 00:36:27 +0000 (00:36 +0000)] 
Finish refactoring pkcs11eddsa_link.c after isc_buffer_allocate change.

Left over after c73e5866c479c71b2fb61e882c249cc2c3de3af0.

(cherry picked from commit 7744aece03b8eeefcdf53fb84af2f70484a10b7e)

6 years agoRemove unreachable label in pkcs11eddsa_link.c.
Aaron Thompson [Mon, 30 Mar 2020 00:20:21 +0000 (00:20 +0000)] 
Remove unreachable label in pkcs11eddsa_link.c.

Missed in ae83801e2b8e87260dea59a445f3c41bb5eb9944.

(cherry picked from commit b4a7bfd55e6d7579194816be78800a19e4f58cd6)

6 years agoFinish refactoring after the removal of --with-ecdsa and --with-eddsa.
Aaron Thompson [Sun, 29 Mar 2020 05:50:25 +0000 (05:50 +0000)] 
Finish refactoring after the removal of --with-ecdsa and --with-eddsa.

Missed in c3b8130fe8267185e786e9c12527df7c53b37589.

(cherry picked from commit 7fc4f926fb26c3f3408bf435a3ae7a934acf26dd)

6 years agoRemove old comment.
Aaron Thompson [Mon, 30 Mar 2020 01:30:55 +0000 (01:30 +0000)] 
Remove old comment.

Missed in 6aae193ded53d7ea7b2686aca1d33b264103be5c.

(cherry picked from commit 48e0c0bc4a7761b1353ff0ef77f314432787dab7)

6 years agoFinish replacing OP_EC with OP_ECDSA/OP_EDDSA.
Aaron Thompson [Sun, 29 Mar 2020 21:47:09 +0000 (21:47 +0000)] 
Finish replacing OP_EC with OP_ECDSA/OP_EDDSA.

Missed in c3b8130fe8267185e786e9c12527df7c53b37589.

(cherry picked from commit bb158e8a4c7ce2c0d84faf7dc17308973a55c11d)

6 years agoFix incorrect PKCS11 macro in dnssec-revoke.
Aaron Thompson [Sat, 28 Mar 2020 18:51:20 +0000 (18:51 +0000)] 
Fix incorrect PKCS11 macro in dnssec-revoke.

Missed in c3b8130fe8267185e786e9c12527df7c53b37589.

(cherry picked from commit b217052081d6394bc3df62b8b9ce20fe6e35e592)

6 years agoMerge branch '1695-addzone-system-tests-failing-in-mac-os-x-v9_16' into 'v9_16'
Mark Andrews [Thu, 30 Apr 2020 23:56:09 +0000 (23:56 +0000)] 
Merge branch '1695-addzone-system-tests-failing-in-mac-os-x-v9_16' into 'v9_16'

Resolve "addzone system tests failing in Mac OS X"

See merge request isc-projects/bind9!3469

6 years agoAdd CHANGES entry
Mark Andrews [Mon, 6 Apr 2020 00:33:02 +0000 (10:33 +1000)] 
Add CHANGES entry

(cherry picked from commit d63479a48d4e8e84aec9ea00f6d167e0c990a92f)

6 years agoMimic nzf_append from bin/named/server.c
Mark Andrews [Mon, 23 Mar 2020 02:27:37 +0000 (13:27 +1100)] 
Mimic nzf_append from bin/named/server.c

nzf_append is conditionally compiled and this is intended to
catch error introduced by changes to the called functions on all
systems before the changes are run through the CI.

(cherry picked from commit a66c6fc8831aa93a6a20a3e1422486332d016f1c)

6 years agoAdd jobs for 'configure --with{out}-lmdb' to the GitLab CI
Mark Andrews [Mon, 23 Mar 2020 01:04:30 +0000 (12:04 +1100)] 
Add jobs for 'configure --with{out}-lmdb' to the GitLab CI

We missed a case where LMDB was not installed/used in the build
and that broke system tests on such systems.

(cherry picked from commit 060b56dc70f2001fef21ab0eb954663feb62d4d0)

6 years agoAdd more special zones to addzone restart test.
Mark Andrews [Mon, 23 Mar 2020 00:22:48 +0000 (11:22 +1100)] 
Add more special zones to addzone restart test.

Test zones with various escape sequences and filesystem seperator
characters.
* escaped double quote (\")
* escaped escape (\\)
* escaped decimal byte value (\032)
* slash seperator (/)

(cherry picked from commit 5ab9b5b1e6544d74df3edb6e37b0f3b5797b74c9)

6 years agoEscape double quote when printing quoted string.
Mark Andrews [Sun, 22 Mar 2020 23:28:33 +0000 (10:28 +1100)] 
Escape double quote when printing quoted string.

When we were printing quoted string, the double quotes where unescaped
leading to prematurely ending the quoted string.

(cherry picked from commit b02081d423dd9f0f038112a6fed32c15dfce248f)

6 years agoMerge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_16' into 'v9_16'
Mark Andrews [Thu, 30 Apr 2020 08:50:31 +0000 (08:50 +0000)] 
Merge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_16' into 'v9_16'

Incorrect job in needs, gcc:asan -> clang:asan

See merge request isc-projects/bind9!3462

6 years agoIncorrect job in needs, gcc:asan -> clang:asan
Mark Andrews [Thu, 30 Apr 2020 07:12:00 +0000 (17:12 +1000)] 
Incorrect job in needs, gcc:asan -> clang:asan

(cherry picked from commit 0adf9562fb687817c99d734030ded8521c78eaef)

6 years agoMerge branch '1804-util-parse_tsan-py-is-not-pylint-clean-v9_16' into 'v9_16'
Mark Andrews [Thu, 30 Apr 2020 08:43:58 +0000 (08:43 +0000)] 
Merge branch '1804-util-parse_tsan-py-is-not-pylint-clean-v9_16' into 'v9_16'

pylint cleanups

See merge request isc-projects/bind9!3459

6 years agopylint cleanups
Mark Andrews [Wed, 29 Apr 2020 04:33:10 +0000 (14:33 +1000)] 
pylint cleanups

(cherry picked from commit d7618f69541d69a43ddf6409493b3b3bd937b434)

6 years agoMerge branch '1783-ax_check_compile_flag-fno-delete-null-pointer-checks-does-not...
Ondřej Surý [Wed, 29 Apr 2020 16:33:31 +0000 (16:33 +0000)] 
Merge branch '1783-ax_check_compile_flag-fno-delete-null-pointer-checks-does-not-fail-for-clang-v9_16' into 'v9_16'

Force test for -fno-delete-null-pointer-checks to fail

See merge request isc-projects/bind9!3453

6 years agoForce test for -fno-delete-null-pointer-checks to fail
Mark Andrews [Wed, 22 Apr 2020 03:02:18 +0000 (13:02 +1000)] 
Force test for -fno-delete-null-pointer-checks to fail

(cherry picked from commit 82ab846f133ea2b237472eb0dd78d000fea19d9d)