Retrieves the authorization tags of a given ACL entry.
- macOS 10.7+
The ACL entry from which you wish to retrieve the authorization tags.
An array containing the authorizations for this entry. Free this object with a call to the
CFRelease method when you are done with it.
An ACL instance includes a list of trusted apps, the name of the keychain item as it appears in user prompts, the prompt selector flag, and a list of one or more operations to which this ACL entry applies. Use this method to retrieve the list of operations for an ACL entry. Use the
Sec method to retrieve the other information.
Sec method returns an error if there are more tags to return than the number of elements you allocated in the
tags array. A 20-element array should suffice for most purposes; however, you can test for the
err error and increase the size of the array before calling the method again if necessary. Alternatively, you can call the method with a tag count of
0, read the value returned in the
tag parameter, and then call the method again using that value.