FreeCalypso > hg > fc-sim-tools
comparison uicc/select.c @ 89:db131929ee96
fc-uicc-tool: extended readef ported over from fc-simtool
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 11 Apr 2021 04:17:58 +0000 |
parents | 0e46bbb801e0 |
children |
comparison
equal
deleted
inserted
replaced
88:49b7e02787c1 | 89:db131929ee96 |
---|---|
425 fprintf(stderr, | 425 fprintf(stderr, |
426 "error: file size TLV element has wrong length\n"); | 426 "error: file size TLV element has wrong length\n"); |
427 return(-1); | 427 return(-1); |
428 } | 428 } |
429 efs->total_size = (tlv[2] << 8) | tlv[3]; | 429 efs->total_size = (tlv[2] << 8) | tlv[3]; |
430 if (efs->total_size > 0x8000) { | |
431 fprintf(stderr, | |
432 "error: transparent file size exceeds UICC protocol limit\n"); | |
433 return(-1); | |
434 } | |
430 return(0); | 435 return(0); |
431 case 0x02: | 436 case 0x02: |
432 case 0x06: | 437 case 0x06: |
433 if (tlv[1] != 5) { | 438 if (tlv[1] != 5) { |
434 fprintf(stderr, | 439 fprintf(stderr, |