17 #ifndef RCL__SECURITY_H_
18 #define RCL__SECURITY_H_
29 #include "rcl/visibility_control.h"
30 #include "rmw/security_options.h"
32 #ifndef ROS_SECURITY_ENCLAVE_OVERRIDE
34 # define ROS_SECURITY_ENCLAVE_OVERRIDE "ROS_SECURITY_ENCLAVE_OVERRIDE"
37 #ifndef ROS_SECURITY_KEYSTORE_VAR_NAME
39 # define ROS_SECURITY_KEYSTORE_VAR_NAME "ROS_SECURITY_KEYSTORE"
42 #ifndef ROS_SECURITY_STRATEGY_VAR_NAME
44 # define ROS_SECURITY_STRATEGY_VAR_NAME "ROS_SECURITY_STRATEGY"
47 #ifndef ROS_SECURITY_ENABLE_VAR_NAME
49 # define ROS_SECURITY_ENABLE_VAR_NAME "ROS_SECURITY_ENABLE"
72 const rcutils_allocator_t * allocator,
73 rmw_security_options_t * security_options);
rcutils_allocator_t rcl_allocator_t
Encapsulation of an allocator.
RCL_PUBLIC rcl_ret_t rcl_get_enforcement_policy(rmw_security_enforcement_policy_t *policy)
Get security enforcement policy from the environment.
RCL_PUBLIC char * rcl_get_secure_root(const char *name, const rcl_allocator_t *allocator)
Return the secure root given a enclave name.
RCL_PUBLIC rcl_ret_t rcl_security_enabled(bool *use_security)
Check if security has to be used, according to the environment.
RCL_PUBLIC rcl_ret_t rcl_get_security_options_from_environment(const char *name, const rcutils_allocator_t *allocator, rmw_security_options_t *security_options)
Initialize security options from values in the environment variables and given names.
rmw_ret_t rcl_ret_t
The type that holds an rcl return code.