Commit Graph

27156 Commits

Author SHA1 Message Date
Mark Andrews
ccf915f7e4 don't use 'typename' as it is reserved in C++ 2018-11-14 11:13:21 -08:00
Mark Andrews
c97bc67ce2 Merge branch '688-prefer-kyua-over-aft-run-v9_11' into 'v9_11'
Resolve "prefer kyua over aft-run"

See merge request isc-projects/bind9!1052
2018-11-14 07:52:45 -05:00
Mark Andrews
2996e72d91 prefer kyua over atf
(cherry picked from commit 590d391bbb)
2018-11-14 23:41:51 +11:00
Mark Andrews
0dd74f2f86 Merge branch '584-dig-treats-4-6-m-after-q-argument-as-an-option-but-not-a-domain-name-v9_11' into 'v9_11'
Resolve "dig treats -4/-6/-m after -q argument as an option but not a domain name"

See merge request isc-projects/bind9!1047
2018-11-13 20:17:17 -05:00
Evan Hunt
cb355b8adc style
(cherry picked from commit e356d93175)
2018-11-14 11:57:02 +11:00
Mark Andrews
57d0ad450a check that delv -q -m works
(cherry picked from commit 77128c867c)
2018-11-14 11:57:01 +11:00
Mark Andrews
c0d92d4190 check that dig -q -m works
(cherry picked from commit f6f07fb41e)
2018-11-14 11:56:59 +11:00
Mark Andrews
e8ca9303c7 add -q to dash_opts
(cherry picked from commit ba5d28dcfe)
2018-11-14 11:56:05 +11:00
Mark Andrews
0f5aeea233 dig and mdig failed to properly preparse dash value pairs when value was a seperate argument and started with a dash.
(cherry picked from commit 75fa84b67b)
2018-11-14 11:56:03 +11:00
Evan Hunt
be60437b16 Merge branch '587-statistics-channels-xml-v2-is-removed-but-still-documented-v9_11' into 'v9_11'
Resolve "statistics-channels /xml/v2 is removed but still documented"

See merge request isc-projects/bind9!1044
2018-11-13 14:09:35 -05:00
Mark Andrews
901adb154b remove reference to obsolete xml/v2 schema
(cherry picked from commit 9e1af0cef1)
2018-11-13 11:08:59 -08:00
Michał Kępień
961a77fb99 Merge branch '599-fix-a-shutdown-race-in-diagnostic-tools-v9_11' into 'v9_11'
[v9_11] Fix a shutdown race in bin/dig/dighost.c

See merge request isc-projects/bind9!1040
2018-11-13 08:25:15 -05:00
Michał Kępień
0298133676 Add CHANGES entry
5088.	[bug]		dig/host/nslookup could crash when interrupted close to
			a query timeout. [GL #599]

(cherry picked from commit ae40e8039b)
2018-11-13 13:52:48 +01:00
Michał Kępień
f2ca287330 Fix a shutdown race in bin/dig/dighost.c
If a tool using the routines defined in bin/dig/dighost.c is sent an
interruption signal around the time a connection timeout is scheduled to
fire, connect_timeout() may be executed after destroy_libs() detaches
from the global task (setting 'global_task' to NULL), which results in a
crash upon a UDP retry due to bringup_timer() attempting to create a
timer with 'task' set to NULL.  Fix by preventing connect_timeout() from
attempting a retry when shutdown is in progress.

(cherry picked from commit 4621756596)
2018-11-13 13:52:48 +01:00
Evan Hunt
83544b0bdf Merge branch 'fix-rules-typo-v9_11' into 'v9_11'
fix rules.in typo

See merge request isc-projects/bind9!1038
2018-11-13 03:41:48 -05:00
Evan Hunt
df3b061c99 fix typo
(cherry picked from commit 9671909289)
2018-11-13 00:24:43 -08:00
Mark Andrews
0bd7e3de57 Merge branch 'autoheader-v9_11' into 'v9_11'
autoheader

See merge request isc-projects/bind9!1031
2018-11-12 18:13:05 -05:00
Mark Andrews
107fd6758d autoheader 2018-11-12 18:01:28 -05:00
Mark Andrews
54a3d2ac63 Merge branch 'fix-test-linkages-v9_11' into 'v9_11'
Fix test linkages

See merge request isc-projects/bind9!1029
2018-11-12 16:01:04 -05:00
Mark Andrews
03f2cc49e3 remove lib/isc/tests/result_test as it is now cmocka
(cherry picked from commit 9024cf0c15)
2018-11-13 07:50:51 +11:00
Mark Andrews
173827f78d fixup
(cherry picked from commit ba0e5ffc09)
2018-11-13 07:50:49 +11:00
Mark Andrews
ffc56a4bf3 link in lib/isccc/tests/Kyuafile
(cherry picked from commit 9a59352b4c)
2018-11-13 07:50:30 +11:00
Mark Andrews
ab5a68b3b1 Merge branch 'backport-require-cmocka-greater-than-or-equal-1.0.0-v9_11' into 'v9_11'
require cmocka >= 1.0.0

See merge request isc-projects/bind9!1024
2018-11-12 03:03:17 -05:00
Mark Andrews
58812a4641 define CMOCKA_CFLAGS and CMOCKA_LIBS
(cherry picked from commit 1e8cdc20f3)
2018-11-12 18:42:58 +11:00
Mark Andrews
0c738a5673 require cmocka >= 1.0.0
(cherry picked from commit f3ff5f63ac)
2018-11-12 18:42:58 +11:00
Mark Andrews
c8d522dd36 Merge branch '351-fix-with-cmocka=path-build-v9_11' into 'v9_11'
Resolve "configure fails unless --enable-developer is specified"

See merge request isc-projects/bind9!1021
2018-11-12 01:49:36 -05:00
Ondřej Surý
6b50da7ba8 Use cmocka_set_message_output as test function for cmocka presence
(cherry picked from commit 0158c1a4ea)
2018-11-12 17:25:30 +11:00
Mark Andrews
8da45fcab7 Merge branch '351-disable-cmocka-by-default-v9_11' into 'v9_11'
Resolve "configure fails unless --enable-developer is specified"

See merge request isc-projects/bind9!1018
2018-11-12 00:24:29 -05:00
Ondřej Surý
760e336e89 Set with_cmocka=no by default
(cherry picked from commit ed8000f333)
2018-11-12 00:01:24 -05:00
Mark Andrews
7d2451460d Merge branch '676-isc_result_toid-tables-not-complete-v9_11' into 'v9_11'
Resolve "isc_result_toid tables not complete"

See merge request isc-projects/bind9!1017
2018-11-11 23:58:05 -05:00
Evan Hunt
181c5442b9 convert result tests to use CMocka instead of ATF
(cherry picked from commit 471110933a)
2018-11-12 15:38:50 +11:00
Mark Andrews
af5a051e4d check result tables are complete
(cherry picked from commit 4f04a79250)
2018-11-12 15:32:58 +11:00
Mark Andrews
c9e712e528 Merge branch '250-integrate-cmocka-into-our-build-scripts-v9_11' into 'v9_11'
Add cmocka support to infrastructure (build) files

See merge request isc-projects/bind9!1015
2018-11-11 21:10:13 -05:00
Ondřej Surý
22c0f129ae Add support for cmocka assert testing by overriding REQUIRE/INSIST/... macros when UNIT_TESTING is defined
(cherry picked from commit 52731c000d)
2018-11-12 12:56:15 +11:00
Ondřej Surý
2dcc521b29 Add --wrap linker option detection
(cherry picked from commit 10535d1c79)
2018-11-12 12:54:59 +11:00
Ondřej Surý
4c8112ec01 Enforce TAP output from cmocka based unit tests
(cherry picked from commit bd2ddec58f)
2018-11-12 12:53:21 +11:00
Ondřej Surý
b0745fb156 Integrate cmocka unit testing framework to kyua
(cherry picked from commit 07910f0153)
2018-11-12 12:53:15 +11:00
Ondřej Surý
dc05021a4b Merge branch '451-fix-atomic-int-lock-free-usage-v9_11' into 'v9_11'
(v9_11) Properly use ATOMIC_*_LOCK_FREE preprocessor constants

See merge request isc-projects/bind9!1003
2018-11-08 17:19:16 -05:00
Ondřej Surý
9000f73ba3 Properly use ATOMIC_*_LOCK_FREE preprocessor constants
The ATOMIC_*_LOCK_FREE can evalutate either 0, 1, or 2 which indicate the
lock-free property of the corresponding atomic types (both signed and unsigned).

	Value	Explanation
	-----	--------------------------------------
	  0	The atomic type is never lock-free
	  1	The atomic type is sometimes lock-free
	  2	The atomic type is always lock-free
	-----	--------------------------------------

(cherry picked from commit a5e7901eb9)
2018-11-09 05:00:32 +07:00
Ondřej Surý
9e978d7416 Merge branch '449-isc_stdtime_t-post-stdint-cleanup-v9_11' into 'v9_11'
(v9_11) Resolve "Follow-up from "Redefine ISC's int and boolean types to use <stdint.h> and <stdbool.h> types""

See merge request isc-projects/bind9!1002
2018-11-08 15:19:31 -05:00
Ondřej Surý
ba263b5b7e isc_stdtime_t is always 32-bit now, so remove the always true macro STDTIME_ON_32BITS
(cherry picked from commit 6f5fe11f5a)
2018-11-09 03:04:22 +07:00
Ondřej Surý
ecc40b18e6 Merge branch '656-add-support-for-utimaco-hsm-v9_11' into 'v9_11'
Resolve "Add support for Utimaco HSM"

See merge request isc-projects/bind9!972
2018-11-08 12:34:22 -05:00
Ondřej Surý
ebe63fd316 Add CHANGES entry for GL #656 2018-11-09 00:12:39 +07:00
Ondřej Surý
52784fc3cc Disable runtime detection of md5 and sha1 support for Utimaco HSM.
Utimaco HSM requires user to be logged in before executing DigestUpdate, thus
breaking dst_lib_init2 that ran isc_md5_check and isc_sha1_check before sending
PIN to the HSM.  Therefore isc_*_check needs to be disabled when Utimaco HSM is
being used as PKCS#11 library.
2018-11-09 00:07:55 +07:00
Ondřej Surý
2079e44fb9 Define PK11_UTIMACO_FLAVOR and add detection code to configure.ac 2018-11-09 00:07:44 +07:00
Ondřej Surý
62819dcfba Merge branch '305-misc-fixes-v9_12-v9_11' into 'v9_11'
(v9_11) Miscellaneous style fixes - implicit casts to bool and uninitialized variables fixes

See merge request isc-projects/bind9!995
2018-11-08 11:15:03 -05:00
Ondřej Surý
29601a6e7e Disable Ed448 algorithm, the implementation in BIND 9 is incomplete and broken
(cherry picked from commit 03c7bb9ab3)
2018-11-08 22:42:52 +07:00
Ondřej Surý
c5b54803cd Remove dummy ISLOCKED macro
(cherry picked from commit 68ca987792)
(cherry picked from commit 5ad72603a8)
2018-11-08 22:42:52 +07:00
Ondřej Surý
2f8b28efad Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached
(cherry picked from commit 23fff6c569)
(cherry picked from commit 4568669807)
2018-11-08 22:42:52 +07:00
Ondřej Surý
baa5811623 Modify the dbversion_test.c to detect disabled assertions
(cherry picked from commit b992b5b811)
(cherry picked from commit ce6ef5b50e)
2018-11-08 22:03:33 +07:00