AuthorizationFree

Function AuthorizationFree 

Source
pub unsafe extern "C-unwind" fn AuthorizationFree(
    authorization: AuthorizationRef,
    flags: AuthorizationFlags,
) -> i32
Available on crate feature Authorization only.
Expand description

Destroy an AutorizationRef object. If the kAuthorizationFlagDestroyRights flag is passed, any rights associated with the authorization are lost. Otherwise, only local resources are released, and the rights may still be available to other clients.

Setting the kAuthorizationFlagDestroyRights flag will prevent any rights that were obtained by the specified authorization object to be preserved after returning from this API. This effectivaly locks down all potentially shared authorizations.

Parameter authorization: (input) The authorization object on which this operation is performed.

Parameter flags: (input) Bit mask of option flags to this call.

Returns: errAuthorizationSuccess 0 No error.

errAuthorizationInvalidRef -60002 The authorization parameter is invalid.

ยงSafety

authorization must be a valid pointer.