AuthorizationRightGet

Function AuthorizationRightGet 

Source
pub unsafe extern "C-unwind" fn AuthorizationRightGet(
    right_name: NonNull<c_char>,
    right_definition: *mut *const CFDictionary,
) -> i32
Available on crate feature AuthorizationDB only.
Expand description

Retrieves a right definition as a dictionary. There are no restrictions to keep anyone from retrieving these definitions.

Parameter rightName: (input) the rightname (ASCII). Wildcard rightname definitions are okay.

Parameter rightDefinition: (output/optional) the dictionary with all keys defining the right. See documented keys. Passing in NULL will just check if there is a definition. The caller is responsible for releasing the returned dictionary.

Returns: errAuthorizationSuccess 0 No error.

errAuthorizationDenied -60005 No definition found.

ยงSafety

  • right_name must be a valid pointer.
  • right_definition must be a valid pointer or null.