Function

SecKeychainSetSettings

Changes the settings of a keychain.

Declaration

OSStatus SecKeychainSetSettings(SecKeychainRef keychain, const SecKeychainSettings *newSettings);

Parameters

keychain

A reference to a keychain whose settings you wish to change. Pass NULL to change the settings of the default keychain.

newSettings

A pointer to a keychain settings structure that defines whether the keychain locks when sleeping, or locks after a set time period of inactivity.

Return Value

See Also

Settings

SecKeychainCopySettings

Obtains a keychain’s settings.

SecKeychainSettings

A structure that contains information about keychain settings.

SEC_KEYCHAIN_SETTINGS_VERS1

Defines the keychain settings version.