bind9/lib/isc/tests
Artem Boldariev 5b7d4341fe Use the TLS context cache for server-side contexts
Using the TLS context cache for server-side contexts could reduce the
number of contexts to initialise in the configurations when e.g. the
same 'tls' entry is used in multiple 'listen-on' statements for the
same DNS transport, binding to multiple IP addresses.

In such a case, only one TLS context will be created, instead of a
context per IP address, which could reduce the initialisation time, as
initialising even a non-ephemeral TLS context introduces some delay,
which can be *visually* noticeable by log activity.

Also, this change lays down a foundation for Mutual TLS (when the
server validates a client certificate, additionally to a client
validating the server), as the TLS context cache can be extended to
store additional data required for validation (like intermediates CA
chain).

Additionally to the above, the change ensures that the contexts are
not being changed after initialisation, as such a practice is frowned
upon. Previously we would set the supported ALPN tags within
isc_nm_listenhttp() and isc_nm_listentlsdns(). We do not do that for
client-side contexts, so that appears to be an overlook. Now we set
the supported ALPN tags right after server-side contexts creation,
similarly how we do for client-side ones.
2021-12-29 10:25:14 +02:00
..
testdata/file [master] new mkeys and nzf naming format 2014-11-04 19:43:27 -08:00
aes_test.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
buffer_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
counter_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
crc64_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
doh_test.c Use the TLS context cache for server-side contexts 2021-12-29 10:25:14 +02:00
errno_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
file_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
hash_test.c Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00
heap_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
hmac_test.c Pass the digest buffer length to EVP_DigestSignFinal 2021-12-17 20:28:01 +11:00
ht_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
isctest.c remove all references to isc_socket and related types 2021-10-15 01:01:25 -07:00
isctest.h remove all references to isc_socket and related types 2021-10-15 01:01:25 -07:00
lex_test.c Use %d for enum values 2021-08-19 10:19:32 +10:00
Makefile.am remove all references to isc_socket and related types 2021-10-15 01:01:25 -07:00
md_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
mem_test.c Return non-NULL pointer on zero-sized allocations and reallocations 2021-09-23 22:17:15 +02:00
netaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
netmgr_test.c Add ALPN negotiation tests to TLS DNS test set 2021-10-05 11:23:47 +03:00
parse_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
pool_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
quota_test.c Add nanosleep and usleep Windows shims 2021-05-03 20:22:54 +02:00
radix_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
random_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
regex_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
result_test.c Make isc_result a static enum 2021-10-06 11:22:20 +02:00
safe_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
siphash_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
sockaddr_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
stats_test.c Add a function isc_stats_resize 2021-08-24 09:07:15 +02:00
symtab_test.c Record skipped unit test as skipped in Automake framework 2021-02-15 11:18:03 +01:00
task_test.c remove all references to isc_socket and related types 2021-10-15 01:01:25 -07:00
taskpool_test.c only run tasks as privileged if taskmgr is in privileged mode 2021-05-07 14:28:30 -07:00
time_test.c Add isc_time_add and isc_time_subtract unit test 2021-10-21 09:31:01 +02:00
timer_test.c Reset errcnt at the start of each subtest 2021-07-12 03:47:11 +00:00
uv_wrap.h Use #pragma once as header guards 2021-10-13 00:49:15 -07:00