Kea: auth_messages.cc Source File

| Kea 3.2.0-git

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_PASSWORD_SECURITY_WARNING = "HTTP_CLIENT_PASSWORD_SECURITY_WARNING";
11extern const isc::log::MessageID HTTP_CLIENT_REQUEST_AUTHORIZED = "HTTP_CLIENT_REQUEST_AUTHORIZED";
12extern const isc::log::MessageID HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER = "HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER";
13extern const isc::log::MessageID HTTP_CLIENT_REQUEST_NOT_AUTHORIZED = "HTTP_CLIENT_REQUEST_NOT_AUTHORIZED";
14extern const isc::log::MessageID HTTP_CLIENT_REQUEST_NO_AUTH_HEADER = "HTTP_CLIENT_REQUEST_NO_AUTH_HEADER";
15extern const isc::log::MessageID HTTP_CLIENT_USER_SECURITY_WARNING = "HTTP_CLIENT_USER_SECURITY_WARNING";
16
17} // namespace http
18} // namespace isc
19
20namespace {
21
22const char* values[] = {
23 "HTTP_CLIENT_PASSWORD_SECURITY_WARNING", "use of clear text 'password' is NOT SECURE: %1",
24 "HTTP_CLIENT_REQUEST_AUTHORIZED", "received HTTP request authorized for '%1'",
25 "HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER", "received HTTP request with malformed authentication header: %1",
26 "HTTP_CLIENT_REQUEST_NOT_AUTHORIZED", "received HTTP request with not matching authentication header",
27 "HTTP_CLIENT_REQUEST_NO_AUTH_HEADER", "received HTTP request without required authentication header",
28 "HTTP_CLIENT_USER_SECURITY_WARNING", "use of clear text 'user' is NOT SECURE: %1",
29 NULL
30};
31
32const isc::log::MessageInitializer initializer(values);
33
34} // Anonymous namespace
35
isc::log::MessageInitializer
Initialize Message Dictionary.
Definition message_initializer.h:72
message_initializer.h
message_types.h
isc::http
Definition auth_config.h:19
isc::http::HTTP_CLIENT_PASSWORD_SECURITY_WARNING
const isc::log::MessageID HTTP_CLIENT_PASSWORD_SECURITY_WARNING
Definition auth_messages.h:11
isc::http::HTTP_CLIENT_REQUEST_NOT_AUTHORIZED
const isc::log::MessageID HTTP_CLIENT_REQUEST_NOT_AUTHORIZED
Definition auth_messages.h:14
isc::http::HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER
const isc::log::MessageID HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER
Definition auth_messages.h:13
isc::http::HTTP_CLIENT_USER_SECURITY_WARNING
const isc::log::MessageID HTTP_CLIENT_USER_SECURITY_WARNING
Definition auth_messages.h:16
isc::http::HTTP_CLIENT_REQUEST_AUTHORIZED
const isc::log::MessageID HTTP_CLIENT_REQUEST_AUTHORIZED
Definition auth_messages.h:12
isc::http::HTTP_CLIENT_REQUEST_NO_AUTH_HEADER
const isc::log::MessageID HTTP_CLIENT_REQUEST_NO_AUTH_HEADER
Definition auth_messages.h:15
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 check_exists_add.cc:18