• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/libsecurity_keychain/Security/

Lines Matching refs:item

56 		// keychain item. If it's in a protected group, return the group key
60 // key item, return the key itself.
90 Item item(itemClass, attrList, length, data);
92 item->setAccess(Access::required(initialAccess));
105 keychain = globals().storageManager.defaultKeychainUI(item);
108 keychain->add(item);
110 *itemRef = item->handle();
119 Item item = ItemImpl::required(itemRef);
120 item->modifyContent(attrList, length, data);
129 Item item = ItemImpl::required(itemRef);
130 item->getContent(itemClass, attrList, length, outData);
148 Item item = ItemImpl::required(itemRef);
149 item->modifyAttributesAndData(attrList, length, data);
158 Item item = ItemImpl::required(itemRef);
159 item->getAttributesAndData(info, itemClass, attrList, length, outData);
177 Item item = ItemImpl::required( itemRef );
178 Keychain keychain = item->keychain();
179 // item must be persistent.
183 * Before deleting the item, delete any existing Extended Attributes.
197 /* now delete the item */
198 keychain->deleteItem( item );
207 // make sure this item has a keychain
297 /* Sets an item's data for legacy "KC" CoreServices APIs.
298 Note this version sets the data, but doesn't update the item
308 /* Gets an item's data for legacy "KC" CoreServices APIs.
333 /* Update a keychain item for legacy "KC" CoreServices APIs.
343 /* Add a 'floating' keychain item without UI for legacy "KC" CoreServices APIs.
348 Item item = ItemImpl::required(itemRef);
349 Keychain::optional(keychainRef)->add(item);
353 /* Add a 'floating' keychain item to the default keychain with possible UI for legacy "KC" Carbon APIs.
358 Item item = ItemImpl::required(itemRef);
359 Keychain defaultKeychain = globals().storageManager.defaultKeychainUI(item);
360 defaultKeychain->add(item);
364 /* Creates a floating keychain item for legacy "KC" CoreServices APIs
391 /* Finds a keychain item for legacy "KC" CoreServices APIs.
405 Item item;
406 if (!cursor->next(item))
409 *itemRef=item->handle();
419 Item item;
424 item = ItemImpl::required((SecKeychainItemRef)certificateRef);
427 item = ItemImpl::required(itemRef);
429 item->copyPersistentReference(*persistentItemRef, isIdentityRef);
439 Item item = ItemImpl::makeFromPersistentReference(persistentItemRef, &isIdentityRef);
441 // item was stored as an identity, attempt to reconstitute it
442 SecPointer<Certificate> certificatePtr(static_cast<Certificate *>(item.get()));
450 result = item->handle();
461 Item item = ItemImpl::required(itemRef);
462 item->copyRecordIdentifier (data);
508 // make the unique record item -- precursor to creation of a SecKeychainItemRef
514 Item item = keychain->item (recordType, unique);
517 *itemRef = item->handle();
532 Item item(itemClass, (uint32) 0, length, data, true);
534 item->setAccess(Access::required(initialAccess));
542 item->doNotEncrypt ();
545 keychain->add(item);
551 // the only time this should happen is if the item is a certificate (for keychain syncing)
571 // add the item again
572 keychain->add(item);
582 *itemRef = item->handle();
585 item->copyRecordIdentifier (recordID);
597 Item item = ItemImpl::required(itemRef);
598 item->doNotEncrypt ();
599 item->getAttributesAndData(info, itemClass, attrList, length, outData);
606 Item item = ItemImpl::required(itemRef);
607 item->doNotEncrypt ();
608 item->modifyAttributesAndData(NULL, length, data);