projects
/
platform
/
upstream
/
ima-evm-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24c9e6a
)
make it possible to provide keyring id in hexadecimal format
author
Dmitry Kasatkin
<d.kasatkin@samsung.com>
Fri, 13 Jun 2014 09:59:14 +0000
(12:59 +0300)
committer
Dmitry Kasatkin
<d.kasatkin@samsung.com>
Fri, 13 Jun 2014 09:59:14 +0000
(12:59 +0300)
Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
src/evmctl.c
patch
|
blob
|
history
diff --git
a/src/evmctl.c
b/src/evmctl.c
index
c5529f8
..
0d7c286
100644
(file)
--- a/
src/evmctl.c
+++ b/
src/evmctl.c
@@
-963,7
+963,10
@@
static int cmd_import(struct command *cmd)
if (ring) {
if (ring[0] != '@') {
- id = atoi(ring);
+ int base = 10;
+ if (ring[0] == '0' && ring[1] == 'x')
+ base = 16;
+ id = strtoul(ring, NULL, base);
} else {
if (strcmp(ring, "@t") == 0)
id = -1;