Lines Matching refs:authkey
152 struct key *authkey = NULL; in request_key_auth_new() local
202 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
206 if (IS_ERR(authkey)) { in request_key_auth_new()
207 ret = PTR_ERR(authkey); in request_key_auth_new()
212 ret = key_instantiate_and_link(authkey, rka, 0, NULL, NULL); in request_key_auth_new()
216 kleave(" = {%d,%d}", authkey->serial, atomic_read(&authkey->usage)); in request_key_auth_new()
217 return authkey; in request_key_auth_new()
227 key_revoke(authkey); in request_key_auth_new()
228 key_put(authkey); in request_key_auth_new()
254 struct key *authkey; in key_get_instantiation_authkey() local
262 authkey = ERR_CAST(authkey_ref); in key_get_instantiation_authkey()
263 if (authkey == ERR_PTR(-EAGAIN)) in key_get_instantiation_authkey()
264 authkey = ERR_PTR(-ENOKEY); in key_get_instantiation_authkey()
268 authkey = key_ref_to_ptr(authkey_ref); in key_get_instantiation_authkey()
269 if (test_bit(KEY_FLAG_REVOKED, &authkey->flags)) { in key_get_instantiation_authkey()
270 key_put(authkey); in key_get_instantiation_authkey()
271 authkey = ERR_PTR(-EKEYREVOKED); in key_get_instantiation_authkey()
275 return authkey; in key_get_instantiation_authkey()