bind9/bin/named
Michał Kępień 3113dc24ec Move code handling key loading errors into a common function
Some values returned by dstkey_fromconfig() indicate that key loading
should be interrupted, others do not.  There are also certain subsequent
checks to be made after parsing a key from configuration and the results
of these checks also affect the key loading process.  All of this
complicates the key loading logic.

In order to make the relevant parts of the code easier to follow, reduce
the body of the inner for loop in load_view_keys() to a single call to a
new function, process_key().  Move dstkey_fromconfig() error handling to
process_key() as well and add comments to clearly describe the effects
of various key loading errors.

(cherry picked from commit b85007e0a6)
2019-04-17 10:35:07 +02:00
..
include print default file paths in 'named -V' output 2019-02-06 13:18:00 +11:00
unix gcc defines __SANITIZE_ADDRESS__ and not __ADDRESS_SANITIZER__, use the correct #define 2018-12-19 12:24:59 +01:00
win32 initalize a named_g_defaultbindkeys variable 2019-02-06 13:18:00 +11:00
.gitignore [master] add libns and remove liblwres 2017-09-08 13:47:34 -07:00
bind9.xsl Display a per-view list of zones in the web interface 2018-10-25 10:03:03 +02:00
bind9.xsl.h Display a per-view list of zones in the web interface 2018-10-25 10:03:03 +02:00
builtin.c Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
config.c cleanup cfg_parse_buffer* functions 2019-01-24 12:08:54 -08:00
control.c cleanup: alphabetize rndc command dispatch 2019-01-11 15:34:02 +00:00
controlconf.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
convertxsl.pl Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
fuzz.c oss-fuzz: Improve interaction with fuzzing tools and add new tests in fuzz/ directory 2018-08-23 10:07:28 +02:00
geoip.c Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
log.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
logconf.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00
main.c construct the rndc.conf path from rndc.key 2019-02-06 13:18:00 +11:00
Makefile.in Revert "Merge branch 'modified-manual-install-oot' into 'master'" 2018-08-02 10:23:30 -04:00
named.8 prep 9.13.6 2019-02-06 22:13:05 +00:00
named.conf.5 doc rebuild 2019-02-28 00:05:06 +00:00
named.conf.docbook doc rebuild 2019-02-28 00:05:06 +00:00
named.conf.html prep 9.13.6 2019-02-06 22:13:05 +00:00
named.docbook update copyrights 2019-01-02 10:20:43 +11:00
named.html prep 9.13.6 2019-02-06 22:13:05 +00:00
server.c Move code handling key loading errors into a common function 2019-04-17 10:35:07 +02:00
statschannel.c - Make isc_mutex_destroy return void 2018-11-22 11:52:08 +00:00
tkeyconf.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
tsigconf.c Replace custom isc_boolean_t with C standard bool type 2018-08-08 09:37:30 +02:00
zoneconf.c Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached 2018-11-08 12:22:17 +07:00