card-cac.c: Dump also the MSCUID

This commit is contained in:
Jakub Jelen 2018-04-10 10:39:18 +02:00 committed by Frank Morgner
parent 335c242ce0
commit 52451ac438
1 changed files with 4 additions and 0 deletions

View File

@ -73,6 +73,7 @@
/* TAGS in a TL file */
#define CAC_TAG_CERTIFICATE 0x70
#define CAC_TAG_CERTINFO 0x71
#define CAC_TAG_MSCUID 0x72
#define CAC_TAG_CUID 0xF0
#define CAC_TAG_CC_VERSION_NUMBER 0xF1
#define CAC_TAG_GRAMMAR_VERION_NUMBER 0xF2
@ -697,6 +698,9 @@ static int cac_read_binary(sc_card_t *card, unsigned int idx,
cert_type = *val_ptr;
}
}
if (tag == CAC_TAG_MSCUID) {
sc_log_hex(card->ctx, "MSCUID", val_ptr, len);
}
if ((val_len < len) || (tl_len < tl_head_len)) {
break;
}