Kea: auth_messages.cc Source File

| Kea 2.2.0

auth_messages.cc
Go to the documentation of this file.
1// File created from ../../../src/lib/http/auth_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
5#include <log/message_initializer.h>
6
7namespace isc {
8namespace http {
9
10extern const isc::log::MessageID HTTP_CLIENT_REQUEST_AUTHORIZED = "HTTP_CLIENT_REQUEST_AUTHORIZED";
11extern const isc::log::MessageID HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER = "HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER";
12extern const isc::log::MessageID HTTP_CLIENT_REQUEST_NOT_AUTHORIZED = "HTTP_CLIENT_REQUEST_NOT_AUTHORIZED";
13extern const isc::log::MessageID HTTP_CLIENT_REQUEST_NO_AUTH_HEADER = "HTTP_CLIENT_REQUEST_NO_AUTH_HEADER";
14
15} // namespace http
16} // namespace isc
17
18namespace {
19
20const char* values[] = {
21 "HTTP_CLIENT_REQUEST_AUTHORIZED", "received HTTP request authorized for '%1'",
22 "HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER", "received HTTP request with malformed authentication header: %1",
23 "HTTP_CLIENT_REQUEST_NOT_AUTHORIZED", "received HTTP request with not matching authentication header",
24 "HTTP_CLIENT_REQUEST_NO_AUTH_HEADER", "received HTTP request without required authentication header",
25 NULL
26};
27
28const isc::log::MessageInitializer initializer(values);
29
30} // Anonymous namespace
31
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition: message_initializer.h:72
message_initializer.h
message_types.h
isc::http::HTTP_CLIENT_REQUEST_NOT_AUTHORIZED
const isc::log::MessageID HTTP_CLIENT_REQUEST_NOT_AUTHORIZED
Definition: auth_messages.h:13
isc::http::HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER
const isc::log::MessageID HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER
Definition: auth_messages.h:12
isc::http::HTTP_CLIENT_REQUEST_AUTHORIZED
const isc::log::MessageID HTTP_CLIENT_REQUEST_AUTHORIZED
Definition: auth_messages.h:11
isc::http::HTTP_CLIENT_REQUEST_NO_AUTH_HEADER
const isc::log::MessageID HTTP_CLIENT_REQUEST_NO_AUTH_HEADER
Definition: auth_messages.h:14
isc::log::MessageID
const char * MessageID
Definition: message_types.h:15
isc
Defines the logger used by the top-level component of kea-lfc.
Definition: agent_parser.cc:143