Kea 3.3.4
rbac_callouts.cc File Reference
#include <config.h>
#include <cc/command_interpreter.h>
#include <exceptions/exceptions.h>
#include <hooks/hooks.h>
#include <http/post_request_json.h>
#include <process/daemon.h>
#include <rbac/rbac.h>
#include <rbac/rbac_config.h>
#include <rbac_log.h>
Include dependency graph for rbac_callouts.cc:

Go to the source code of this file.

Functions

int http_auth (CalloutHandle &handle)
 This callout is called at the "http_auth" callout.
int http_response (CalloutHandle &handle)
 This callout is called at the "http_response" hook.
int load (LibraryHandle &handle)
 This function is called when the library is loaded.
int multi_threading_compatible ()
 This function is called to retrieve the multi-threading compatibility.
int unload ()
 This function is called when the library is unloaded.

Function Documentation

◆ http_auth()

◆ http_response()

◆ load()

int load ( LibraryHandle & handle)

This function is called when the library is loaded.

Parameters
handlelibrary handle.
Returns
0 when initialization is successful, 1 otherwise.

Definition at line 39 of file rbac_callouts.cc.

References isc::hooks::LibraryHandle::getParameters(), isc::process::Daemon::getProcName(), isc_throw, LOG_ERROR, LOG_INFO, isc::rbac::Config::parse(), RBAC_LOAD_FAILED, RBAC_LOAD_OK, isc::rbac::rbac_logger, and isc::rbac::rbacConfig.

Here is the call graph for this function:

◆ multi_threading_compatible()

int multi_threading_compatible ( )

This function is called to retrieve the multi-threading compatibility.

Returns
1 which means compatible with multi-threading.

Definition at line 88 of file rbac_callouts.cc.

◆ unload()