Lines Matching refs:authkey
167 struct key *authkey = NULL; in request_key_auth_new() local
216 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
220 if (IS_ERR(authkey)) { in request_key_auth_new()
221 ret = PTR_ERR(authkey); in request_key_auth_new()
226 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new()
230 kleave(" = {%d,%d}", authkey->serial, refcount_read(&authkey->usage)); in request_key_auth_new()
231 return authkey; in request_key_auth_new()
234 key_put(authkey); in request_key_auth_new()
259 struct key *authkey; in key_get_instantiation_authkey() local
269 authkey = ERR_CAST(authkey_ref); in key_get_instantiation_authkey()
270 if (authkey == ERR_PTR(-EAGAIN)) in key_get_instantiation_authkey()
271 authkey = ERR_PTR(-ENOKEY); in key_get_instantiation_authkey()
275 authkey = key_ref_to_ptr(authkey_ref); in key_get_instantiation_authkey()
276 if (test_bit(KEY_FLAG_REVOKED, &authkey->flags)) { in key_get_instantiation_authkey()
277 key_put(authkey); in key_get_instantiation_authkey()
278 authkey = ERR_PTR(-EKEYREVOKED); in key_get_instantiation_authkey()
282 return authkey; in key_get_instantiation_authkey()