diff --git a/include/fastdds/rtps/attributes/EndpointAttributes.h b/include/fastdds/rtps/attributes/EndpointAttributes.h index 5fdd9b99113..6451c9eda18 100644 --- a/include/fastdds/rtps/attributes/EndpointAttributes.h +++ b/include/fastdds/rtps/attributes/EndpointAttributes.h @@ -162,7 +162,7 @@ class EndpointAttributes int16_t m_entityID = -1; #if HAVE_SECURITY - //! Security attributes + //! Security attributes security::EndpointSecurityAttributes security_attributes_; #endif // HAVE_SECURITY diff --git a/include/fastrtps/qos/ParameterTypes.h b/include/fastrtps/qos/ParameterTypes.h index ed6a324df50..001390f13cd 100644 --- a/include/fastrtps/qos/ParameterTypes.h +++ b/include/fastrtps/qos/ParameterTypes.h @@ -37,7 +37,7 @@ namespace eprosima { namespace fastrtps { #if HAVE_SECURITY -namespace rtps{ +namespace rtps { namespace security { struct ParticipantSecurityAttributes; } /* namespace security */ diff --git a/src/cpp/rtps/attributes/EndpointSecurityAttributes.cpp b/src/cpp/rtps/attributes/EndpointSecurityAttributes.cpp index 56d4fbf0a22..80bb5d66dd4 100644 --- a/src/cpp/rtps/attributes/EndpointSecurityAttributes.cpp +++ b/src/cpp/rtps/attributes/EndpointSecurityAttributes.cpp @@ -87,10 +87,9 @@ bool EndpointSecurityAttributes::match( const PluginEndpointSecurityAttributesMask remotePluginMask) const { return security_mask_matches(mask(), remoteMask) && - security_mask_matches(plugin_endpoint_attributes, remotePluginMask); + security_mask_matches(plugin_endpoint_attributes, remotePluginMask); } - } // namespace security } // namespace rtps } // namespace fastrtps