git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@574 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
@@ -32,6 +32,7 @@ static int reader_num = -1;
|
|||||||
static const char *newpin = NULL;
|
static const char *newpin = NULL;
|
||||||
static const char *pin = NULL;
|
static const char *pin = NULL;
|
||||||
|
|
||||||
|
/* SELECT the Master File (MF) */
|
||||||
const unsigned char apdubuf[] = {0x00, 0xA4, 0x00, 0x0C, 0x02, 0x3F, 0x00};
|
const unsigned char apdubuf[] = {0x00, 0xA4, 0x00, 0x0C, 0x02, 0x3F, 0x00};
|
||||||
|
|
||||||
int
|
int
|
||||||
@@ -73,8 +74,8 @@ main (int argc, char **argv)
|
|||||||
/* Now we try to change the PIN. Therefor we need to establish a SM channel
|
/* Now we try to change the PIN. Therefor we need to establish a SM channel
|
||||||
* with PACE.
|
* with PACE.
|
||||||
*
|
*
|
||||||
* You could set your PIN with `pin = “123456”;` or just leave it at NULL
|
* You could set your PIN with pin=“123456”; or just leave it at NULL to be
|
||||||
* to be asked for it. The same applies to the new PIN newpin. */
|
* asked for it. The same applies to the new PIN newpin. */
|
||||||
pace_input.pin_id = PACE_PIN;
|
pace_input.pin_id = PACE_PIN;
|
||||||
pace_input.pin = pin;
|
pace_input.pin = pin;
|
||||||
pace_input.pin_length = pin ? strlen(pin) : 0;
|
pace_input.pin_length = pin ? strlen(pin) : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user