- fixed unblock command when puk given in hex notation
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1003 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
a9a766fafb
commit
d2b5c08857
|
@ -751,12 +751,12 @@ int do_unblock(int argc, char **argv)
|
||||||
i < sizeof(puk) && *s && *s != '"'; i++)
|
i < sizeof(puk) && *s && *s != '"'; i++)
|
||||||
puk[i] = *s++;
|
puk[i] = *s++;
|
||||||
puklen = i;
|
puklen = i;
|
||||||
argc--;
|
|
||||||
argv++;
|
|
||||||
} else if (sc_hex_to_bin(argv[0], puk, &puklen) != 0) {
|
} else if (sc_hex_to_bin(argv[0], puk, &puklen) != 0) {
|
||||||
printf("Invalid key value.\n");
|
printf("Invalid key value.\n");
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
}
|
||||||
|
argc--;
|
||||||
|
argv++;
|
||||||
|
|
||||||
if (argv[0][0] == '"') {
|
if (argv[0][0] == '"') {
|
||||||
for (s = argv[0] + 1, i = 0;
|
for (s = argv[0] + 1, i = 0;
|
||||||
|
|
Loading…
Reference in New Issue