|
@@ -13,6 +13,7 @@
|
|
// PERFORMANCE OF THIS SOFTWARE.
|
|
// PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
#include <server_common/keyring.h>
|
|
#include <server_common/keyring.h>
|
|
|
|
+#include <server_common/logger.h>
|
|
|
|
|
|
using namespace isc::dns;
|
|
using namespace isc::dns;
|
|
using namespace isc::data;
|
|
using namespace isc::data;
|
|
@@ -31,6 +32,7 @@ updateKeyring(const std::string&, ConstElementPtr data,
|
|
const isc::config::ConfigData&) {
|
|
const isc::config::ConfigData&) {
|
|
ConstElementPtr list(data->get("keys"));
|
|
ConstElementPtr list(data->get("keys"));
|
|
KeyringPtr load(new TSIGKeyRing);
|
|
KeyringPtr load(new TSIGKeyRing);
|
|
|
|
+ LOG_DEBUG(logger, DBG_TRACE_BASIC, SRV_COMMON_KEYS_UPDATE);
|
|
|
|
|
|
// Note that 'data' only contains explicitly configured config parameters.
|
|
// Note that 'data' only contains explicitly configured config parameters.
|
|
// So if we use the default list is NULL, rather than an empty list, and
|
|
// So if we use the default list is NULL, rather than an empty list, and
|
|
@@ -50,6 +52,7 @@ initKeyring(config::ModuleCCSession& session) {
|
|
// We are already initialized
|
|
// We are already initialized
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ LOG_DEBUG(logger, DBG_TRACE_BASIC, SRV_COMMON_KEYS_INIT);
|
|
session.addRemoteConfig("tsig_keys", updateKeyring, false);
|
|
session.addRemoteConfig("tsig_keys", updateKeyring, false);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -59,6 +62,7 @@ deinitKeyring(config::ModuleCCSession& session) {
|
|
// Not initialized, ignore it
|
|
// Not initialized, ignore it
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ LOG_DEBUG(logger, DBG_TRACE_BASIC, SRV_COMMON_KEYS_DEINIT);
|
|
keyring.reset();
|
|
keyring.reset();
|
|
session.removeRemoteConfig("tsig_keys");
|
|
session.removeRemoteConfig("tsig_keys");
|
|
}
|
|
}
|