Lines Matching defs:keybag
103 __block keybag_handle_t keybag;
118 /* Create and lock custom keybag */
119 ok(kIOReturnSuccess==aks_create_bag(passcode, passcode_len, kAppleKeyStoreDeviceBag, &keybag), "create keybag");
120 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
121 ok(!(state&keybag_state_locked), "keybag unlocked");
122 SecItemServerSetKeychainKeybag(keybag);
125 ok(kIOReturnSuccess==aks_lock_bag(keybag), "lock keybag");
126 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
127 ok(state&keybag_state_locked, "keybag locked");
150 ok(kIOReturnSuccess==aks_unlock_bag(keybag, passcode, passcode_len), "lock keybag");
151 ok(kIOReturnSuccess==aks_get_lock_state(keybag, &state), "get keybag state");
152 ok(!(state&keybag_state_locked), "keybag unlocked");
156 /* Reset keybag */
173 /* not implemented in simulator (no keybag) */