bind9/lib/ns/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 Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
listenlist_test.c Use the TLS context cache for server-side contexts 2021-12-29 10:25:14 +02:00
Makefile.am Move the include Makefile.tests to the bottom of Makefile.am(s) 2021-06-24 15:33:52 +02:00
notify_test.c Reduce the number of clientmgr objects created 2021-05-24 20:44:54 +02:00
nstest.c Use the TLS context cache for server-side contexts 2021-12-29 10:25:14 +02:00
nstest.h remove all references to isc_socket and related types 2021-10-15 01:01:25 -07:00
plugin_test.c The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
query_test.c Reduce the number of clientmgr objects created 2021-05-24 20:44:54 +02:00