Lines Matching refs:authkey
35 kenter("{%d,%d},%d", cons->key->serial, cons->authkey->serial, error); in complete_request_key()
39 cons->authkey); in complete_request_key()
41 key_revoke(cons->authkey); in complete_request_key()
44 key_put(cons->authkey); in complete_request_key()
100 struct key *key = cons->key, *authkey = cons->authkey, *keyring, in call_sbin_request_key() local
107 kenter("{%d},{%d},%s", key->serial, authkey->serial, op); in call_sbin_request_key()
127 ret = key_link(keyring, authkey); in call_sbin_request_key()
209 struct key *authkey; in construct_key() local
219 authkey = request_key_auth_new(key, callout_info, callout_len, in construct_key()
221 if (IS_ERR(authkey)) { in construct_key()
223 ret = PTR_ERR(authkey); in construct_key()
224 authkey = NULL; in construct_key()
226 cons->authkey = key_get(authkey); in construct_key()
239 !test_bit(KEY_FLAG_REVOKED, &authkey->flags)); in construct_key()
240 key_put(authkey); in construct_key()
257 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local
272 authkey = cred->request_key_auth; in construct_get_dest_keyring()
273 down_read(&authkey->sem); in construct_get_dest_keyring()
274 rka = authkey->payload.data; in construct_get_dest_keyring()
276 &authkey->flags)) in construct_get_dest_keyring()
279 up_read(&authkey->sem); in construct_get_dest_keyring()