Many Keychain Manager functions operate on the default keychain. If there is no default keychain, you can call the function
KCSetDefaultKeychain
to set it. The function
KCGetDefaultKeychain
obtains the default keychain.
The following functions, which operate on the default keychain, automatically unlock it and reset the lock timer when they are through:
KCAddAppleSharePassword
KCFindAppleSharePassword
KCAddInternetPassword
KCAddInternetPasswordWithPath
KCFindInternetPassword
KCFindInternetPasswordWithPath
KCAddGenericPassword
KCFindGenericPassword
KCSetDefaultKeychain
KCUpdateItem
KCAddItem
KCCopyItem
KCDeleteItem
KCFindFirstItem
KCFindNextItem