diff options
author | David Howells | 2014-07-18 18:56:36 +0100 |
---|---|---|
committer | David Howells | 2014-07-22 21:46:47 +0100 |
commit | 002edaf76f09af658241029817f5ef66f6bef5e4 (patch) | |
tree | 2b04fa0c47ba3b9dfca97bb769cfae3aa0bbeffe /include/keys | |
parent | 8a7a3eb4ddbe7c7e639170a64adede7cbd5a9247 (diff) |
KEYS: big_key: Use key preparsing
Make use of key preparsing in the big key type so that quota size determination
can take place prior to keyring locking when a key is being added.
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'include/keys')
-rw-r--r-- | include/keys/big_key-type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/keys/big_key-type.h b/include/keys/big_key-type.h index d69bc8af3292..e0970a578188 100644 --- a/include/keys/big_key-type.h +++ b/include/keys/big_key-type.h @@ -16,7 +16,8 @@ extern struct key_type key_type_big_key; -extern int big_key_instantiate(struct key *key, struct key_preparsed_payload *prep); +extern int big_key_preparse(struct key_preparsed_payload *prep); +extern void big_key_free_preparse(struct key_preparsed_payload *prep); extern void big_key_revoke(struct key *key); extern void big_key_destroy(struct key *key); extern void big_key_describe(const struct key *big_key, struct seq_file *m); |