Lines Matching refs:authkey
168 struct key *authkey = NULL; in request_key_auth_new() local
217 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
221 if (IS_ERR(authkey)) { in request_key_auth_new()
222 ret = PTR_ERR(authkey); in request_key_auth_new()
227 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new()
231 kleave(" = {%d,%d}", authkey->serial, refcount_read(&authkey->usage)); in request_key_auth_new()
232 return authkey; in request_key_auth_new()
235 key_put(authkey); in request_key_auth_new()
260 struct key *authkey; in key_get_instantiation_authkey() local
270 authkey = ERR_CAST(authkey_ref); in key_get_instantiation_authkey()
271 if (authkey == ERR_PTR(-EAGAIN)) in key_get_instantiation_authkey()
272 authkey = ERR_PTR(-ENOKEY); in key_get_instantiation_authkey()
276 authkey = key_ref_to_ptr(authkey_ref); in key_get_instantiation_authkey()
277 if (test_bit(KEY_FLAG_REVOKED, &authkey->flags)) { in key_get_instantiation_authkey()
278 key_put(authkey); in key_get_instantiation_authkey()
279 authkey = ERR_PTR(-EKEYREVOKED); in key_get_instantiation_authkey()
283 return authkey; in key_get_instantiation_authkey()