- Added handling for output buffer of EstablishPACEChannel, but CARs are still missing

- Handed over code for handling of IV and SSC for PACE to OpenPACE


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@106 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-05-16 18:53:05 +00:00
parent 496cc54c6f
commit c26c4273a9
3 changed files with 84 additions and 192 deletions

View File

@@ -71,7 +71,7 @@ static const char *option_help[] = {
"Run PACE with PIN",
"Run PACE with PUK",
"Run PACE with CAN",
"Run PACE with MRZ",
"Run PACE with MRZ (insert MRZ without newlines)",
"Install a new PIN",
"Use (several times) to be more verbose",
"Print version, available readers and drivers.",
@@ -151,7 +151,7 @@ int pace_test(sc_card_t *card,
buf[4 + pinlen]= 0; // length_cert_desc
SC_TEST_RET(card->ctx,
EstablishPACEChannel(card, buf, &out, &outlen, &sctx),
EstablishPACEChannel(card, NULL, buf, &out, &outlen, &sctx),
"Could not establish PACE channel.");
printf("Established PACE channel.\n");
@@ -160,6 +160,8 @@ int pace_test(sc_card_t *card,
SC_TEST_RET(card->ctx,
pace_change_p(&sctx, card, new_pin_id, new_pin, new_pinlen),
"Could not change PACE secret.");
printf("Changed %s.\n", pace_secret_name(new_pin_id));
r = SC_SUCCESS;
} else {
while (1) {
printf("Enter unencrypted APDU (empty line to exit)\n");