Lines Matching defs:keybag
329 /* Copy out keybag */
371 CFDataRef backup = NULL, keybag = NULL, password = NULL;
376 keybag = create_keybag(kAppleKeyStoreBackupBag, password);
378 keybag = CFDataCreate(kCFAllocatorDefault, NULL, 0);
381 ok(backup = _SecKeychainCopyBackup(keybag, password),
387 ok_status(_SecKeychainRestoreBackup(backup, keybag, password),
400 CFReleaseNull(keybag);
401 keybag = create_keybag(kAppleKeyStoreOTABackupBag, password);
404 ok(backup = _SecKeychainCopyBackup(keybag, password),
406 ok_status(_SecKeychainRestoreBackup(backup, keybag, password),
417 CFReleaseNull(keybag);
418 keybag = create_keybag(kAppleKeyStoreOTABackupBag /* use truthiness bag once it's there */, password);
430 ok_status(_SecKeychainBackupSyncable(keybag, password, NULL, &syncableBackup), "export items");
452 ok_status(_SecKeychainBackupSyncable(keybag, password, syncableBackup, &scratch), "export items after changes");
455 ok_status(_SecKeychainRestoreSyncable(keybag, password, syncableBackup), "import items");
467 CFReleaseSafe(keybag);