OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d401658
)
integrity: do zero padding of the key id
author
Dmitry Kasatkin
<d.kasatkin@samsung.com>
Mon, 6 Oct 2014 16:31:58 +0000
(17:31 +0100)
committer
David Howells
<dhowells@redhat.com>
Mon, 6 Oct 2014 16:33:27 +0000
(17:33 +0100)
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>
security/integrity/digsig_asymmetric.c
patch
|
blob
|
history
diff --git
a/security/integrity/digsig_asymmetric.c
b/security/integrity/digsig_asymmetric.c
index
37e0d98
..
4fec181
100644
(file)
--- a/
security/integrity/digsig_asymmetric.c
+++ b/
security/integrity/digsig_asymmetric.c
@@
-28,7
+28,7
@@
static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid)
struct key *key;
char name[12];
- sprintf(name, "id:%x", keyid);
+ sprintf(name, "id:%
08
x", keyid);
pr_debug("key search: \"%s\"\n", name);