Lines Matching refs:authkey
156 struct key *authkey = NULL; in request_key_auth_new() local
204 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
208 if (IS_ERR(authkey)) { in request_key_auth_new()
209 ret = PTR_ERR(authkey); in request_key_auth_new()
214 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new()
218 kleave(" = {%d,%d}", authkey->serial, refcount_read(&authkey->usage)); in request_key_auth_new()
219 return authkey; in request_key_auth_new()
222 key_put(authkey); in request_key_auth_new()
246 struct key *authkey; in key_get_instantiation_authkey() local
254 authkey = ERR_CAST(authkey_ref); in key_get_instantiation_authkey()
255 if (authkey == ERR_PTR(-EAGAIN)) in key_get_instantiation_authkey()
256 authkey = ERR_PTR(-ENOKEY); in key_get_instantiation_authkey()
260 authkey = key_ref_to_ptr(authkey_ref); in key_get_instantiation_authkey()
261 if (test_bit(KEY_FLAG_REVOKED, &authkey->flags)) { in key_get_instantiation_authkey()
262 key_put(authkey); in key_get_instantiation_authkey()
263 authkey = ERR_PTR(-EKEYREVOKED); in key_get_instantiation_authkey()
267 return authkey; in key_get_instantiation_authkey()