FreeCalypso > hg > freecalypso-hwlab
comparison uicc/select.c @ 158:65a2a96386cd
fc-uicc-tool: hex string parsing with min and max length,
matching fc-simtool
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 07 Feb 2021 04:00:27 +0000 |
parents | 429a8f80426e |
children |
comparison
equal
deleted
inserted
replaced
157:239ebdb8f2af | 158:65a2a96386cd |
---|---|
232 { | 232 { |
233 u_char aid[16]; | 233 u_char aid[16]; |
234 unsigned aid_len; | 234 unsigned aid_len; |
235 int rc; | 235 int rc; |
236 | 236 |
237 rc = decode_hex_data_from_string(argv[1], aid, 16); | 237 rc = decode_hex_data_from_string(argv[1], aid, 1, 16); |
238 if (rc < 0) | 238 if (rc < 0) |
239 return(rc); | 239 return(rc); |
240 aid_len = rc; | 240 aid_len = rc; |
241 rc = select_aid_op(aid, aid_len); | 241 rc = select_aid_op(aid, aid_len); |
242 if (rc < 0) | 242 if (rc < 0) |