• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/Security-55471.14.18/sec/Security/Regressions/secitem/

Lines Matching refs:item

2 //  si-12-item-stress.c
28 ok_status(SecItemCopyMatching(dict, &result), "lookup item data by persistent ref");
58 static void ItemForEachAttr(CFMutableDictionaryRef item, void(^each)(CFStringRef attr, enum ItemAttrType atype)) {
59 CFStringRef iclass = CFDictionaryGetValue(item, kSecClass);
173 static void ItemForEachPKAttr(CFMutableDictionaryRef item, void(^each)(CFStringRef attr, enum ItemAttrType atype)) {
174 CFStringRef iclass = CFDictionaryGetValue(item, kSecClass);
260 CFMutableDictionaryRef item = ItemCreate(num);
261 ItemForEachPKAttr(item, ^(CFStringRef attr, enum ItemAttrType atype) {
320 CFDictionarySetValue(item, attr, value);
324 CFDictionarySetValue(item, kSecAttrSynchronizable, kCFBooleanTrue);
325 ok_status(SecItemAdd(item, NULL), "add sync");
327 CFDictionarySetValue(item, kSecUseTombstones, kCFBooleanTrue);
328 ok_status(SecItemDelete(item), "delete sync");
330 CFDictionarySetValue(item, kSecAttrTombstone, kCFBooleanTrue);
331 ok_status(SecItemCopyMatching(item, NULL), "find tombstone after delete sync");
332 ok_status(SecItemDelete(item), "delete sync tombstone");
333 CFDictionaryRemoveValue(item, kSecAttrTombstone);
335 ok_status(SecItemAdd(item, NULL), "add sync again");
337 CFDictionarySetValue(item, kSecUseTombstones, kCFBooleanFalse);
338 ok_status(SecItemDelete(item), "delete sync without leaving a tombstone behind");
339 CFDictionaryRemoveValue(item, kSecUseTombstones);
341 CFDictionarySetValue(item, kSecAttrTombstone, kCFBooleanTrue);
342 is_status(SecItemCopyMatching(item, NULL), errSecItemNotFound, "do not find tombstone after delete sync with kSecUseTombstones=false");
344 CFDictionaryRemoveValue(item, kSecAttrSynchronizable);
345 ok_status(SecItemAdd(item, NULL), "add local");
346 ok_status(SecItemDelete(item), "delete local");
348 CFDictionarySetValue(item, kSecAttrTombstone, kCFBooleanTrue);
349 is_status(SecItemCopyMatching(item, NULL), errSecItemNotFound, "do not find tombstone after delete local");
350 is_status(SecItemDelete(item), errSecItemNotFound, "do not delete tombstone after delete local");
351 CFDictionaryRemoveValue(item, kSecAttrTombstone);
353 ok_status(SecItemAdd(item, NULL), "add local again");
355 CFDictionarySetValue(item, kSecUseTombstones, kCFBooleanTrue);
356 ok_status(SecItemDelete(item), "delete local and leave a tombstone behind");
357 CFDictionaryRemoveValue(item, kSecUseTombstones);
359 CFDictionarySetValue(item, kSecAttrTombstone, kCFBooleanTrue);
360 ok_status(SecItemCopyMatching(item, NULL), "find tombstone after delete sync with kSecUseTombstones=true");
362 CFDictionarySetValue(item, kSecUseTombstones, kCFBooleanTrue);
363 ok_status(SecItemDelete(item), "delete local tombstone kSecUseTombstones=true");
364 CFDictionaryRemoveValue(item, kSecUseTombstones);
366 ok_status(SecItemCopyMatching(item, NULL), "find tombstone after delete local tombstone with kSecUseTombstones=true");
367 ok_status(SecItemDelete(item), "delete local tombstone");
368 is_status(SecItemCopyMatching(item, NULL), errSecItemNotFound, "do not find tombstone after delete local");
370 CFRelease(item);