88 std::fstream::out | std::fstream::app);
92 const char* errmsg = strerror(errno);
95 <<
" reason: " << errmsg);
98 catch (
const std::exception& ex) {
119 }
catch (
const std::exception& ex) {
const char * user_chk_output_fname
User check outcome file name.
const char * query_user_id_label
Text label of user id in the inbound query in callout context.
const char * default_user6_id_str
Text id used to identify the default IPv6 user in the registry The format is a string containing an e...
#define LOG_ERROR(LOGGER, MESSAGE)
Macro to conveniently test error output and log it.
int unload()
Called by the Hooks library manager when the library is unloaded.
Provides a UserDataSource implementation for JSON text files.
const char * registered_user_label
Text label of registered user pointer in callout context.
Defines the class, UserFile, which implements the UserDataSource interface for text files...
Defines the logger used by the user check hooks library.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
std::fstream user_chk_output
Output filestream for recording user check outcomes.
int load(LibraryHandle &)
Called by the Hooks library manager when the library is loaded.
A generic exception that is thrown when an unexpected error condition occurs.
isc::log::Logger user_chk_logger("user_chk")
User Check Logger.
boost::shared_ptr< UserDataSource > UserDataSourcePtr
Defines a smart pointer to a UserDataSource.
Embodies an update-able, searchable list of unique users This class provides the means to create and ...
const isc::log::MessageID USER_CHK_HOOK_UNLOAD_ERROR
UserRegistryPtr user_registry
Pointer to the registry instance.
boost::shared_ptr< UserRegistry > UserRegistryPtr
Define a smart pointer to a UserRegistry.
const char * default_user4_id_str
Text id used to identify the default IPv4 user in the registry The format is a string containing an e...
const isc::log::MessageID USER_CHK_HOOK_LOAD_ERROR
Defines the class, UserRegistry.
const char * registry_fname
User registry input file name.