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
This commit is contained in:
parent
f9e425e99b
commit
8eb621698f
2 changed files with 3 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue