]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/keys/request_key_auth-type.h
1 /* request_key authorisation token key type
3 * Copyright (C) 2005 Red Hat, Inc. All Rights Reserved.
4 * Written by David Howells (dhowells@redhat.com)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public Licence
8 * as published by the Free Software Foundation; either version
9 * 2 of the Licence, or (at your option) any later version.
12 #ifndef _KEYS_REQUEST_KEY_AUTH_TYPE_H
13 #define _KEYS_REQUEST_KEY_AUTH_TYPE_H
15 #include <linux/key.h>
18 * Authorisation record for request_key().
20 struct request_key_auth
{
21 struct key
*target_key
;
22 struct key
*dest_keyring
;
23 const struct cred
*cred
;
30 static inline struct request_key_auth
*get_request_key_auth(const struct key
*key
)
32 return key
->payload
.data
[0];
36 #endif /* _KEYS_REQUEST_KEY_AUTH_TYPE_H */