提交 594081ee 编写于 作者: D Dmitry Kasatkin 提交者: 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: NDmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: NDavid Howells <dhowells@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册