Function

SecKeychainItemCopyFromPersistentReference

Provides a keychain item reference, given a persistent reference.

Declaration

OSStatus SecKeychainItemCopyFromPersistentReference(CFDataRef persistentItemRef, SecKeychainItemRef  _Nullable *itemRef);

Parameters

persistentItemRef

A persistent reference for a keychain item.

itemRef

On return, a keychain item reference for the item for which you provided a persistent reference. You must call the CFRelease function to release this object when you are finished using it.

Return Value

Discussion

A persistent reference may be stored on disk or passed between processes. You use the SecKeychainItemCreatePersistentReference function to create a persistent reference.

See Also

Legacy Keychain Item Creation

SecKeychainItemCreateFromContent

Creates a new keychain item from the supplied parameters.

SecKeychainItemCreateCopy

Copies a keychain item from one keychain to another.

SecKeychainItemCreatePersistentReference

Creates a persistent reference for a keychain item.

SecItemClass

Specifies a keychain item’s class code.