summaryrefslogtreecommitdiffstats
path: root/crypto/asymmetric_keys
diff options
context:
space:
mode:
authorDmitry Kasatkin <d.kasatkin@samsung.com>2014-10-06 17:02:32 +0100
committerDavid Howells <dhowells@redhat.com>2014-10-06 17:33:27 +0100
commit7a224e783ad2b325977253139aede1f5f38b1778 (patch)
tree0405276259b2651c063c54da4b101112d8ddfc41 /crypto/asymmetric_keys
parent8dd609805b87923a700a2fad646390a58013cdb9 (diff)
downloadop-kernel-dev-7a224e783ad2b325977253139aede1f5f38b1778.zip
op-kernel-dev-7a224e783ad2b325977253139aede1f5f38b1778.tar.gz
KEYS: strip 'id:' from ca_keyid
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>
Diffstat (limited to 'crypto/asymmetric_keys')
-rw-r--r--crypto/asymmetric_keys/x509_public_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asymmetric_keys/x509_public_key.c b/crypto/asymmetric_keys/x509_public_key.c
index 6ef5449..a6c4203 100644
--- 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))
OpenPOWER on IntegriCloud