Several Keychain Manager functions display dialog boxes that request user interaction for keychain-related activities. These include locking and unlocking a keychain, setting up and accesing a keychain, and supplying and modifying passwords. Some of these functions are called mostly by Keychain Manager functions, while others are called by applications.
For example, many Keychain Manager functions call the functions
KCUnlock
and
KCLock
to display a dialog box that queries the user for their passphrase in order to unlock or lock a keychain. Typically, your application would not need to call these functions.
Your application can call the function
KCChangeSettings
to display a dialog box that enables the user to change the name, password, and settings associated with a keychain. To specify the default keychain, pass
NULL
in the
keychain
parameter.
You should call the function
KCSetInteractionAllowed
to enable or disable Keychain Manager functions that display a user interface. Pass
true
in the
state
parameter to enable user interaction. Note that failure to reenable user interaction will affect other clients of the Keychain Manager. You can call the function
KCIsInteractionAllowed
to determine whether Keychain Manager functions that display user interface will do so.