- opensc-explorer.c ceased to accept verify data in hex notation, fix by

Martin Buechler


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1627 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-11-20 16:01:56 +00:00
parent a632956e0d
commit cf733acdad

View File

@ -635,9 +635,13 @@ int do_verify(int argc, char **argv)
buf[i] = *s++;
data.pin1.data = buf;
data.pin1.len = i;
} else if (sc_hex_to_bin(argv[1], buf, &buflen) != 0) {
printf("Invalid key value.\n");
goto usage;
} else if (!(r = sc_hex_to_bin(argv[1], buf, &buflen) != 0)) {
if (r) {
printf("Invalid key value.\n");
goto usage;
}
data.pin1.data = buf;
data.pin1.len = buflen;
}
r = sc_pin_cmd(card, &data, &tries_left);