Adding FCP tag template. Some apps could require FMD tag.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-05-15 18:37:57 +02:00
parent de39035d9f
commit f7d30d7f4d
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -41,6 +41,9 @@ void process_fci(const file_t *pe) {
res_APDU[res_APDU_size++] = 0x6f;
res_APDU[res_APDU_size++] = 0x00; //computed later
res_APDU[res_APDU_size++] = 0x62;
res_APDU[res_APDU_size++] = 0x00; //computed later
res_APDU[res_APDU_size++] = 0x81;
res_APDU[res_APDU_size++] = 2;
if (pe->data) {
@ -80,6 +83,7 @@ void process_fci(const file_t *pe) {
res_APDU_size += pe->name[0];
}
res_APDU[1] = res_APDU_size-2;
res_APDU[3] = res_APDU_size-4;
}
#define MAX_DYNAMIC_FILES 64