OpenDDS
Snapshot(2023/04/07-19:43)
|
#include <debug.h>
Public Types | |
enum | ForceAuthRole { FORCE_AUTH_ROLE_NORMAL, FORCE_AUTH_ROLE_LEADER, FORCE_AUTH_ROLE_FOLLOWER } |
Public Member Functions | |
SecurityDebug () | |
void | set_all_flags_to (bool value) |
Set all security debug message flags to this value. More... | |
void | parse_flags (const ACE_TCHAR *flags) |
void | set_debug_level (unsigned level) |
Public Attributes | |
bool | fake_encryption |
Disable all encryption for security, even the required builtin encryption. More... | |
enum OpenDDS::DCPS::SecurityDebug::ForceAuthRole | force_auth_role |
SecurityFlags | |
These are the categories of Security Debug Messages | |
bool | encdec_error |
bool | encdec_warn |
bool | encdec_debug |
bool | auth_debug |
Authentication and Handshake. More... | |
bool | auth_warn |
bool | new_entity_error |
New entity creating. More... | |
bool | new_entity_warn |
bool | cleanup_error |
Cleanup. More... | |
bool | access_error |
Permissions and Governance. More... | |
bool | access_warn |
bool | bookkeeping |
Generation and Tracking of Crypto Handles and Keys. More... | |
bool | showkeys |
Print the Key when Generating it or Using It. More... | |
bool | chlookup |
Print Verbose Search Info About Getting the Crypto Handle from a Key id. More... | |
Force role in authentication handshake. Like fake encryption this will break everything if applied inconsistently.
Enumerator | |
---|---|
FORCE_AUTH_ROLE_NORMAL | |
FORCE_AUTH_ROLE_LEADER | |
FORCE_AUTH_ROLE_FOLLOWER |
Definition at line 152 of file debug.h.
OpenDDS::DCPS::SecurityDebug::SecurityDebug | ( | ) |
Definition at line 110 of file debug.cpp.
References set_all_flags_to().
void OpenDDS::DCPS::SecurityDebug::parse_flags | ( | const ACE_TCHAR * | flags | ) |
Parse a comma delimited string and set the corresponding flags. Unknown ones are ignored and "all" enables all the flags. Ex: "bookkeeping,showkeys"
Definition at line 134 of file debug.cpp.
References access_error, access_warn, ACE_ERROR, ACE_TEXT_ALWAYS_CHAR, auth_debug, auth_warn, bookkeeping, chlookup, cleanup_error, encdec_debug, encdec_error, encdec_warn, LM_WARNING, OpenDDS::DCPS::log_level, new_entity_error, new_entity_warn, set_all_flags_to(), showkeys, and OpenDDS::DCPS::LogLevel::Warning.
Referenced by OpenDDS::DCPS::Service_Participant::load_common_configuration(), and OpenDDS::DCPS::Service_Participant::parse_args().
void OpenDDS::DCPS::SecurityDebug::set_all_flags_to | ( | bool | value | ) |
Set all security debug message flags to this value.
Definition at line 117 of file debug.cpp.
References access_error, access_warn, auth_debug, auth_warn, bookkeeping, chlookup, cleanup_error, encdec_debug, encdec_error, encdec_warn, new_entity_error, new_entity_warn, showkeys, and value.
Referenced by parse_flags(), and SecurityDebug().
void OpenDDS::DCPS::SecurityDebug::set_debug_level | ( | unsigned | level | ) |
Set debug level similarly to DCPSDebugLevel
Definition at line 182 of file debug.cpp.
References access_error, access_warn, auth_debug, auth_warn, bookkeeping, chlookup, cleanup_error, encdec_debug, encdec_error, encdec_warn, new_entity_error, new_entity_warn, OPENDDS_END_VERSIONED_NAMESPACE_DECL, and showkeys.
Referenced by OpenDDS::DCPS::Service_Participant::load_common_configuration(), and OpenDDS::DCPS::Service_Participant::parse_args().
bool OpenDDS::DCPS::SecurityDebug::access_error |
Permissions and Governance.
Definition at line 132 of file debug.h.
Referenced by OpenDDS::Security::XmlUtils::get_parser(), OpenDDS::Security::Governance::Governance(), OpenDDS::Security::Governance::load(), OpenDDS::Security::Permissions::load(), OpenDDS::Security::XmlUtils::parse_domain_id_set(), parse_flags(), OpenDDS::Security::XmlUtils::parse_time(), set_all_flags_to(), set_debug_level(), and OpenDDS::Security::XmlUtils::to_string().
bool OpenDDS::DCPS::SecurityDebug::access_warn |
Encrypting and Decrypting
Definition at line 133 of file debug.h.
Referenced by OpenDDS::Security::Permissions::load(), parse_flags(), set_all_flags_to(), set_debug_level(), and OpenDDS::Security::XmlUtils::to_string().
bool OpenDDS::DCPS::SecurityDebug::auth_debug |
Authentication and Handshake.
Definition at line 121 of file debug.h.
Referenced by parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::auth_warn |
Encrypting and Decrypting
Definition at line 122 of file debug.h.
Referenced by parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::bookkeeping |
Generation and Tracking of Crypto Handles and Keys.
Definition at line 136 of file debug.h.
Referenced by parse_flags(), OpenDDS::Security::CryptoBuiltInImpl::register_local_datareader(), OpenDDS::Security::CryptoBuiltInImpl::register_local_datawriter(), OpenDDS::Security::CryptoBuiltInImpl::register_matched_remote_datareader(), OpenDDS::Security::CryptoBuiltInImpl::register_matched_remote_datawriter(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::chlookup |
Print Verbose Search Info About Getting the Crypto Handle from a Key id.
Definition at line 142 of file debug.h.
Referenced by parse_flags(), OpenDDS::Security::CryptoBuiltInImpl::preprocess_secure_submsg(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::cleanup_error |
Cleanup.
Definition at line 129 of file debug.h.
Referenced by parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::encdec_debug |
Encrypting and Decrypting
Definition at line 118 of file debug.h.
Referenced by OpenDDS::Security::CryptoBuiltInImpl::decode_datareader_submessage(), OpenDDS::Security::CryptoBuiltInImpl::decode_datawriter_submessage(), OpenDDS::Security::CryptoBuiltInImpl::decode_serialized_payload(), parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::encdec_error |
Encrypting and Decrypting
Definition at line 116 of file debug.h.
Referenced by parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::encdec_warn |
Encrypting and Decrypting
Definition at line 117 of file debug.h.
Referenced by OpenDDS::DCPS::RtpsUdpReceiveStrategy::check_encoded(), OpenDDS::DCPS::RtpsUdpReceiveStrategy::decode_payload(), OpenDDS::DCPS::RtpsUdpReceiveStrategy::deliver_from_secure(), parse_flags(), OpenDDS::DCPS::RtpsUdpReceiveStrategy::receive_bytes(), OpenDDS::DCPS::RtpsUdpReceiveStrategy::receive_bytes_helper(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::fake_encryption |
Disable all encryption for security, even the required builtin encryption.
Definition at line 146 of file debug.h.
Referenced by OpenDDS::Security::CryptoBuiltInImpl::decrypt(), OpenDDS::Security::CryptoBuiltInImpl::encrypt(), OpenDDS::DCPS::Service_Participant::load_common_configuration(), and OpenDDS::DCPS::Service_Participant::parse_args().
enum OpenDDS::DCPS::SecurityDebug::ForceAuthRole OpenDDS::DCPS::SecurityDebug::force_auth_role |
bool OpenDDS::DCPS::SecurityDebug::new_entity_error |
New entity creating.
Definition at line 125 of file debug.h.
Referenced by parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::new_entity_warn |
Encrypting and Decrypting
Definition at line 126 of file debug.h.
Referenced by parse_flags(), set_all_flags_to(), and set_debug_level().
bool OpenDDS::DCPS::SecurityDebug::showkeys |
Print the Key when Generating it or Using It.
Definition at line 139 of file debug.h.
Referenced by OpenDDS::Security::CryptoBuiltInImpl::decrypt(), OpenDDS::Security::CryptoBuiltInImpl::encrypt(), parse_flags(), OpenDDS::Security::CryptoBuiltInImpl::register_local_datareader(), OpenDDS::Security::CryptoBuiltInImpl::register_local_datawriter(), OpenDDS::Security::CryptoBuiltInImpl::register_matched_remote_datareader(), OpenDDS::Security::CryptoBuiltInImpl::register_matched_remote_datawriter(), set_all_flags_to(), and set_debug_level().