15 #include <boost/foreach.hpp>
70 cnt = setDefaults(global, AGENT_DEFAULTS);
108 bool have_ca = (ca && !ca->stringValue().empty());
109 bool have_cert = (cert && !cert->stringValue().empty());
110 bool have_key = (key && !key->stringValue().empty());
111 if (!have_ca && !have_cert && !have_key) {
118 " all or none of TLS parameters must be set");
122 " all or none of TLS parameters must be set");
126 " all or none of TLS parameters must be set");
137 ctx->setHttpPort(SimpleParser::getIntType<uint16_t>(config,
"http-port"));
148 auto sockets_map = ctrl_sockets->mapValue();
149 for (
auto cs = sockets_map.cbegin(); cs != sockets_map.cend(); ++cs) {
150 ctx->setControlSocketInfo(cs->second, cs->first);
159 auth->parse(auth_config);
160 ctx->setAuthConfig(auth);
166 ctx->setContext(user_context);
175 hooks_parser.
parse(libraries, hooks);
183 HooksManager::prepareUnloadLibraries();
184 static_cast<void>(HooksManager::unloadLibraries());
static bool getBoolean(isc::data::ConstElementPtr scope, const std::string &name)
Returns a boolean parameter from a scope.
Parser for hooks library list.
const isc::hooks::HookLibsCollection & get() const
Provides access to the configured hooks libraries.
Basic HTTP authentication configuration.
std::vector< SimpleDefault > SimpleDefaults
This specifies all default values in a given scope (e.g. a subnet).
boost::shared_ptr< Element > ElementPtr
Wrapper class that holds hooks libraries configuration.
An exception that is thrown if an error occurs while configuring any server.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
static size_t setDefaults(isc::data::ElementPtr scope, const SimpleDefaults &default_values)
Sets the default values.
boost::shared_ptr< const Element > ConstElementPtr
static std::string getString(isc::data::ConstElementPtr scope, const std::string &name)
Returns a string parameter from a scope.
void loadLibraries() const
Commits hooks libraries configuration.
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< BasicHttpAuthConfig > BasicHttpAuthConfigPtr
Type of shared pointers to basic HTTP authentication configuration.
The Element class represents a piece of data, used by the command channel and configuration parts...
boost::shared_ptr< CtrlAgentCfgContext > CtrlAgentCfgContextPtr
Pointer to a configuration context.
void parse(HooksConfig &libraries, isc::data::ConstElementPtr value)
Parses parameters value.
void verifyLibraries(const isc::data::Element::Position &position) const
Verifies that libraries stored in libraries_ are valid.