Function

SecKeychainAttributeInfoForItemID

Obtains tags for all possible attributes of a given item class.

Declaration

OSStatus SecKeychainAttributeInfoForItemID(SecKeychainRef keychain, UInt32 itemID, SecKeychainAttributeInfo * _Nullable *info);

Parameters

keychain

A keychain object.

itemID

The relation identifier of the item tags. An itemID is a CSSM_DB_RECORDTYPE type as defined in cssmtype.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

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.

See Also

Legacy Attribute Info

SecKeychainFreeAttributeInfo

Releases the memory acquired by calling the SecKeychainAttributeInfoForItemID function.

SecKeychainAttributeInfo

A structure that represents an attribute.

SecItemAttr

Specifies a keychain item’s attributes.

Keychain Item Attribute Constants For Keys

Specifies the attributes for a key item in a keychain.

SecAFPServerSignature

Represents a 16-byte Apple File Protocol server signature block.