Function rcl_get_enforcement_policy

Function Documentation

rcl_ret_t rcl_get_enforcement_policy(rmw_security_enforcement_policy_t *policy)

Get security enforcement policy from the environment.

Sets policy based on the value of the ROS_SECURITY_STRATEGY environment variable. If ROS_SECURITY_STRATEGY is “Enforce”, policy will be RMW_SECURITY_ENFORCEMENT_ENFORCE. If not, policy will be RMW_SECURITY_ENFORCEMENT_PERMISSIVE.

Parameters:

policy[out] Must not be NULL.

Returns:

RCL_RET_INVALID_ARGUMENT if an argument is not valid, or

Returns:

RCL_RET_ERROR if an unexpected error happened, or

Returns:

RCL_RET_OK.