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.
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 {
18 struct key *target_key;
19 struct key *dest_keyring;
20 const struct cred *cred;
27 static inline struct request_key_auth *get_request_key_auth(const struct key *key)
29 return key->payload.data[0];
33 #endif /* _KEYS_REQUEST_KEY_AUTH_TYPE_H */