integrity: do zero padding of the key id
Latest KEYS code return error if hexadecimal string length id odd. Fix it. Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com> Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
Родитель
d401658985
Коммит
594081ee71
|
@ -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);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче