pub unsafe extern "C" fn SecTranslocateCreateSecureDirectoryForURL(
    path_to_translocate: _Nonnull<CFURLRef>,
    destination_path: _Nullable<CFURLRef>,
    error: _Nullable<*mut CFErrorRef>,
) -> _Nullable<CFURLRef>
Expand description

Create a CFURL pointing to a translocated location from which to access the directory specified by pathToTranslocate.

§Arguments

  • path_to_translocate - URL of the directory to be accessed from a translocated location.
  • destination_path - URL where the directory of interest should be translocated, or NULL for a random UUID location
  • error - On error will be populated with an error object describing the failure (a posix domain error such as EINVAL)

§Return

A CFURL pointing to the translocated location of the directory.

§Discussion

https://github.com/apple-oss-distributions/Security/blob/rel/Security-59754/OSX/libsecurity_translocate/lib/SecTranslocate.h#L71-L96