@@ -191,7 +191,7 @@ __create_participant_info_message(
191191void
192192GraphCache::add_participant (
193193 const rmw_gid_t & participant_gid,
194- const std::string & security_context )
194+ const std::string & enclave )
195195{
196196 std::lock_guard<std::mutex> guard (mutex_);
197197 auto it = participants_.find (participant_gid);
@@ -203,7 +203,7 @@ GraphCache::add_participant(
203203 it = ret.first ;
204204 assert (ret.second );
205205 }
206- it->second .security_context = security_context ;
206+ it->second .enclave = enclave ;
207207 GRAPH_CACHE_CALL_ON_CHANGE_CALLBACK (this );
208208}
209209
@@ -924,7 +924,7 @@ rmw_ret_t
924924GraphCache::get_node_names (
925925 rcutils_string_array_t * node_names,
926926 rcutils_string_array_t * node_namespaces,
927- rcutils_string_array_t * security_contexts ,
927+ rcutils_string_array_t * enclaves ,
928928 rcutils_allocator_t * allocator) const
929929{
930930 std::lock_guard<std::mutex> guard (mutex_);
@@ -935,8 +935,8 @@ GraphCache::get_node_names(
935935 return RMW_RET_INVALID_ARGUMENT;
936936 }
937937 if (
938- security_contexts &&
939- RMW_RET_OK != rmw_check_zero_rmw_string_array (security_contexts ))
938+ enclaves &&
939+ RMW_RET_OK != rmw_check_zero_rmw_string_array (enclaves ))
940940 {
941941 return RMW_RET_INVALID_ARGUMENT;
942942 }
@@ -960,9 +960,9 @@ GraphCache::get_node_names(
960960 RMW_SET_ERROR_MSG (error_msg.str );
961961 goto fail;
962962 }
963- if (security_contexts ) {
963+ if (enclaves ) {
964964 rcutils_ret =
965- rcutils_string_array_init (security_contexts , nodes_number, allocator);
965+ rcutils_string_array_init (enclaves , nodes_number, allocator);
966966 if (RCUTILS_RET_OK != rcutils_ret) {
967967 rcutils_error_string_t error_msg = rcutils_get_error_string ();
968968 rcutils_reset_error ();
@@ -984,10 +984,10 @@ GraphCache::get_node_names(
984984 if (!node_namespaces->data [j]) {
985985 goto fail;
986986 }
987- if (security_contexts ) {
988- security_contexts ->data [j] = rcutils_strdup (
989- nodes_info.security_context .c_str (), *allocator);
990- if (!security_contexts ->data [j]) {
987+ if (enclaves ) {
988+ enclaves ->data [j] = rcutils_strdup (
989+ nodes_info.enclave .c_str (), *allocator);
990+ if (!enclaves ->data [j]) {
991991 goto fail;
992992 }
993993 }
@@ -1036,7 +1036,7 @@ rmw_dds_common::operator<<(std::ostream & ostream, const GraphCache & graph_cach
10361036 ss << " Discovered participants:" << std::endl;
10371037 for (const auto & item : graph_cache.participants_ ) {
10381038 ss << " gid: '" << item.first << std::endl;
1039- ss << " security context name '" << item.second .security_context << std::endl;
1039+ ss << " enclave name '" << item.second .enclave << std::endl;
10401040 ss << " nodes:" << std::endl;
10411041 for (const auto & node_info : item.second .node_entities_info_seq ) {
10421042 ss << " namespace: '" << node_info.node_namespace << " ' name: '" <<
0 commit comments