Skip to content

Commit a29fbb9

Browse files
securitycontext -> enclave
Signed-off-by: Mikael Arguedas <[email protected]>
1 parent c046680 commit a29fbb9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rmw_fastrtps_shared_cpp/include/rmw_fastrtps_shared_cpp/custom_participant_info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ParticipantListener : public eprosima::fastrtps::ParticipantListener
7373
case eprosima::fastrtps::rtps::ParticipantDiscoveryInfo::DISCOVERED_PARTICIPANT:
7474
{
7575
auto map = rmw::impl::cpp::parse_key_value(info.info.m_userData);
76-
auto name_found = map.find("securitycontext");
76+
auto name_found = map.find("enclave");
7777

7878
if (name_found == map.end()) {
7979
return;

rmw_fastrtps_shared_cpp/src/participant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ rmw_fastrtps_shared_cpp::create_participant(
167167

168168
participantAttrs.rtps.builtin.domainId = static_cast<uint32_t>(domain_id);
169169

170-
size_t length = snprintf(nullptr, 0, "securitycontext=%s;", enclave) + 1;
170+
size_t length = snprintf(nullptr, 0, "enclave=%s;", enclave) + 1;
171171
participantAttrs.rtps.userData.resize(length);
172172
int written = snprintf(
173173
reinterpret_cast<char *>(participantAttrs.rtps.userData.data()),
174-
length, "securitycontext=%s;", enclave);
174+
length, "enclave=%s;", enclave);
175175
if (written < 0 || written > static_cast<int>(length) - 1) {
176176
RMW_SET_ERROR_MSG("failed to populate user_data buffer");
177177
return nullptr;

0 commit comments

Comments
 (0)