Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

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 10, 2020
1 parent d7865c3 commit fa3ec8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rmw_connext_shared_cpp/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ create_node(
size_t length = std::snprintf(
nullptr,
0,
"name=%s;namespace=%s;securitycontext=%s;",
"name=%s;namespace=%s;enclave=%s;",
name, namespace_, context->options.enclave) + 1;
bool success = participant_qos.user_data.value.length(static_cast<DDS::Long>(length));
if (!success) {
Expand All @@ -87,7 +87,7 @@ create_node(
int written = std::snprintf(
reinterpret_cast<char *>(participant_qos.user_data.value.get_contiguous_buffer()),
length,
"name=%s;namespace=%s;securitycontext=%s;",
"name=%s;namespace=%s;enclave=%s;",
name, namespace_, context->options.enclave);
if (written < 0 || written > static_cast<int>(length) - 1) {
RMW_SET_ERROR_MSG("failed to populate user_data buffer");
Expand Down
2 changes: 1 addition & 1 deletion rmw_connext_shared_cpp/src/node_names.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ get_node_names_impl(

auto name_found = map.find("name");
auto ns_found = map.find("namespace");
auto enclave_found = map.find("securitycontext");
auto enclave_found = map.find("enclave");

if (name_found != map.end()) {
name = std::string(name_found->second.begin(), name_found->second.end());
Expand Down

0 comments on commit fa3ec8c

Please sign in to comment.