Commit 594081ee authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by David Howells

integrity: do zero padding of the key id

Latest KEYS code return error if hexadecimal string length id odd.
Fix it.
Signed-off-by: default avatarDmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent d4016589
...@@ -28,7 +28,7 @@ static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid) ...@@ -28,7 +28,7 @@ static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid)
struct key *key; struct key *key;
char name[12]; char name[12];
sprintf(name, "id:%x", keyid); sprintf(name, "id:%08x", keyid);
pr_debug("key search: \"%s\"\n", name); pr_debug("key search: \"%s\"\n", name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment