Mark Andrews
818e6822c4
isc_resource_getlimit under windows only supports isc_resource_openfiles
...
(cherry picked from commit 896fb585b3 )
2018-11-09 12:42:33 +11:00
Ondřej Surý
63f620ed43
Merge branch '451-fix-atomic-int-lock-free-usage-v9_12' into 'v9_12'
...
Properly use ATOMIC_*_LOCK_FREE preprocessor constants
See merge request isc-projects/bind9!997
2018-11-08 16:54:15 -05:00
Ondřej Surý
a5e7901eb9
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
----- --------------------------------------
2018-11-09 04:50:50 +07:00
Ondřej Surý
f914cd93b8
Merge branch '449-isc_stdtime_t-post-stdint-cleanup-v9_12' into 'v9_12'
...
(v9_12) 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!1001
2018-11-08 15:07:20 -05:00
Ondřej Surý
956d1bda02
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 02:56:49 +07:00
Ondřej Surý
15a4f74b28
Print isc_stdtime_t with PRIu32
...
(cherry picked from commit c355e1f38f )
2018-11-09 02:56:48 +07:00
Ondřej Surý
7b083a4958
Merge branch '224-remove-isc-hmax-fixup-exe-bnff-from-win32utils-configure-v9_12' into 'v9_12'
...
Remove isc-hmac-fixup.exe remains from win32util/Configure
See merge request isc-projects/bind9!999
2018-11-08 13:58:51 -05:00
Ondřej Surý
fe4b48b694
Remove isc-hmac-fixup.exe remains from win32util/Configure
2018-11-09 01:50:22 +07:00
Ondřej Surý
a0a6fc8b85
Merge branch '656-add-support-for-utimaco-hsm-v9_11-v9_12' into 'v9_12'
...
(v9_12) Resolve "Add support for Utimaco HSM"
See merge request isc-projects/bind9!996
2018-11-08 12:44:08 -05:00
Ondřej Surý
039cef9235
Add CHANGES entry for GL #656
...
(cherry picked from commit ebe63fd316 )
2018-11-09 00:35:05 +07:00
Ondřej Surý
8ffcef8435
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.
(cherry picked from commit 52784fc3cc )
2018-11-09 00:35:05 +07:00
Ondřej Surý
6610da90d1
Define PK11_UTIMACO_FLAVOR and add detection code to configure.ac
...
(cherry picked from commit 2079e44fb9 )
2018-11-09 00:35:05 +07:00
Ondřej Surý
12a2b25612
Merge branch '305-misc-fixes-v9_12' into 'v9_12'
...
(v9_12) Miscellaneous style fixes - implicit casts to bool and uninitialized variables fixes
See merge request isc-projects/bind9!993
2018-11-08 09:33:51 -05:00
Ondřej Surý
03c7bb9ab3
Disable Ed448 algorithm, the implementation in BIND 9 is incomplete and broken
2018-11-08 19:53:05 +07:00
Ondřej Surý
bc7a1b00e9
fixup! Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached
2018-11-08 19:45:37 +07:00
Ondřej Surý
5ad72603a8
Remove dummy ISLOCKED macro
...
(cherry picked from commit 68ca987792 )
2018-11-08 15:09:12 +07:00
Ondřej Surý
4568669807
Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached
...
(cherry picked from commit 23fff6c569 )
2018-11-08 15:09:12 +07:00
Ondřej Surý
ce6ef5b50e
Modify the dbversion_test.c to detect disabled assertions
...
(cherry picked from commit b992b5b811 )
2018-11-08 14:37:14 +07:00
Ondřej Surý
2a26189256
Add extra return failure after INSIST(0) in default branch
...
(cherry picked from commit 29c45200e7 )
2018-11-08 14:37:14 +07:00
Ondřej Surý
65536fb10b
Use larger buffers on snprintf buffer overflow false positives
...
(cherry picked from commit 4eaf927571 )
2018-11-08 14:37:14 +07:00
Ondřej Surý
1e6329038b
Don't assert on failed getrlimit call to allow called to handle this gracefully as it already does, just abort where we need to know the numbers
...
(cherry picked from commit e2e138a801 )
2018-11-08 14:37:14 +07:00
Ondřej Surý
3d834566f1
When ISC assertions are disabled, still execute the condition to prevent unused variable warnings/errors from the compiler
...
(cherry picked from commit a831e0f72d )
2018-11-08 14:37:14 +07:00
Ondřej Surý
c5825eba40
Add a GitLab CI job that runs with all assertions disabled
...
(cherry picked from commit 461ffead1f )
2018-11-08 14:37:14 +07:00
Ondřej Surý
fcd1569e2b
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
...
(cherry picked from commit b2b43fd235 )
2018-11-08 14:37:14 +07:00
Ondřej Surý
b222783ae9
Add small tweaks to the code to fix compilation when ISC assertions are disabled
...
While implementing the new unit testing framework cmocka, it was found that the
BIND 9 code doesn't compile when assertions are disabled or replaced with any
function (such as mock_assert() from cmocka unit testing framework) that's not
directly recognized as assertion by the compiler.
This made the compiler to complain about blocks of code that was recognized as
unreachable before, but now it isn't.
The changes in this commit include:
* assigns default values to couple of local variables,
* moves some return statements around INSIST assertions,
* adds __builtin_unreachable(); annotations after some INSIST assertions,
* fixes one broken assertion (= instead of ==)
(cherry picked from commit fbd2e47f51 )
2018-11-08 14:05:23 +07:00
Mark Andrews
f8620738e5
Merge branch 'wpk-get-rid-of-bashism-in-CDS-test-v9_12' into 'v9_12'
...
Small system tests fixes for Solaris
See merge request isc-projects/bind9!991
2018-11-07 20:32:50 -05:00
Witold Krecicki and Mark Andrews
070e4135c4
Remove unnecessary sed from autosign test
...
(cherry picked from commit 82dfb77328 )
2018-11-08 12:19:57 +11:00
Witold Krecicki and Mark Andrews
f49bd1e77f
Use 'local' variable in echo functions in tests
...
(cherry picked from commit 0949b1fe2c )
2018-11-08 12:19:51 +11:00
Witold Kręcicki and Mark Andrews
5d4074c4e4
Get rid of bashism in CDS test
...
(cherry picked from commit dbf2e7928e )
2018-11-08 12:14:31 +11:00
Mark Andrews
b7b668b463
Merge branch '653-idnout-only-on-tty-v9_12' into 'v9_12'
...
Enable idnout output only on tty, disable it when the stdout is not a tty
See merge request isc-projects/bind9!983
2018-11-06 19:40:43 -05:00
Ondřej Surý and Mark Andrews
71ae7caf56
Add CHANGES entry for GL #653
...
(cherry picked from commit 9c0c44405c )
2018-11-07 11:32:56 +11:00
Ondřej Surý and Mark Andrews
e484721209
Add release notes for IDN processing update
...
(cherry picked from commit 2a11a7dd29 )
2018-11-07 11:32:56 +11:00
Ondřej Surý and Mark Andrews
9fe7963ec3
Update the IDN documentation for nslookup
...
(cherry picked from commit b659765869 )
2018-11-07 11:32:56 +11:00
Ondřej Surý and Mark Andrews
a148af6728
Change the dig documentation
...
(cherry picked from commit 7697923eab )
2018-11-07 11:32:56 +11:00
Ondřej Surý and Mark Andrews
bee5674283
Update the idna tests for the new non-tty defaults
...
(cherry picked from commit e8c57a78aa )
2018-11-07 11:32:56 +11:00
Ondřej Surý and Mark Andrews
cd83fb94c6
Enable IDN processing (both idnin and idnout) only on tty, disable it when the stdout is not a tty
...
(cherry picked from commit 0e1bf7d017 )
2018-11-06 17:10:09 +11:00
Mark Andrews
8dcaf90874
Merge branch '601-build-option-with-python-should-default-to-yes-v9_12' into 'v9_12'
...
Resolve "Build option --with-python should default to yes"
See merge request isc-projects/bind9!981
2018-11-06 00:51:44 -05:00
Mark Andrews
7e32115c12
require python to be explicitly disabled
...
(cherry picked from commit bf8746126c )
2018-11-06 16:42:45 +11:00
Mark Andrews
5252e38acd
Merge branch '617-if-rrl-is-configured-the-require-server-cookie-yes-is-ignored-v9_12' into 'v9_12'
...
Resolve "If RRL is configured the "require-server-cookie yes;" is ignored."
See merge request isc-projects/bind9!977
2018-11-05 18:35:26 -05:00
Mark Andrews
48c6914639
add CHANGES note
...
(cherry picked from commit a868f335d2 )
2018-11-06 10:22:32 +11:00
Mark Andrews
ce80d59e97
test require-server-cookie with rate-limit
...
(cherry picked from commit 164370102a )
2018-11-06 10:20:43 +11:00
Mark Andrews
5d1244a831
check requireservercookie even if rrl is configured
...
(cherry picked from commit d6f6eeda9d )
2018-11-06 10:20:43 +11:00
Michał Kępień
97e58eb233
Merge branch '611-extend-serve-stale-tests-v9_12' into 'v9_12'
...
[v9_12] Extend serve-stale tests
See merge request isc-projects/bind9!964
2018-10-31 09:26:46 -04:00
Michał Kępień
a0c5c01fe5
Check serve-stale behavior with a cold cache
...
Ensure that serve-stale works as expected when returning stale answers
is enabled, the authoritative server does not respond, and there is no
cached answer available.
(cherry picked from commit 27cfe83a38 )
2018-10-31 14:08:44 +01:00
Michał Kępień
9fe44e48b2
Check TTL of stale answers
...
Make sure that stale answers returned when the serve-stale feature is
enabled have a TTL matching the value of the stale-answer-ttl setting.
(cherry picked from commit 893ab37ce7 )
2018-10-31 14:08:43 +01:00
Mark Andrews
0cd60f604c
Merge branch '649-resolver-test-failing-v9_12' into 'v9_12'
...
Resolve "resolver test failing"
See merge request isc-projects/bind9!960
2018-10-31 01:49:41 -04:00
Mark Andrews
86176a9153
use new packet for response; rename variable to request and response
...
(cherry picked from commit 280d0ca507 )
2018-10-31 16:36:34 +11:00
Evan Hunt
806a781638
Merge branch 'silence-warning-v9_12' into 'v9_12'
...
silence warning from missing print.h
See merge request isc-projects/bind9!956
2018-10-30 11:09:57 -04:00
Evan Hunt
d99a9db93a
silence warning from missing print.h
...
(cherry picked from commit a0de6707c0 )
2018-10-30 08:09:28 -07:00
Michał Kępień
4b26b9fe74
Merge branch '644-fix-isc_buffer_copyregion-for-auto-reallocated-buffers-v9_12' into 'v9_12'
...
[v9_12] Fix isc_buffer_copyregion() for auto-reallocated buffers
See merge request isc-projects/bind9!950
2018-10-30 08:52:27 -04:00