From dfb996048158bc434d25baf010fb468a3464adb3 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Tue, 15 Mar 2022 12:03:47 +0100 Subject: [PATCH] Refs #13521. Remove processing of endpoint properties. Signed-off-by: Miguel Company --- src/cpp/rtps/security/SecurityManager.cpp | 52 ----------------------- 1 file changed, 52 deletions(-) diff --git a/src/cpp/rtps/security/SecurityManager.cpp b/src/cpp/rtps/security/SecurityManager.cpp index 54ba356ec2a..4e88f42d451 100644 --- a/src/cpp/rtps/security/SecurityManager.cpp +++ b/src/cpp/rtps/security/SecurityManager.cpp @@ -2492,32 +2492,6 @@ bool SecurityManager::get_datawriter_sec_attributes( returned_value = false; } } - else - { - // Get properties. - const std::string* property_value = PropertyPolicyHelper::find_property(writer_properties, - "rtps.endpoint.submessage_protection_kind"); - - if (property_value != nullptr && property_value->compare("ENCRYPT") == 0) - { - security_attributes.is_submessage_protected = true; - security_attributes.plugin_endpoint_attributes |= - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_VALID | - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_SUBMESSAGE_ENCRYPTED; - } - - property_value = PropertyPolicyHelper::find_property(writer_properties, - "rtps.endpoint.payload_protection_kind"); - - if (property_value != nullptr && property_value->compare("ENCRYPT") == 0) - { - security_attributes.is_payload_protected = true; - security_attributes.is_key_protected = true; - security_attributes.plugin_endpoint_attributes |= - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_VALID | - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_PAYLOAD_ENCRYPTED; - } - } return returned_value; } @@ -2700,32 +2674,6 @@ bool SecurityManager::get_datareader_sec_attributes( returned_value = false; } } - else - { - // Get properties. - const std::string* property_value = PropertyPolicyHelper::find_property(reader_properties, - "rtps.endpoint.submessage_protection_kind"); - - if (property_value != nullptr && property_value->compare("ENCRYPT") == 0) - { - security_attributes.is_submessage_protected = true; - security_attributes.plugin_endpoint_attributes |= - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_VALID | - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_SUBMESSAGE_ENCRYPTED; - } - - property_value = PropertyPolicyHelper::find_property(reader_properties, - "rtps.endpoint.payload_protection_kind"); - - if (property_value != nullptr && property_value->compare("ENCRYPT") == 0) - { - security_attributes.is_payload_protected = true; - security_attributes.is_key_protected = true; - security_attributes.plugin_endpoint_attributes |= - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_VALID | - PLUGIN_ENDPOINT_SECURITY_ATTRIBUTES_FLAG_IS_PAYLOAD_ENCRYPTED; - } - } return returned_value; }