]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agopylint cleanups
Mark Andrews [Wed, 29 Apr 2020 04:33:10 +0000 (14:33 +1000)] 
pylint cleanups

6 years agoMerge branch 'placeholder' into 'master'
Evan Hunt [Thu, 30 Apr 2020 06:25:30 +0000 (06:25 +0000)] 
Merge branch 'placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!3455

6 years agoplaceholder
Evan Hunt [Thu, 30 Apr 2020 06:24:40 +0000 (23:24 -0700)] 
placeholder

6 years agoMerge branch '1777-update-the-build-instructions-for-automake' into 'master'
Mark Andrews [Thu, 30 Apr 2020 01:44:07 +0000 (01:44 +0000)] 
Merge branch '1777-update-the-build-instructions-for-automake' into 'master'

Resolve "Update the build instructions for automake"

Closes #1777

See merge request isc-projects/bind9!3428

6 years agoupdate CHANGES entry
Mark Andrews [Mon, 27 Apr 2020 05:03:23 +0000 (15:03 +1000)] 
update CHANGES entry

6 years agoupdate release note
Mark Andrews [Mon, 27 Apr 2020 05:01:41 +0000 (15:01 +1000)] 
update release note

6 years agoAdd requirements to build from the repository
Mark Andrews [Fri, 24 Apr 2020 02:28:59 +0000 (12:28 +1000)] 
Add requirements to build from the repository

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

Resolve "AX_CHECK_COMPILE_FLAG -fno-delete-null-pointer-checks does not fail for clang"

Closes #1783

See merge request isc-projects/bind9!3413

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

6 years agoMerge branch 'ondrej/fix-asan-symbolizer' into 'master'
Ondřej Surý [Wed, 29 Apr 2020 15:01:32 +0000 (15:01 +0000)] 
Merge branch 'ondrej/fix-asan-symbolizer' into 'master'

Fix the ASAN symbolizer

See merge request isc-projects/bind9!3450

6 years agoFix the ASAN symbolizer
Ondřej Surý [Wed, 29 Apr 2020 13:26:36 +0000 (15:26 +0200)] 
Fix the ASAN symbolizer

6 years agoMerge branch '725-prepare-system-tests-for-pytest' into 'master'
Ondřej Surý [Wed, 29 Apr 2020 09:51:30 +0000 (09:51 +0000)] 
Merge branch '725-prepare-system-tests-for-pytest' into 'master'

Add a pytest runner to run.sh

Closes #725

See merge request isc-projects/bind9!3445

6 years agoAdd a pytest runner to run.sh
Ondřej Surý [Fri, 27 Mar 2020 12:23:24 +0000 (13:23 +0100)] 
Add a pytest runner to run.sh

The system tests currently uses patchwork of shell scripts which doesn't
offer proper error handling.

This commit introduced option to write new tests in pytest framework
that also allows easier manipulation of DNS traffic (using dnspython),
native XML and JSON manipulation and proper error reporting.

6 years agoMerge branch '1090-fix-unable-to-set-effective-uid-to-0-fixup' into 'master'
Ondřej Surý [Tue, 28 Apr 2020 16:52:21 +0000 (16:52 +0000)] 
Merge branch '1090-fix-unable-to-set-effective-uid-to-0-fixup' into 'master'

Hide setperms when not in use

Closes #1090

See merge request isc-projects/bind9!3443

6 years agoHide setperms when not in use
Ondřej Surý [Tue, 28 Apr 2020 15:33:57 +0000 (17:33 +0200)] 
Hide setperms when not in use

6 years agoMerge branch '1090-fix-unable-to-set-effective-uid-to-0' into 'master'
Ondřej Surý [Tue, 28 Apr 2020 14:25:55 +0000 (14:25 +0000)] 
Merge branch '1090-fix-unable-to-set-effective-uid-to-0' into 'master'

Resolve "BIND 9.14: unable to set effective uid to 0"

Closes #1090 and #1042

See merge request isc-projects/bind9!3432

6 years agoAdd release notes for GL #1042, #1090
Ondřej Surý [Mon, 27 Apr 2020 14:27:05 +0000 (16:27 +0200)] 
Add release notes for GL #1042, #1090

6 years agoAdd CHANGES for #1042, #1090
Ondřej Surý [Mon, 27 Apr 2020 14:23:07 +0000 (16:23 +0200)] 
Add CHANGES for #1042, #1090

6 years agoPropagate first_time to named_os_openfile in generate_session_key.
Mark Andrews [Mon, 27 Apr 2020 22:13:02 +0000 (08:13 +1000)] 
Propagate first_time to named_os_openfile in generate_session_key.

named_os_openfile was being called with switch_user set to true
unconditionally leading to log messages about being unable to
switch user identity from named when regenerating the key.

6 years agoDon't change effective uid when we already dropped privileges
Ondřej Surý [Mon, 27 Apr 2020 13:58:45 +0000 (15:58 +0200)] 
Don't change effective uid when we already dropped privileges

When running on Linux and system capabilities are available, named will
drop the extra capabilities before loading the configuration.  This led
to spurious warnings from `seteuid()` because named already dropped
CAP_SETUID and CAP_GETUID capabilities.

The fix removes setting the effective uid/gid when capabilities are
available, and adds a check that we are running under the user we were
requested to run.

6 years agoMerge branch '1780-fix-system-tests-failing-with-automake' into 'master'
Ondřej Surý [Mon, 27 Apr 2020 14:27:25 +0000 (14:27 +0000)] 
Merge branch '1780-fix-system-tests-failing-with-automake' into 'master'

Properly fail the GitLab CI system test job when any system test fails

Closes #1780

See merge request isc-projects/bind9!3414

6 years agoFix the noinst_LTLIBRARIES -> check_LTLIBRARIES in libisc and libdns unit tests
Ondřej Surý [Mon, 27 Apr 2020 13:18:31 +0000 (15:18 +0200)] 
Fix the noinst_LTLIBRARIES -> check_LTLIBRARIES in libisc and libdns unit tests

6 years agoRestore behaviour of "make test" and "make unit"
Evan Hunt [Thu, 23 Apr 2020 23:22:21 +0000 (16:22 -0700)] 
Restore behaviour of "make test" and "make unit"

Add recursive "test" and "unit" rules, which execute "make check"
in specific directories - "make test" runs the system tests, and
"make unit" runs the unit tests.

6 years agoDisable pylint: 'Constant name dname doesn't conform to UPPER_CASE naming style ...
Ondřej Surý [Mon, 27 Apr 2020 12:15:10 +0000 (14:15 +0200)] 
Disable pylint: 'Constant name dname doesn't conform to UPPER_CASE naming style (invalid-name)'

6 years agoUse absolute path to PYTHON and PERL, so test -x works properly in system tests
Ondřej Surý [Mon, 27 Apr 2020 10:23:44 +0000 (12:23 +0200)] 
Use absolute path to PYTHON and PERL, so test -x works properly in system tests

6 years agoStore the output from yamlget.py into intermediate files for easier debugging
Ondřej Surý [Mon, 27 Apr 2020 09:43:22 +0000 (11:43 +0200)] 
Store the output from yamlget.py into intermediate files for easier debugging

6 years agoRefactor the script that gets/sets the ports for system tests
Ondřej Surý [Mon, 27 Apr 2020 08:47:08 +0000 (10:47 +0200)] 
Refactor the script that gets/sets the ports for system tests

The current script used ephemeral port range which clashed with the
ports used by the tools (dig, ...), and the range always started with
the first port and there was 100 ports allocated for each system test.

In this commit, the first port has been randomized, the get_ports.sh
script outputs the variables (the output has to be eval'ed from run.sh)
and there's less waste in the port range.

6 years agoRun recheck in case some system test fails
Ondřej Surý [Fri, 24 Apr 2020 15:00:39 +0000 (17:00 +0200)] 
Run recheck in case some system test fails

6 years agoColorize the test-driver output by default
Ondřej Surý [Fri, 24 Apr 2020 13:37:36 +0000 (15:37 +0200)] 
Colorize the test-driver output by default

6 years agoImprove the LOG_DRIVER and LOG_COMPILER for the system tests
Ondřej Surý [Fri, 24 Apr 2020 13:29:54 +0000 (15:29 +0200)] 
Improve the LOG_DRIVER and LOG_COMPILER for the system tests

There are several improvements over the default/previous behaviour of
the test log driver and log compiler:

 * The system-test-driver.sh was dropped (it was used incorrectly)
 * The run.sh script is now both log compiler and cli script to run
   individual tests
 * The custom-test-driver was added as extended version of the automake
   test-driver with capability to tee the test output to stdout when
   `--verbose yes` is passed to it (you can use LOG_DRIVER_FLAGS to
   add the option by default)
 * Makefile.am has been extended to honor V=1 for the system tests
   test-driver (e.g. V=1 adds `--verbose yes` to AM_LOG_DRIVER_FLAGS)

6 years agoRemove the requirement for GNU getopt and parse long options using getopts
Ondřej Surý [Fri, 24 Apr 2020 11:34:40 +0000 (13:34 +0200)] 
Remove the requirement for GNU getopt and parse long options using getopts

6 years agoEnsure fstrm_capture is looked for
Michał Kępień [Thu, 23 Apr 2020 06:34:11 +0000 (08:34 +0200)] 
Ensure fstrm_capture is looked for

fstrm_capture is not an essential utility, but its corresponding
Makefile token needs to substituted even if it is not found in PATH or
else the "dnstap" system test will consistently fail.

6 years agoBuild wire_test
Michał Kępień [Thu, 23 Apr 2020 06:07:07 +0000 (08:07 +0200)] 
Build wire_test

The bin/tests/wire_test helper program is currently not included in any
Makefile.am file.  Move its source code to bin/tests/system and build it
along other helper tools when dnstap support is requested as the
"dnstap" system test needs this tool in order to pass.

6 years agoSilence PyYAML warning
Michał Kępień [Thu, 23 Apr 2020 06:07:07 +0000 (08:07 +0200)] 
Silence PyYAML warning

Make yaml.load_all() use yaml.SafeLoader to address a warning currently
emitted when bin/tests/system/dnstap/ydump.py is run:

    ydump.py:28: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
      for l in yaml.load_all(f.stdout):

6 years agoUse $TOP_SRCDIR instead of $TOP of calling prepare-softhsm2 script
Ondřej Surý [Wed, 22 Apr 2020 13:39:45 +0000 (15:39 +0200)] 
Use $TOP_SRCDIR instead of $TOP of calling prepare-softhsm2 script

6 years agoUse $TOP_BUILDDIR instead of $TOP of checking config.h values
Ondřej Surý [Wed, 22 Apr 2020 13:17:45 +0000 (15:17 +0200)] 
Use $TOP_BUILDDIR instead of $TOP of checking config.h values

6 years agoProperly fail the GitLab CI system test job when any system test fails
Ondřej Surý [Wed, 22 Apr 2020 12:58:55 +0000 (14:58 +0200)] 
Properly fail the GitLab CI system test job when any system test fails

6 years agoMerge branch '1758-cleanup-libirs' into 'master'
Ondřej Surý [Fri, 24 Apr 2020 12:02:11 +0000 (12:02 +0000)] 
Merge branch '1758-cleanup-libirs' into 'master'

Cleanup libirs APIs and slim down the library to just irs_resconf

Closes #1758

See merge request isc-projects/bind9!3416

6 years agoAdd CHANGES note for GL #1758
Ondřej Surý [Thu, 23 Apr 2020 09:54:54 +0000 (11:54 +0200)] 
Add CHANGES note for GL #1758

6 years agoCleanup libirs APIs and slim down the library to just irs_resconf
Ondřej Surý [Wed, 22 Apr 2020 22:13:29 +0000 (00:13 +0200)] 
Cleanup libirs APIs and slim down the library to just irs_resconf

The libirs contained own re-implementations of the getaddrinfo,
getnameinfo and gai_strerror + irs_context and irs_dnsconf API that was
unused anywhere in the BIND 9.

Keep just the irs_resonf API that is being extensively used to parse
/etc/resolv.conf by several of BIND 9 tools.

6 years agoMerge branch '178-remove-unused-dns-ecdb' into 'master'
Ondřej Surý [Thu, 23 Apr 2020 19:40:23 +0000 (19:40 +0000)] 
Merge branch '178-remove-unused-dns-ecdb' into 'master'

Remove 'ephemeral' database implementation

Closes #178

See merge request isc-projects/bind9!3425

6 years agoRemove 'ephemeral' database implementation
Ondřej Surý [Wed, 22 Apr 2020 11:26:19 +0000 (13:26 +0200)] 
Remove 'ephemeral' database implementation

The 'ephemeral' database implementation was used to provide a
lightweight database implemenation that doesn't cache results, and the
only place where it was really use is "samples" because delv is
overriding this to use "rbtdb" instead. Otherwise it was completely
unused.

 * The 'ephemeral' cache DB (ecdb) implementation.  An ecdb just provides
 * temporary storage for ongoing name resolution with the common DB interfaces.
 * It actually doesn't cache anything.  The implementation expects any stored
 * data is released within a short period, and does not care about the
 * scalability in terms of the number of nodes.

6 years agoMerge branch 'ondrej/add-missing-OPENSSL_CFLAGS' into 'master'
Ondřej Surý [Thu, 23 Apr 2020 14:22:44 +0000 (14:22 +0000)] 
Merge branch 'ondrej/add-missing-OPENSSL_CFLAGS' into 'master'

Add OPENSSL_CFLAGS to libdns tests that include dst_internal.h

See merge request isc-projects/bind9!3424

6 years agoAdd OPENSSL_CFLAGS to libdns tests that include dst_internal.h
Ondřej Surý [Wed, 22 Apr 2020 12:24:21 +0000 (14:24 +0200)] 
Add OPENSSL_CFLAGS to libdns tests that include dst_internal.h

The three libdns tests directly include ../dst_internal.h which
in turn directly include openssl headers, thus there was a missing
path and build failure on systems where OpenSSL is not in the default
include path.

6 years agoMerge branch '178-remove-unused-isc_lfsr' into 'master'
Ondřej Surý [Thu, 23 Apr 2020 13:33:00 +0000 (13:33 +0000)] 
Merge branch '178-remove-unused-isc_lfsr' into 'master'

Remove unused isc_lfsr API

Closes #178

See merge request isc-projects/bind9!3423

6 years agoRemove unused isc_lfsr API
Ondřej Surý [Thu, 23 Apr 2020 10:16:22 +0000 (12:16 +0200)] 
Remove unused isc_lfsr API

The isc_lfsr API was used to generate message IDs in the past.
Currently, it's just cruft.

6 years agoMerge branch 'mnowak/1751-abi-check-does-not-know-which-source-is-older-newer' into...
Michal Nowak [Thu, 23 Apr 2020 06:52:05 +0000 (06:52 +0000)] 
Merge branch 'mnowak/1751-abi-check-does-not-know-which-source-is-older-newer' into 'master'

abi-check does not know which source is older, newer

Closes #1751

See merge request isc-projects/bind9!3374

6 years agoEnsure proper comparison order in "abi-check" jobs
Michal Nowak [Wed, 15 Apr 2020 09:06:22 +0000 (11:06 +0200)] 
Ensure proper comparison order in "abi-check" jobs

Right before the release API version (LIBINTERFACE, LIBREVISION, LIBAGE)
for older and newer libraries tends to be the same. Given that, commit
hash can't be the determining factor here, Unix time of the commit
should suit us better and is placed after the API version. The commit
hash is preserved as it's useful to see it in the actual report.

'-nosymtbl' versions of libraries are not produced in Automake builds.

6 years agoMerge branch 'ondrej/make-merge_copyrights-ignore-hidden-files' into 'master'
Ondřej Surý [Thu, 23 Apr 2020 05:58:36 +0000 (05:58 +0000)] 
Merge branch 'ondrej/make-merge_copyrights-ignore-hidden-files' into 'master'

Make merge_copyrights ignore hidden files

See merge request isc-projects/bind9!3417

6 years agoMake merge_copyrights ignore hidden files
Ondřej Surý [Thu, 23 Apr 2020 05:57:29 +0000 (07:57 +0200)] 
Make merge_copyrights ignore hidden files

6 years agoMerge branch 'ondrej/update-lgtm.com-configuration' into 'master'
Ondřej Surý [Wed, 22 Apr 2020 14:57:40 +0000 (14:57 +0000)] 
Merge branch 'ondrej/update-lgtm.com-configuration' into 'master'

Add configuration for LGTM.com static code analyzer

See merge request isc-projects/bind9!3415

6 years agoAdd configuration for LGTM.com static code analyzer
Ondřej Surý [Wed, 22 Apr 2020 13:56:17 +0000 (15:56 +0200)] 
Add configuration for LGTM.com static code analyzer

6 years agoMerge branch '1779-lock-rpzs' into 'master'
Evan Hunt [Tue, 21 Apr 2020 23:59:37 +0000 (23:59 +0000)] 
Merge branch '1779-lock-rpzs' into 'master'

acquire maintenance lock when running incremental RPZ updates

Closes #1779

See merge request isc-projects/bind9!3411

6 years agoCHANGES
Evan Hunt [Tue, 21 Apr 2020 23:59:02 +0000 (16:59 -0700)] 
CHANGES

6 years agoacquire maintenance lock when running incremental RPZ updates
Evan Hunt [Tue, 21 Apr 2020 17:42:23 +0000 (10:42 -0700)] 
acquire maintenance lock when running incremental RPZ updates

this addresses a race that could occur during shutdown or when
reconfiguring to remove RPZ zones.

this change should ensure that the rpzs structure and the incremental
updates don't interfere with each other: rpzs->zones entries cannot
be set to NULL while an update quantum is running, and the
task should be destroyed and its queue purged so that no subsequent
quanta will run.

6 years agoMerge branch '4-add-changes-and-release-notes' into 'master'
Ondřej Surý [Tue, 21 Apr 2020 13:38:21 +0000 (13:38 +0000)] 
Merge branch '4-add-changes-and-release-notes' into 'master'

Add CHANGES and Release Notes for "Convert to modern autotools (autoconf + automake + libtool)"

See merge request isc-projects/bind9!3410

6 years agoAdd release notes for #4
Ondřej Surý [Tue, 21 Apr 2020 13:36:47 +0000 (15:36 +0200)] 
Add release notes for #4

6 years agoAdd CHANGES for GL #4
Ondřej Surý [Tue, 21 Apr 2020 13:25:41 +0000 (15:25 +0200)] 
Add CHANGES for GL #4

6 years agoMerge branch '4-convert-to-modern-autotools-autoconf-automake-libtool' into 'master'
Ondřej Surý [Tue, 21 Apr 2020 13:06:22 +0000 (13:06 +0000)] 
Merge branch '4-convert-to-modern-autotools-autoconf-automake-libtool' into 'master'

Convert to modern autotools (autoconf + automake + libtool)

Closes #4

See merge request isc-projects/bind9!985

6 years agoComplete rewrite the BIND 9 build system
Ondřej Surý [Tue, 7 Aug 2018 14:46:53 +0000 (16:46 +0200)] 
Complete rewrite the BIND 9 build system

The rewrite of BIND 9 build system is a large work and cannot be reasonable
split into separate merge requests.  Addition of the automake has a positive
effect on the readability and maintainability of the build system as it is more
declarative, it allows conditional and we are able to drop all of the custom
make code that BIND 9 developed over the years to overcome the deficiencies of
autoconf + custom Makefile.in files.

This squashed commit contains following changes:

- conversion (or rather fresh rewrite) of all Makefile.in files to Makefile.am
  by using automake

- the libtool is now properly integrated with automake (the way we used it
  was rather hackish as the only official way how to use libtool is via
  automake

- the dynamic module loading was rewritten from a custom patchwork to libtool's
  libltdl (which includes the patchwork to support module loading on different
  systems internally)

- conversion of the unit test executor from kyua to automake parallel driver

- conversion of the system test executor from custom make/shell to automake
  parallel driver

- The GSSAPI has been refactored, the custom SPNEGO on the basis that
  all major KRB5/GSSAPI (mit-krb5, heimdal and Windows) implementations
  support SPNEGO mechanism.

- The various defunct tests from bin/tests have been removed:
  bin/tests/optional and bin/tests/pkcs11

- The text files generated from the MD files have been removed, the
  MarkDown has been designed to be readable by both humans and computers

- The xsl header is now generated by a simple sed command instead of
  perl helper

- The <irs/platform.h> header has been removed

- cleanups of configure.ac script to make it more simpler, addition of multiple
  macros (there's still work to be done though)

- the tarball can now be prepared with `make dist`

- the system tests are partially able to run in oot build

Here's a list of unfinished work that needs to be completed in subsequent merge
requests:

- `make distcheck` doesn't yet work (because of system tests oot run is not yet
  finished)

- documentation is not yet built, there's a different merge request with docbook
  to sphinx-build rst conversion that needs to be rebased and adapted on top of
  the automake

- msvc build is non functional yet and we need to decide whether we will just
  cross-compile bind9 using mingw-w64 or fix the msvc build

- contributed dlz modules are not included neither in the autoconf nor automake

6 years agoRemove files generated by autotools
Ondřej Surý [Tue, 23 Oct 2018 08:28:47 +0000 (10:28 +0200)] 
Remove files generated by autotools

6 years agoRemove python based tools (dnssec-keymgr, dnssec-coverage, dnssec-checkds)
Ondřej Surý [Wed, 12 Feb 2020 11:14:00 +0000 (12:14 +0100)] 
Remove python based tools (dnssec-keymgr, dnssec-coverage, dnssec-checkds)

With the introduction of dnssec-policy, the aforementioned tools were
either rendered obsolete, or they will be replaced with dnssec-policy
based tools.  Remove the tools and the requirement to have Python
installed.  Python 3 is still being used for tests, so keep the autoconf
test, but make it much simpler.

6 years agoMerge branch 'ondrej/enable-quota-test-in-Kyuatest' into 'master'
Ondřej Surý [Tue, 21 Apr 2020 12:18:07 +0000 (12:18 +0000)] 
Merge branch 'ondrej/enable-quota-test-in-Kyuatest' into 'master'

Enable quota_test in Kyuafile

See merge request isc-projects/bind9!3408

6 years agoFix detaching the extra quotas in the quota_test
Witold Kręcicki [Tue, 21 Apr 2020 11:33:42 +0000 (13:33 +0200)] 
Fix detaching the extra quotas in the quota_test

6 years agoEnable quota_test in Kyuafile
Ondřej Surý [Tue, 21 Apr 2020 10:30:11 +0000 (12:30 +0200)] 
Enable quota_test in Kyuafile

6 years agoMerge branch 'marka-placeholer' into 'master'
Mark Andrews [Mon, 20 Apr 2020 23:59:50 +0000 (23:59 +0000)] 
Merge branch 'marka-placeholer' into 'master'

Marka placeholer

See merge request isc-projects/bind9!3407

6 years agoplaceholder
Mark Andrews [Mon, 20 Apr 2020 23:57:42 +0000 (09:57 +1000)] 
placeholder

6 years agoMerge branch '1763-pkcs11-code-cleanups' into 'master'
Ondřej Surý [Mon, 20 Apr 2020 09:55:51 +0000 (09:55 +0000)] 
Merge branch '1763-pkcs11-code-cleanups' into 'master'

Update to PKCS#11 v3.0 EdDSA macros and cleanup the PKCS#11 code

See merge request isc-projects/bind9!3391

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

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);
    }

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.

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

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.

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.

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.

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.

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.

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

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.

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.

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.

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

Missed in 6aae193ded53d7ea7b2686aca1d33b264103be5c.

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.

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.

6 years agoMerge branch '1768-move-dns_peer_t-into-peer-c' into 'master'
Mark Andrews [Mon, 20 Apr 2020 09:39:36 +0000 (09:39 +0000)] 
Merge branch '1768-move-dns_peer_t-into-peer-c' into 'master'

Resolve "move dns_peer_t into peer.c"

Closes #1768

See merge request isc-projects/bind9!3400

6 years agoMove structure declarations from dns/peer.h into peer.c
Mark Andrews [Thu, 19 Mar 2020 22:53:32 +0000 (09:53 +1100)] 
Move structure declarations from dns/peer.h into peer.c

6 years agoMerge branch '1674-reject-axfr-streams-with-bad-id' into 'master'
Mark Andrews [Mon, 20 Apr 2020 08:58:27 +0000 (08:58 +0000)] 
Merge branch '1674-reject-axfr-streams-with-bad-id' into 'master'

Reject AXFR streams with bad message id

Closes #1674

See merge request isc-projects/bind9!3382

6 years agoCheck that bad message id's are caught by named
Mark Andrews [Thu, 19 Mar 2020 01:26:37 +0000 (12:26 +1100)] 
Check that bad message id's are caught by named

6 years agoConvert to using retry_quiet and nextpart
Mark Andrews [Thu, 26 Mar 2020 02:32:14 +0000 (13:32 +1100)] 
Convert to using retry_quiet and nextpart

6 years agoReject AXFR streams where the message id is not consistent.
Mark Andrews [Thu, 16 Apr 2020 06:59:33 +0000 (16:59 +1000)] 
Reject AXFR streams where the message id is not consistent.

6 years agoMerge branch '1737-coverity-dst_key_gettime' into 'master'
Matthijs Mekking [Mon, 20 Apr 2020 07:42:27 +0000 (07:42 +0000)] 
Merge branch '1737-coverity-dst_key_gettime' into 'master'

Address Coverity warnings in keymgr.c

Closes #1737

See merge request isc-projects/bind9!3335

6 years agoAddress Coverity warnings in keymgr.c
Matthijs Mekking [Mon, 6 Apr 2020 07:59:18 +0000 (09:59 +0200)] 
Address Coverity warnings in keymgr.c

Coverity showed that the return value of `dst_key_gettime` was
unchecked in INITIALIZE_STATE. If DST_TIME_CREATED was not set we
would set the state to be initialized to a weird last changed time.

This would normally not happen because DST_TIME_CREATED is always
set. However, we would rather set the time to now (as the comment
also indicates) not match the creation time.

The comment on INITIALIZE_STATE also needs updating as we no
longer always initialize to HIDDEN.

6 years agoMerge branch '1753-make-isc-rwlock-implementation-the-default-again' into 'master'
Michał Kępień [Fri, 17 Apr 2020 06:39:06 +0000 (06:39 +0000)] 
Merge branch '1753-make-isc-rwlock-implementation-the-default-again' into 'master'

Make ISC rwlock implementation the default again

Closes #1753

See merge request isc-projects/bind9!3375

6 years agoAdd CHANGES entry
Michał Kępień [Fri, 17 Apr 2020 06:36:24 +0000 (08:36 +0200)] 
Add CHANGES entry

5385. [func] Make ISC rwlock implementation the default again.
[GL #1753]

6 years agoAdd a release note
Michał Kępień [Fri, 17 Apr 2020 06:36:24 +0000 (08:36 +0200)] 
Add a release note

6 years agoMake ISC rwlock implementation the default again
Michał Kępień [Fri, 17 Apr 2020 06:36:24 +0000 (08:36 +0200)] 
Make ISC rwlock implementation the default again

Revert the change from ad03c22e976411cad743bc02746b803a2f119df7 as
further testing has shown that with hyper-threading disabled, named with
ISC rwlocks outperforms named with pthread rwlocks in cold cache testing
scenarios.  Since building named with pthread rwlocks might still be a
better choice for some workloads, keep the compile-time option which
enables that.

6 years agoMerge branch '1765-create-empty-release-notes-for-for-9-17-2-9-16-9-11' into 'master'
Michał Kępień [Fri, 17 Apr 2020 06:30:36 +0000 (06:30 +0000)] 
Merge branch '1765-create-empty-release-notes-for-for-9-17-2-9-16-9-11' into 'master'

create empty release notes for 9.17.2

Closes #1765

See merge request isc-projects/bind9!3395

6 years agoAdd empty relase notes for 9.17.2
Michał Kępień [Thu, 16 Apr 2020 21:37:52 +0000 (23:37 +0200)] 
Add empty relase notes for 9.17.2

6 years agoMerge branch 'mnowak/abi-tracker-helper-v9_17_1' into 'master'
Michał Kępień [Thu, 16 Apr 2020 21:21:51 +0000 (21:21 +0000)] 
Merge branch 'mnowak/abi-tracker-helper-v9_17_1' into 'master'

abi-check: Update BIND_BASELINE_VERSION to v9_17_1

See merge request isc-projects/bind9!3384

6 years agoabi-check: Update BIND_BASELINE_VERSION to v9_17_1
Michal Nowak [Thu, 16 Apr 2020 07:56:22 +0000 (09:56 +0200)] 
abi-check: Update BIND_BASELINE_VERSION to v9_17_1