- added information how many bytes were actually transmitted via usb

- split general authenticate into multiple functions, one for every step of
  PACE.
- including recent and previous car in output buffer of EstablishPACEChannel
- ccid-emulator initiates EstablishPACEChannel always with a new sm_ctx


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@192 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-07-04 11:35:17 +00:00
parent 997fb84d9e
commit b84e3fbdba
3 changed files with 424 additions and 134 deletions

View File

@@ -965,7 +965,7 @@ static void *interrupt (void *param)
fprintf(stderr, "interrupt loop: writing RDR_to_PC_NotifySlotChange... ");
result = write(status_fd, slotchange, sizeof *slotchange);
if (verbose > 1)
fprintf(stderr, "done.\n");
fprintf(stderr, "done (%d written).\n", result);
}
} while (result >= 0);
@@ -1038,7 +1038,7 @@ static void *ccid (void *param)
fprintf(stderr, "bulk loop: writing %d bytes... ", result);
result = write(source_fd, outbuf, result);
if (verbose > 1)
fprintf(stderr, "done.\n");
fprintf(stderr, "done (%d written).\n", result);
} while (result >= 0);
if (errno != ESHUTDOWN || result < 0) {
@@ -1500,7 +1500,7 @@ special:
fprintf(stderr, "control loop: writing %d bytes... ", result);
result = write (fd, outbuf, result);
if (verbose > 1)
fprintf(stderr, "done.\n");
fprintf(stderr, "done (%d written).\n");
if (result < 0)
goto stall;
} return;