|
@@ -132,6 +132,12 @@ typedef int (*key_restrict_link_func_t)(struct key *dest_keyring,
|
|
const union key_payload *payload,
|
|
const union key_payload *payload,
|
|
struct key *restriction_key);
|
|
struct key *restriction_key);
|
|
|
|
|
|
|
|
+struct key_restriction {
|
|
|
|
+ key_restrict_link_func_t check;
|
|
|
|
+ struct key *key;
|
|
|
|
+ struct key_type *keytype;
|
|
|
|
+};
|
|
|
|
+
|
|
/*****************************************************************************/
|
|
/*****************************************************************************/
|
|
/*
|
|
/*
|
|
* authentication token / access credential / keyring
|
|
* authentication token / access credential / keyring
|