Function rcl_validate_enclave_name_with_size

Function Documentation

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

Deterimine if a given enclave name is valid.

This is an overload of rcl_validate_enclave_name() with an extra parameter for the length of enclave.

Parameters:
  • enclave[in] enclave to be validated

  • enclave_length[in] The number of characters in enclave

  • 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.