projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dd6098
)
KEYS: strip 'id:' from ca_keyid
author
Dmitry Kasatkin
<d.kasatkin@samsung.com>
Mon, 6 Oct 2014 16:02:32 +0000
(17:02 +0100)
committer
David Howells
<dhowells@redhat.com>
Mon, 6 Oct 2014 16:33:27 +0000
(17:33 +0100)
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 <d.kasatkin@samsung.com>
Signed-off-by: David Howells <dhowells@redhat.com>
crypto/asymmetric_keys/x509_public_key.c
patch
|
blob
|
history
diff --git
a/crypto/asymmetric_keys/x509_public_key.c
b/crypto/asymmetric_keys/x509_public_key.c
index
6ef5449
..
a6c4203
100644
(file)
--- a/
crypto/asymmetric_keys/x509_public_key.c
+++ b/
crypto/asymmetric_keys/x509_public_key.c
@@
-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))