bind9/tests
Matthijs Mekking 16a1c5a623 Prepend qpkey with denial byte
In preparation to merge the three qp tries (tree, nsec, nsec3) into
one, add the piece of information into the qpkey. This is the most
significant bit of information, so prepend the denial type to the qpkey.

This means we need to pass on the denial type when constructing the
qpkey from a name, or doing a lookup.

Reuse the the DNS_DB_NSEC_* values. Most qp tries in the code we just
pass on 0 (nta, rpz, zt, etc.), because there is no need for denial of
existence, but for qpzone and qpcache we must pass the right value.

Change the code, so that node->nsec no longer can have the value
DNS_DB_NSEC_HAS_NSEC, instead track this in a new attribute 'havensec'.

Since we use node->nsec to convert names to keys, the value MUST be set
before inserting the node into the qp-trie.

Update the fuzzing and unit tests accordingly. This only adds a few
extra test cases, more are needed.

In the qp_test.c we can remove test code for empty keys as this is
no longer possible.
2025-07-10 13:52:59 +00:00
..
bench Prepend qpkey with denial byte 2025-07-10 13:52:59 +00:00
dns Prepend qpkey with denial byte 2025-07-10 13:52:59 +00:00
include/tests Replace isc_mem_destroy() with isc_mem_detach() 2025-03-05 11:17:17 +01:00
isc Use regular reference counting macro for isc_nm_t structure 2025-07-09 21:22:48 +02:00
isccfg replace the build system with meson 2025-06-11 10:30:12 +03:00
libtest Prepend qpkey with denial byte 2025-07-10 13:52:59 +00:00
ns Improve efficiency of ns_client_t reset 2025-07-10 07:19:47 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
meson.build replace the build system with meson 2025-06-11 10:30:12 +03:00