added information about the environment variables used
git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@125 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -55,11 +55,14 @@ USAGE
|
|||||||
|
|
||||||
When testing PACE with either PIN, CAN, MRZ or PUK run pace-tool. Here you can
|
When testing PACE with either PIN, CAN, MRZ or PUK run pace-tool. Here you can
|
||||||
enter APDUs which are to be converted according to the secure messaging
|
enter APDUs which are to be converted according to the secure messaging
|
||||||
parameter and to be sent to the card. Herefor insert the APDU in hex with a
|
parameter and to be sent to the card. Herefor insert the APDU in hex (upper or
|
||||||
colon to separate the bytes or without it. So to read the current selected file
|
lower case) with a colon to separate the bytes or without it. So to read the
|
||||||
both of these forms would be valid:
|
current selected file both of these forms would be valid:
|
||||||
00:b0:02:00:00
|
00:b0:02:00:00
|
||||||
00B0020000
|
00B0020000
|
||||||
|
To pass a secret to pace-tool, the command line parameters or the environment
|
||||||
|
variables PIN/CAN/MRZ/PUK/NEWPIN can be used. If none of these options is used,
|
||||||
|
pace-tool will show a password prompt.
|
||||||
|
|
||||||
|
|
||||||
QUESTIONS
|
QUESTIONS
|
||||||
|
|||||||
@@ -244,6 +244,8 @@ main (int argc, char **argv)
|
|||||||
case OPT_CHANGE_PIN:
|
case OPT_CHANGE_PIN:
|
||||||
dochangepin = 1;
|
dochangepin = 1;
|
||||||
newpin = optarg;
|
newpin = optarg;
|
||||||
|
if (!newpin)
|
||||||
|
pin = getenv("NEWPIN");
|
||||||
break;
|
break;
|
||||||
case OPT_RESUME_PIN:
|
case OPT_RESUME_PIN:
|
||||||
doresumepin = 1;
|
doresumepin = 1;
|
||||||
@@ -352,7 +354,8 @@ main (int argc, char **argv)
|
|||||||
id = PACE_PUK;
|
id = PACE_PUK;
|
||||||
s = puk;
|
s = puk;
|
||||||
} else {
|
} else {
|
||||||
fprintf(stderr, "Please provide PIN, CAN, MRZ or PUK.");
|
fprintf(stderr, "Please specify whether to do PACE with "
|
||||||
|
"PIN, CAN, MRZ or PUK.");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user