/* Keyring key type1*2* Copyright (C) 2008 Red Hat, Inc. All Rights Reserved.3* Written by David Howells ([email protected])4*5* This program is free software; you can redistribute it and/or6* modify it under the terms of the GNU General Public License7* as published by the Free Software Foundation; either version8* 2 of the License, or (at your option) any later version.9*/1011#ifndef _KEYS_KEYRING_TYPE_H12#define _KEYS_KEYRING_TYPE_H1314#include <linux/key.h>15#include <linux/rcupdate.h>1617/*18* the keyring payload contains a list of the keys to which the keyring is19* subscribed20*/21struct keyring_list {22struct rcu_head rcu; /* RCU deletion hook */23unsigned short maxkeys; /* max keys this list can hold */24unsigned short nkeys; /* number of keys currently held */25unsigned short delkey; /* key to be unlinked by RCU */26struct key *keys[0];27};282930#endif /* _KEYS_KEYRING_TYPE_H */313233