1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* request_key authorisation token key type
4 * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
8 #ifndef _KEYS_REQUEST_KEY_AUTH_TYPE_H
9 #define _KEYS_REQUEST_KEY_AUTH_TYPE_H
11 #include <linux/key.h>
14 * Authorisation record for request_key().
16 struct request_key_auth {
17 struct key *target_key;
18 struct key *dest_keyring;
19 const struct cred *cred;
26 static inline struct request_key_auth *get_request_key_auth(const struct key *key)
28 return key->payload.data[0];
32 #endif /* _KEYS_REQUEST_KEY_AUTH_TYPE_H */