iso7816_process_fci(): dump the filename in Hex + ASCII instead of just

ASCII in the debug log


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3031 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
ludovic.rousseau 2006-09-27 12:01:31 +00:00
parent 11779dce60
commit 45fc350513
1 changed files with 5 additions and 1 deletions

View File

@ -375,7 +375,11 @@ static int iso7816_process_fci(sc_card_t *card, sc_file_t *file,
}
name[taglen] = 0;
if (ctx->debug >= 3)
sc_debug(ctx, " File name: %s\n", name);
{
char buf[sizeof(name)*5];
sc_hex_dump(ctx, file->name, file->namelen, buf, sizeof(buf));
sc_debug(ctx, " File name: %s\n", buf);
}
}
tag = sc_asn1_find_tag(ctx, p, len, 0x85, &taglen);
if (tag != NULL && taglen) {