aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/key-type.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-09-16 11:12:03 +0100
committerDavid Howells <dhowells@redhat.com>2020-11-23 18:09:29 +0000
commit8eb621698fd4c49703d512fe437d84ab822bc59e (patch)
treefd8ed4ababeef92b63bb64fd2e2aee70a9174f62 /include/linux/key-type.h
parentocteontx2-af: Add support for RSS hashing based on Transport protocol field (diff)
downloadlinux-dev-8eb621698fd4c49703d512fe437d84ab822bc59e.tar.xz
linux-dev-8eb621698fd4c49703d512fe437d84ab822bc59e.zip
keys: Provide the original description to the key preparser
Provide the proposed description (add key) or the original description (update/instantiate key) when preparsing a key so that the key type can validate it against the data. This is important for rxrpc server keys as we need to check that they have the right amount of key material present - and it's better to do that when the key is loaded rather than deep in trying to process a response packet. Signed-off-by: David Howells <dhowells@redhat.com> cc: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> cc: keyrings@vger.kernel.org
Diffstat (limited to 'include/linux/key-type.h')
-rw-r--r--include/linux/key-type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/key-type.h b/include/linux/key-type.h
index 2ab2d6d6aeab..7d985a1dfe4a 100644
--- a/include/linux/key-type.h
+++ b/include/linux/key-type.h
@@ -29,6 +29,7 @@ struct kernel_pkey_params;
* clear the contents.
*/
struct key_preparsed_payload {
+ const char *orig_description; /* Actual or proposed description (maybe NULL) */
char *description; /* Proposed key description (or NULL) */
union key_payload payload; /* Proposed payload */
const void *data; /* Raw data */