Structure

SecKeychainCallbackInfo

Information about a keychain event that keychain services deliver to your app via a callback function.

Declaration

struct SecKeychainCallbackInfo

Overview

This structure contains information about the keychain event of which your application wants to be notified. Keychain services pass a pointer to this structure in the info parameter of your callback function. For information on how to write a keychain event callback function, see SecKeychainCallback.

Topics

Instance Properties

var item: Unmanaged<SecKeychainItem>

A reference to the keychain item in which the event occurred. If the event did not involve an item, this field is not valid.

var keychain: Unmanaged<SecKeychain>

A reference to the keychain in which the event occurred. If the event did not involve a keychain, this field is not valid.

var pid: pid_t

The ID of the process that generated this event.

var version: UInt32

The version of this structure.

See Also

Callbacks

func SecKeychainRemoveCallback(SecKeychainCallback) -> OSStatus

Unregisters your keychain event callback function.

typealias SecKeychainCallback

A customized callback function that keychain services call when a keychain event has occurred.

enum SecKeychainEvent

The list of keychain events that can trigger a callback.

struct SecKeychainEventMask

Bit masks corresponding to the events that can trigger a keychain callback.