FreeCalypso > hg > fc-pcsc-tools
comparison uicc/createfile.c @ 142:878d66dce6d3
fc-uicc-tool create-file needs to read the hex voodoo from a file
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 24 Feb 2021 17:32:03 +0000 |
parents | 13ab44761ea6 |
children |
comparison
equal
deleted
inserted
replaced
141:a1aa8ee2da85 | 142:878d66dce6d3 |
---|---|
16 { | 16 { |
17 u_char apdu[260], inbuf[252], *dp; | 17 u_char apdu[260], inbuf[252], *dp; |
18 unsigned len1, len2; | 18 unsigned len1, len2; |
19 int rc; | 19 int rc; |
20 | 20 |
21 rc = decode_hex_data_from_string(argv[1], inbuf, 1, 252); | 21 rc = read_hex_data_file(argv[1], inbuf, 252); |
22 if (rc < 0) | 22 if (rc < 0) |
23 return(rc); | 23 return(rc); |
24 len1 = rc; | 24 len1 = rc; |
25 dp = apdu + 5; | 25 dp = apdu + 5; |
26 *dp++ = 0x62; | 26 *dp++ = 0x62; |