Skip to content

Commit

Permalink
KEYS: strip 'id:' from ca_keyid
Browse files Browse the repository at this point in the history
The 'id:' prefix must be stripped for asymmetric_key_hex_to_key_id() to be
able to process ca_keyid.

Signed-off-by: Dmitry Kasatkin <[email protected]>
Signed-off-by: David Howells <[email protected]>
  • Loading branch information
Dmitry Kasatkin authored and dhowells committed Oct 6, 2014
1 parent 8dd6098 commit 7a224e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/asymmetric_keys/x509_public_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static int __init ca_keys_setup(char *str)

if (strncmp(str, "id:", 3) == 0) {
struct asymmetric_key_id *p;
p = asymmetric_key_hex_to_key_id(str);
p = asymmetric_key_hex_to_key_id(str + 3);
if (p == ERR_PTR(-EINVAL))
pr_err("Unparsable hex string in ca_keys\n");
else if (!IS_ERR(p))
Expand Down

0 comments on commit 7a224e7

Please sign in to comment.