Adding FCP tag template. Some apps could require FMD tag.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
de39035d9f
commit
f7d30d7f4d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue