- fixed: pace-tool dumped wrong apdu buffer

- updated documentation on opensc


git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@346 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-28 09:10:38 +00:00
parent c80c209a98
commit 8743b5030b
3 changed files with 15 additions and 6 deletions

View File

@@ -136,14 +136,14 @@ int pace_translate_apdus(struct sm_ctx *sctx, sc_card_t *card, FILE *input)
break;
}
read[linelen - 1] = 0;
if (input != stdin)
bin_print(stdout, "Unencrypted C-APDU", read, linelen);
apdulen = sizeof buf;
if (sc_hex_to_bin(read, buf, &apdulen) < 0) {
sc_error(card->ctx, "Could not format binary string");
continue;
}
if (input != stdin)
bin_print(stdout, "Unencrypted C-APDU", buf, apdulen);
r = build_apdu(card->ctx, buf, apdulen, &apdu);
if (r < 0) {