Lines Matching defs:keybag
34 /* custom keybag */
35 keybag_handle_t keybag;
40 ok(kIOReturnSuccess==aks_create_bag(passcode, passcode_len, kAppleKeyStoreDeviceBag, &keybag), "create keybag");
41 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
42 ok(!(state&keybag_state_locked), "keybag unlocked");
43 SecItemServerSetKeychainKeybag(keybag);
46 ok(kIOReturnSuccess==aks_lock_bag(keybag), "lock keybag");
47 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
48 ok(state&keybag_state_locked, "keybag locked");
83 ok(kIOReturnSuccess==aks_unlock_bag(keybag, passcode, passcode_len), "unlock keybag");
84 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
85 ok(!(state&keybag_state_locked), "keybag unlocked");
91 ok(kIOReturnSuccess==aks_lock_bag(keybag), "lock keybag");
92 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
93 ok(state&keybag_state_locked, "keybag locked");
99 ok(kIOReturnSuccess==aks_unlock_bag(keybag, passcode, passcode_len), "unlock keybag");
100 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
101 ok(!(state&keybag_state_locked), "keybag unlocked");
117 ok(kIOReturnSuccess==aks_lock_bag(keybag), "lock keybag");
118 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
119 ok(state&keybag_state_locked, "keybag locked");
123 /* Reset keybag and custom $HOME */
143 /* not implemented in simulator (no keybag) */