Lines Matching refs:authkey

56 void complete_request_key(struct key *authkey, int error)  in complete_request_key()  argument
58 struct request_key_auth *rka = get_request_key_auth(authkey); in complete_request_key()
61 kenter("%d{%d},%d", authkey->serial, key->serial, error); in complete_request_key()
64 key_negate_and_link(key, key_negative_timeout, NULL, authkey); in complete_request_key()
66 key_revoke(authkey); in complete_request_key()
115 static int call_sbin_request_key(struct key *authkey, void *aux) in call_sbin_request_key() argument
118 struct request_key_auth *rka = get_request_key_auth(authkey); in call_sbin_request_key()
127 kenter("{%d},{%d},%s", key->serial, authkey->serial, rka->op); in call_sbin_request_key()
147 ret = key_link(keyring, authkey); in call_sbin_request_key()
213 complete_request_key(authkey, ret); in call_sbin_request_key()
228 struct key *authkey; in construct_key() local
234 authkey = request_key_auth_new(key, "create", callout_info, callout_len, in construct_key()
236 if (IS_ERR(authkey)) in construct_key()
237 return PTR_ERR(authkey); in construct_key()
244 ret = actor(authkey, aux); in construct_key()
249 !test_bit(KEY_FLAG_INVALIDATED, &authkey->flags)); in construct_key()
251 key_put(authkey); in construct_key()
266 struct key *dest_keyring = *_dest_keyring, *authkey; in construct_get_dest_keyring() local
284 authkey = cred->request_key_auth; in construct_get_dest_keyring()
285 down_read(&authkey->sem); in construct_get_dest_keyring()
286 rka = get_request_key_auth(authkey); in construct_get_dest_keyring()
288 &authkey->flags)) in construct_get_dest_keyring()
291 up_read(&authkey->sem); in construct_get_dest_keyring()