Adding name to FCP
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
16f23dfa6c
commit
cddc3b2dec
1 changed files with 6 additions and 0 deletions
|
|
@ -73,6 +73,12 @@ void process_fci(const file_t *pe) {
|
|||
res_APDU[res_APDU_size++] = 2;
|
||||
put_uint16_t(pe->fid, res_APDU+res_APDU_size);
|
||||
res_APDU_size += 2;
|
||||
if (pe->name) {
|
||||
res_APDU[res_APDU_size++] = 0x83;
|
||||
res_APDU[res_APDU_size++] = pe->name[0];
|
||||
memcpy(res_APDU+res_APDU_size, pe->name+2, pe->name[0]);
|
||||
res_APDU_size += pe->name[0];
|
||||
}
|
||||
res_APDU[1] = res_APDU_size-2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue