Creates a trusted app instance based on the app at the given path in the file system.
- macOS 10.0–10.15Deprecated
The path to the app to trust. For application bundles, use the path to the bundle directory. Pass
nilto refer to the calling app.
On return, points to the newly created trusted app instance. Call the
CFReleasemethod to release this instance when you are finished using it.
A result code. See Security Framework Result Codes.
Use this method to create a trusted app instance, which both identifies an app and provides data that can be used to ensure that the app hasn’t been altered since the instance was created.
You can use the created instance as input to the
Sec method, which creates an access instance. The access instance, in turn, is used as input to the
Sec function to specify the set of apps that are trusted to access a specific keychain item.