Commit graph

16169 commits

Author SHA1 Message Date
Libor Peltan
91c9df6cda bugfix: zone load: dont start extra chgset if zonefile unupdated 2020-09-17 17:50:39 +02:00
Jan Hak
61f6be8a60 kxdpgun: option for setup network interface 2020-09-17 14:26:31 +02:00
Daniel Salzman
ff81446b83 Merge branch 'test_reproducible_enh' into 'master'
tests: improved test of deterministic ECDSA

See merge request knot/knot-dns!1182
2020-09-17 12:38:13 +02:00
Daniel Salzman
3c4bd08513 configure: improve detection of ECDSA reproducible signing support 2020-09-17 12:29:25 +02:00
Libor Peltan
422c829467 tests: improved test of deterministic ECDSA 2020-09-17 12:16:33 +02:00
David Vašek
ff9267ba48 tests-extra: zone/backup -- allow enough time to proceed even under Valgrind 2020-09-16 14:17:18 +02:00
David Vašek
00171091c2 doc: keymgr -- add a link to the trust anchor RFC 2020-09-16 12:43:05 +02:00
Daniel Salzman
89be429349 Merge branch 'no_repro_warn' into 'master'
dnssec: warn if reproducible signing not avail

See merge request knot/knot-dns!1180
2020-09-16 12:41:33 +02:00
Libor Peltan
473d165497 dnssec: warn if reproducible signing not avail 2020-09-15 17:48:03 +02:00
David Vašek
1100e8a04d doc: add a reference to the DNS Catalog Zones Internet Draft and a link to the trust anchor RFC 2020-09-15 11:42:10 +02:00
Daniel Salzman
1696901f15 node: fix some documentation typos 2020-09-14 16:45:35 +02:00
Daniel Salzman
0d9c848e51 configure: don't automatically disable fastparser with Clang compiler 2020-09-14 16:45:35 +02:00
Daniel Salzman
5f8b715fd8 Merge branch 'ci-remove-bsd' into 'master'
CI: remove broken FreeBSD jobs

See merge request knot/knot-dns!1178
2020-09-11 14:57:14 +02:00
Jakub Ružička
4f6fcec5dc CI: remove broken FreeBSD jobs
FreeBSD jobs are currently failing and blocking merges.

They can be restored once functional.
2020-09-11 14:45:09 +02:00
Daniel Salzman
37a86dba2a Merge branch 'libnghttp2_include_fixups' into 'master'
Libnghttp2 include fixups

Closes #690

See merge request knot/knot-dns!1176
2020-09-11 08:14:32 +02:00
Daniel Salzman
69b26f7d5c Merge branch 'master' into 'master'
README.md: make links to docs interactive

See merge request knot/knot-dns!1177
2020-09-10 14:34:35 +02:00
Jakub Ružička
841a0fe584 README.md: make links to docs interactive
using GitLab markdown.
2020-09-10 13:18:19 +02:00
Daniel Salzman
a436f33a2c Merge branch 'validation_no_policy_fix' into 'master'
dnssec: don't crash if no policy is configured in the validation mode

See merge request knot/knot-dns!1175
2020-09-10 11:11:16 +02:00
Robert Edmonds
c600ae0fa3 src/utils/Makefile.inc: Add $(libnghttp2_CFLAGS) where needed
The header file src/utils/common/https.h includes the external header
file <nghttp2/nghttp2.h> (when nghttp2 support is enabled by the build
system). This header file is included by src/utils/common/netio.h, which can
in turn be included directly or indirectly by various knot components.

The nghttp2 header files are not guaranteed to be located in the compiler's
default include paths. This dependency is detected by the build system
via PKG_CHECK_MODULES, which populates the automake variable
$(libnghttp2_CFLAGS). These extra CFLAGS must be added to the compiler flags
for any targets that include a header file that results in header file
inclusions of the external dependencies. Otherwise the build will fail when
those external header files cannot be located.

This commit adds $(libnghttp2_CLAGS) to the *_CPPFLAGS for kdig, khost, and
knsupdate.

Without the $(libnghttp2_CFLAGS) fixes in this commit, the build will
fail with an error like:

    Making all in src
    make[1]: Entering directory '/tmp/knot-3.0.0/src'
      GEN      contrib/dnstap/dnstap.pb-c.c
      GEN      contrib/dnstap/dnstap.pb-c.h
    NOTE: Compilation of scanner.c can take several minutes!
    make  all-recursive
    make[2]: Entering directory '/tmp/knot-3.0.0/src'
    make[3]: Entering directory '/tmp/knot-3.0.0/src'
      CC       libdnssec/la-tsig.lo
      CC       utils/kdig/khost-kdig_exec.o
      CC       utils/kdig/khost-kdig_params.o
      CC       utils/kdig/kdig-kdig_exec.o
      CC       utils/kdig/kdig-kdig_main.o
      CC       utils/kdig/kdig-kdig_params.o
      CC       utils/common/libknotus_la-cert.lo
      CC       utils/common/libknotus_la-exec.lo
      CC       utils/common/libknotus_la-hex.lo
      CC       utils/common/libknotus_la-https.lo
      CC       utils/common/libknotus_la-lookup.lo
      CC       utils/common/libknotus_la-msg.lo
    In file included from ./utils/common/netio.h:23,
                     from ./utils/common/exec.h:21,
                     from ./utils/kdig/kdig_params.h:22,
                     from ./utils/kdig/kdig_exec.h:19,
                     from utils/kdig/kdig_exec.c:22:
    ./utils/common/https.h:45:10: fatal error: nghttp2/nghttp2.h: No such file or directory
       45 | #include <nghttp2/nghttp2.h>
          |          ^~~~~~~~~~~~~~~~~~~
    compilation terminated.
    In file included from ./utils/common/netio.h:23,
                     from ./utils/common/exec.h:21,
                     from ./utils/kdig/kdig_params.h:22,
                     from utils/kdig/kdig_params.c:23:
    ./utils/common/https.h:45:10: fatal error: nghttp2/nghttp2.h: No such file or directory
       45 | #include <nghttp2/nghttp2.h>
          |          ^~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[3]: *** [Makefile:5500: utils/kdig/khost-kdig_exec.o] Error 1
    make[3]: *** Waiting for unfinished jobs....
    make[3]: *** [Makefile:5514: utils/kdig/khost-kdig_params.o] Error 1
    In file included from ./utils/common/netio.h:23,
                     from ./utils/common/exec.h:21,
                     from ./utils/kdig/kdig_params.h:22,
                     from utils/kdig/kdig_main.c:20:
    ./utils/common/https.h:45:10: fatal error: nghttp2/nghttp2.h: No such file or directory
       45 | #include <nghttp2/nghttp2.h>
          |          ^~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[3]: *** [Makefile:5416: utils/kdig/kdig-kdig_main.o] Error 1
    In file included from ./utils/common/netio.h:23,
                     from ./utils/common/exec.h:21,
                     from ./utils/kdig/kdig_params.h:22,
                     from ./utils/kdig/kdig_exec.h:19,
                     from utils/kdig/kdig_exec.c:22:
    ./utils/common/https.h:45:10: fatal error: nghttp2/nghttp2.h: No such file or directory
       45 | #include <nghttp2/nghttp2.h>
          |          ^~~~~~~~~~~~~~~~~~~
    compilation terminated.
    In file included from ./utils/common/netio.h:23,
                     from ./utils/common/exec.h:21,
                     from ./utils/kdig/kdig_params.h:22,
                     from utils/kdig/kdig_params.c:23:
    ./utils/common/https.h:45:10: fatal error: nghttp2/nghttp2.h: No such file or directory
       45 | #include <nghttp2/nghttp2.h>
          |          ^~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[3]: *** [Makefile:5402: utils/kdig/kdig-kdig_exec.o] Error 1
    make[3]: *** [Makefile:5430: utils/kdig/kdig-kdig_params.o] Error 1
    make[3]: Leaving directory '/tmp/knot-3.0.0/src'
    make[2]: *** [Makefile:5950: all-recursive] Error 1
    make[2]: Leaving directory '/tmp/knot-3.0.0/src'
    make[1]: *** [Makefile:2046: all] Error 2
    make[1]: Leaving directory '/tmp/knot-3.0.0/src'
    make: *** [Makefile:491: all-recursive] Error 1
2020-09-10 10:44:10 +02:00
Daniel Salzman
ff9794e783 kjournalprint: use proper include to avoid compilation issues with gnutls/libnghttp2 headers 2020-09-10 10:40:20 +02:00
Libor Peltan
b47f51d7e0 dnssec validation: dont crash if unsigned zone 2020-09-09 16:12:40 +02:00
Daniel Salzman
8f406b4387 dnssec: don't crash if no policy is configured 2020-09-09 16:05:43 +02:00
Libor Peltan
e009c2007e axfr: split multi-mesage responses to 16kib -- compression 2020-09-09 13:24:27 +02:00
Daniel Salzman
3831722e7a Bump version 3.1.dev 2020-09-09 10:02:04 +02:00
Daniel Salzman
aedc8a73df NEWS: update bugfixes 2020-09-08 15:24:43 +02:00
Daniel Salzman
071b517be9 Merge branch 'cross_msg_compr' into 'master'
Bugfix: cross-message-compression

See merge request knot/knot-dns!1174
2020-09-08 15:12:50 +02:00
Libor Peltan
7a7c725fc5 libknot: bugfix: dont compress across multi-message response 2020-09-08 13:19:30 +02:00
Libor Peltan
fb48bd4bc1 tests: added test of cross-message-compression 2020-09-08 13:19:07 +02:00
David Vašek
99c99e024c doc: mention XDP mode requirements in the main requirements section
Point out that the XDP mode is only available on Linux OS's.
2020-09-07 18:29:50 +02:00
Daniel Salzman
69c7a80965 tests: fix possible NULL pointer dereference (Clang analyzer) 2020-09-07 15:18:13 +02:00
Jan Hak
f0027b2a58 test_rdataset: Comparsion of null reference fix (Clang analyzer) 2020-09-07 14:24:25 +02:00
Daniel Salzman
b569dd543d Merge branch 'restore_expired_zone' into 'master'
zone backup: fix restoring expired zone

See merge request knot/knot-dns!1172
2020-09-07 14:10:02 +02:00
Libor Peltan
afb616d2ff zone backup: fix restoring expired zone 2020-09-07 10:37:13 +02:00
Daniel Salzman
c63ce1d993 doc: update introduction 2020-09-04 11:11:51 +02:00
Daniel Salzman
05226b1361 NEWS: add version 3.0.0 2020-09-03 14:24:15 +02:00
Daniel Salzman
7f89137cd4 NEWS: synchronize with 2.9 branch 2020-09-03 14:24:15 +02:00
Daniel Salzman
969c3f1aba doc/migration: add query module API change 2020-09-03 14:24:15 +02:00
David Vašek
aead60dbea contrib/sockaddr: abandon __POSIX_VISIBLE define
Forced define of __POSIX_VISIBLE is no longer needed. Default
__POSIX_VISIBLE has been at least 200112 on all supported platforms
for many years. In fact, the default is much higher today.
2020-08-28 16:03:54 +02:00
David Vašek
8030db8738 tests/requestor: repair broken test on FreeBSD
Both KNOT_ECONN and KNOT_ECONNREFUSED are acceptable on BSD's.

This fix compensates for a change introduced in the commit
83e07d9262.
2020-08-27 15:31:57 +02:00
Daniel Salzman
01cda38a5b doc/conf: unify section items order 2020-08-27 15:31:57 +02:00
Daniel Salzman
b790ab7926 doc: sort sections in the reference to be the same as in the program 2020-08-27 15:00:28 +02:00
Daniel Salzman
93b5c8958c libdnssec: make privkey_export_x509 static 2020-08-27 14:15:27 +02:00
David Vašek
6d35f3ab6c contrib: fix proper Knot build on OpenBSD
Fixes a compatibility bug introduced by a commit named
  "BSD compatibility fixes, not yet fully ported."
more than 9 years ago.
2020-08-27 13:26:50 +02:00
Daniel Salzman
8001170a56 libdnssec: add workaround for missing gnutls_privkey_export_x509() on CentOS 7 2020-08-27 13:24:33 +02:00
Daniel Salzman
949c5a731c Merge branch 'various_tests' into 'master'
Various tests

See merge request knot/knot-dns!1171
2020-08-27 11:42:53 +02:00
Libor Peltan
c2d99831e6 tests/catalog interpret: also try with onlinesign module 2020-08-27 11:32:33 +02:00
Libor Peltan
487e16c966 test/backup: precise time waiting for expire 2020-08-27 11:32:33 +02:00
Daniel Salzman
f069399564 libknot: reorganize errcodes 2020-08-26 15:02:29 +02:00
Daniel Salzman
21bb3e9e43 backup: fix memory leak (Coverity) 2020-08-26 14:50:54 +02:00
Daniel Salzman
3ee38e67ff backup: tiny code improvements (Coverity) 2020-08-26 14:31:17 +02:00