Skip to content

Commit

Permalink
securitycontext -> enclave
Browse files Browse the repository at this point in the history
Signed-off-by: Mikael Arguedas <mikael.arguedas@gmail.com>
  • Loading branch information
mikaelarguedas committed Apr 9, 2020
1 parent 21225ed commit ca58f48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ParticipantListener : public eprosima::fastrtps::ParticipantListener
case eprosima::fastrtps::rtps::ParticipantDiscoveryInfo::DISCOVERED_PARTICIPANT:
{
auto map = rmw::impl::cpp::parse_key_value(info.info.m_userData);
auto name_found = map.find("securitycontext");
auto name_found = map.find("enclave");

if (name_found == map.end()) {
return;
Expand Down
4 changes: 2 additions & 2 deletions rmw_fastrtps_shared_cpp/src/participant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ rmw_fastrtps_shared_cpp::create_participant(

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

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

0 comments on commit ca58f48

Please sign in to comment.