SecKeychainAttributeInfoForItemID(_:_:_:)
Obtains tags for all possible attributes of a given item class.
Declaration
func SecKeychainAttributeInfoForItemID(_ keychain: SecKeychain?, _ itemID: UInt32, _ info: UnsafeMutablePointer<UnsafeMutablePointer<SecKeychainAttributeInfo>?>) -> OSStatusParameters
- keychain:
A keychain object.
- itemID:
The relation identifier of the item tags. An
itemIDis aCSSM_DB_RECORDTYPEtype as defined incssmtype.h. - info:
On return, a pointer to the keychain attribute information. Your application should call the Seckeychainfreeattributeinfo(_:) function to release this structure when done with it.
Return Value
A result code. See Security Framework Result Codes.
Discussion
This call returns more attributes than are supported by the old style Keychain API and passing them into older calls yields an invalid attribute error. The recommended call to retrieve the attribute values is the SecKeychainItemCopyAttributesAndData(_:_:_:_:_:_:) function.