bind9/lib/ns
Colin Vidal 5a98141a00 check plugin config before registering
In named_config_parsefile(), when checking the validity of
named.conf, the checking of plugin correctness was deliberately
postponed until the plugin is loaded and registered. However,
when the plugin was registered, the checking was never actually
done: the plugin_register() implementation was called, but
plugin_check() was not.

This made it necessary to duplicate the correctness checking in both
functions, so that both named-checkconf and named could catch errors.
That should not be required.

ns_plugin_register() now calls the check function before the register
function, and aborts if either one fails.  ns_plugin_check() calls only
the check function.  ns_plugin_check() is used by named-checkconf, and
ns_plugin_register() is used by named. (Note: this design has a
side effect that a call to ns_plugin_register() will result in the
plugin parameters being parsed twice at registration time.)

Partial backport of !11031
2025-10-01 11:16:11 +02:00
..
include Implement '-T slowrpz' named testing option 2025-08-27 10:00:45 +00:00
.gitignore Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
client.c Log dropped or slipped responses in the query-errors category 2025-07-10 08:57:27 +00:00
hooks.c check plugin config before registering 2025-10-01 11:16:11 +02:00
interfacemgr.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
listenlist.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
log.c Log the rcode returned to for a query 2024-09-30 00:10:47 +00:00
Makefile.am Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
notify.c convert TSIG keyring storage from RBT to hash table 2023-06-14 08:14:38 +00:00
probes.d Add a probe when the response rate limiting drops or slips query 2023-08-21 18:39:53 +02:00
query.c Use signer name when disabling DNSSEC algorithms 2025-09-29 11:16:24 +10:00
server.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
sortlist.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
stats.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
update.c Implement a new 'notify-defer' configuration option 2025-05-16 09:58:48 +00:00
xfrout.c Revert "Attach dnssecsignstats, rcvquerystats, and requeststats" 2024-12-08 12:03:12 +01:00