Function rcl_get_enforcement_policy
Defined in File security.h
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 theROS_SECURITY_STRATEGY
environment variable. IfROS_SECURITY_STRATEGY
is “Enforce”,policy
will beRMW_SECURITY_ENFORCEMENT_ENFORCE
. If not,policy
will beRMW_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: