11 #ifdef OPENDDS_SECURITY 24 #ifndef OPENDDS_UTIL_BUILD 31 #ifdef OPENDDS_SECURITY 38 #ifdef OPENDDS_SECURITY 40 security_debug.set_debug_level(1);
42 security_debug.set_all_flags_to(
false);
46 if (DCPS_debug_level == 0) {
51 #ifndef OPENDDS_UTIL_BUILD 52 Transport_debug_level = 0;
59 struct LogLevelNameValue {
63 static const LogLevelNameValue log_levels[] = {
75 for (
size_t i = 0; i <
array_count(log_levels); ++i) {
76 if (!std::strcmp(log_levels[i].name, name)) {
77 set(log_levels[i].value);
83 "Invalid log level name: %C\n", name));
89 const unsigned index =
static_cast<unsigned>(
get());
92 "Invalid log level value: %u\n", index));
95 return log_levels[index].name;
104 ACE_DEBUG((
LM_INFO,
"(%P|%t) INFO: set_DCPS_debug_level: set to %u\n", lvl));
106 DCPS_debug_level = lvl;
109 #ifdef OPENDDS_SECURITY 111 : fake_encryption(false)
112 , force_auth_role(FORCE_AUTH_ROLE_NORMAL)
139 const size_t pos = s.find(delim);
140 const String flag = s.substr(0, pos);
144 }
else if (flag ==
"encdec_error") {
146 }
else if (flag ==
"encdec_warn") {
148 }
else if (flag ==
"encdec_debug") {
150 }
else if (flag ==
"auth_debug") {
152 }
else if (flag ==
"auth_warn") {
154 }
else if (flag ==
"new_entity_error") {
156 }
else if (flag ==
"new_entity_warn") {
158 }
else if (flag ==
"cleanup_error") {
160 }
else if (flag ==
"access_error") {
162 }
else if (flag ==
"access_warn") {
164 }
else if (flag ==
"bookkeeping") {
166 }
else if (flag ==
"showkeys") {
168 }
else if (flag ==
"chlookup") {
172 "Unknown Security Debug Category: \"%C\"\n", flag.c_str()));
175 if (pos == String::npos) {
178 s.erase(0, pos + delim.length());
void set_all_flags_to(bool value)
Set all security debug message flags to this value.
void set_from_string(const char *name)
const LogLevel::Value value
bool chlookup
Print Verbose Search Info About Getting the Crypto Handle from a Key id.
OpenDDS_Dcps_Export TransportDebug transport_debug
#define OpenDDS_Dcps_Export
size_t array_count(Type(&)[count])
#define ACE_TEXT_ALWAYS_CHAR(STRING)
bool auth_debug
Authentication and Handshake.
bool cleanup_error
Cleanup.
bool access_error
Permissions and Governance.
OpenDDS_Dcps_Export unsigned int Transport_debug_level
Transport Logging verbosity level.
OpenDDS_Dcps_Export void set_DCPS_debug_level(unsigned int lvl)
void parse_flags(const ACE_TCHAR *flags)
bool bookkeeping
Generation and Tracking of Crypto Handles and Keys.
OpenDDS_Dcps_Export unsigned int DCPS_debug_level
OpenDDS_Dcps_Export LogLevel log_level
void set_debug_level(unsigned level)
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
bool showkeys
Print the Key when Generating it or Using It.
bool new_entity_error
New entity creating.
const char * get_as_string() const
The Internal API and Implementation of OpenDDS.
OpenDDS_Dcps_Export SecurityDebug security_debug