Skip to content

Commit

Permalink
Pass the CRL down to Fast-DDS if available. (#546)
Browse files Browse the repository at this point in the history
If the rmw_dds_common layer tells us that a CRL file is
available, set the appropriate property so Fast-DDS will
honor it.

Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
  • Loading branch information
clalancette authored Jul 8, 2021
1 parent 771590d commit aefad30
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rmw_fastrtps_shared_cpp/src/participant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ rmw_fastrtps_shared_cpp::create_participant(
"dds.sec.access.builtin.Access-Permissions.permissions",
security_files_paths["PERMISSIONS"]);

if (security_files_paths.count("CRL") > 0) {
property_policy.properties().emplace_back(
"dds.sec.auth.builtin.PKI-DH.identity_crl", security_files_paths["CRL"]);
}

// Configure security logging
if (!apply_security_logging_configuration(property_policy)) {
return nullptr;
Expand Down

0 comments on commit aefad30

Please sign in to comment.