Function

SecItemUpdate(_:_:)

Modifies items that match a search query.

Declaration

func SecItemUpdate(_ query: CFDictionary, _ attributesToUpdate: CFDictionary) -> OSStatus

Parameters

query

A dictionary that describes the search for the keychain items you want to update.

attributesToUpdate

A dictionary containing the attributes whose values should be changed, along with the new values. Only real keychain attributes are permitted in this dictionary (no "meta" attributes are allowed.) See Item Attribute Keys and Values.

Return Value

Discussion

See the SecItemCopyMatching(_:_:) function for information about how to construct a search dictionary.

See Also

Keychain Item Modification

Updating and Deleting Keychain Items

Modify items in the keychain when the user’s data changes.

func SecItemDelete(CFDictionary) -> OSStatus

Deletes items that match a search query.