MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / qos_implies_security

Method qos_implies_security

dds/DCPS/security/framework/SecurityConfig.cpp:73–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool SecurityConfig::qos_implies_security(const DDS::DomainParticipantQos& qos) const {
74 const DDS::PropertySeq& properties = qos.property.value;
75 for (unsigned int idx = 0; idx != properties.length(); ++idx) {
76 const char* name = properties[idx].name.in();
77 if (std::strcmp(DDS::Security::Properties::AuthIdentityCA, name) == 0 ||
78 std::strcmp(DDS::Security::Properties::AuthIdentityCertificate, name) == 0 ||
79 std::strcmp(DDS::Security::Properties::AuthPrivateKey, name) == 0 ||
80 std::strcmp(DDS::Security::Properties::AccessPermissionsCA, name) == 0 ||
81 std::strcmp(DDS::Security::Properties::AccessGovernance, name) == 0 ||
82 std::strcmp(DDS::Security::Properties::AccessPermissions, name) == 0) {
83 return true;
84 }
85 }
86 return false;
87}
88
89}
90}

Callers 1

enableMethod · 0.80

Calls 2

lengthMethod · 0.45
inMethod · 0.45

Tested by

no test coverage detected