Creates a search object matching a list of zero or more attributes.
- macOS 10.0–10.7Deprecated
A reference to an array of keychains to search, a single keychain, or
NULLto search the user’s current keychain search list. Use the function
Secto retrieve the user’s default search list.
Keychain Copy Search List
The keychain item class. See
Secfor valid constants.
A pointer to a list of zero or more keychain attribute records to match. Pass
NULLto match any keychain attribute.
On return, a pointer to the current search object. You must call the
CFReleasefunction to release this object when you are finished using it.
A result code. See Security Framework Result Codes.
Each item stored in the keychain contains data (such as a certificate), which is indexed by the item’s attributes. You look up an item in a keychain by its attributes. If you find a match, you can then retrieve the item’s data. Use the search object created by this function as input to the
Sec function to find a keychain item and the
Sec function to retrieve the item’s data.