SecItemUpdate

Function SecItemUpdate 

Source
pub unsafe extern "C-unwind" fn SecItemUpdate(
    query: &CFDictionary,
    attributes_to_update: &CFDictionary,
) -> i32
Available on crate feature SecItem only.
Expand description

Modify zero or more items which match a search query.

Parameter query: A dictionary containing an item class specification and optional attributes for controlling the search. See the “Attribute Constants” and “Search Constants” sections for a description of currently defined search attributes.

Parameter attributesToUpdate: A dictionary containing one or more attributes whose values should be set to the ones specified. Only real keychain attributes are permitted in this dictionary (no “meta” attributes are allowed.) See the “Attribute Key Constants” section for a description of currently defined value attributes.

Returns: A result code. See “Security Error Codes” (SecBase.h).

Attributes defining a search are specified by adding key/value pairs to the query dictionary.

§Safety

  • query generics must be of the correct type.
  • attributes_to_update generics must be of the correct type.