Function rcl_security_enabled

Function Documentation

rcl_ret_t rcl_security_enabled(bool *use_security)

Check if security has to be used, according to the environment.

If the ROS_SECURITY_ENABLE environment variable is set to “true”, use_security will be set to true.

Parameters:

use_security[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.