Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rmw_security_common #803

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Jan 30, 2025

Depends on ros2/rmw#388

Move some functionality from rmw_dds_common to a new package called rmw_security_common

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@@ -344,9 +350,15 @@ rmw_fastrtps_shared_cpp::create_participant(
"dds.sec.access.builtin.Access-Permissions.permissions",
security_files_paths["PERMISSIONS"]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
security_files_paths["PERMISSIONS"]);
std::string(rcutils_string_map_get(&security_files_paths, "PERMISSIONS")));

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applies also to lines 345 and 348

Comment on lines +359 to +361
ret = rcutils_string_map_fini(&security_files);
if (ret != RMW_RET_OK) {
RMW_SET_ERROR_MSG("Failed to fini string map for security");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we replace this with rcpputils::make_scope_exit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants