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