Function rcl_validate_enclave_name

Function Documentation

rcl_ret_t rcl_validate_enclave_name(const char *enclave, int *validation_result, size_t *invalid_index)

Determine if a given enclave name is valid.

The same rules as rmw_validate_namespace() are used. The only difference is in the maximum allowed length, which can be up to 255 characters.

Parameters:
  • enclave[in] enclave to be validated

  • validation_result[out] int in which the result of the check is stored

  • invalid_index[out] index of the input string where an error occurred

Returns:

RCL_RET_OK on successfully running the check, or

Returns:

RCL_RET_INVALID_ARGUMENT on invalid parameters, or

Returns:

RCL_RET_ERROR when an unspecified error occurs.