[master] log when using rndc.key
3767. [func] Log explicitly when using rndc.key to configure command channel. [RT #35316]
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include <isc/base64.h>
|
||||
#include <isc/buffer.h>
|
||||
#include <isc/event.h>
|
||||
#include <isc/file.h>
|
||||
#include <isc/mem.h>
|
||||
#include <isc/net.h>
|
||||
#include <isc/netaddr.h>
|
||||
@@ -823,6 +824,13 @@ get_rndckey(isc_mem_t *mctx, controlkeylist_t *keyids) {
|
||||
unsigned int algtype;
|
||||
isc_buffer_t b;
|
||||
|
||||
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
||||
NS_LOGMODULE_CONTROL, ISC_LOG_INFO,
|
||||
"configuring command channel from '%s'",
|
||||
ns_g_keyfile);
|
||||
if (! isc_file_exists(ns_g_keyfile))
|
||||
return (ISC_R_FILENOTFOUND);
|
||||
|
||||
CHECK(cfg_parser_create(mctx, ns_g_lctx, &pctx));
|
||||
CHECK(cfg_parse_file(pctx, ns_g_keyfile, &cfg_type_rndckey, &config));
|
||||
CHECK(cfg_map_get(config, "key", &key));
|
||||
|
||||
Reference in New Issue
Block a user