summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorKevin Redon <kevredon@mail.tsaitgaist.info>2012-09-11 11:42:29 +0200
committerHarald Welte <laforge@gnumonks.org>2014-10-26 19:09:22 +0100
commit6956ee1ba11aa2b7321e0d4fd41877184d9a3650 (patch)
tree370218189609bceaadedc10993d93fc5ca33461e /include/osmocom
parent0f0ee32d8115cc29d89e41539ed0aac01852cf94 (diff)
sim: add comment/explaination for structure osim_apdu_case
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/sim/sim.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/osmocom/sim/sim.h b/include/osmocom/sim/sim.h
index 5ad1643e..35ff7b4c 100644
--- a/include/osmocom/sim/sim.h
+++ b/include/osmocom/sim/sim.h
@@ -6,15 +6,15 @@
#define APDU_HDR_LEN 5
-/* ISO 7816 / 5.3.1 / Figure 3 + Figure 4 */
+/* command-response pairs cases, as specified in ISO/IEC 7816-3:2006(E) ยง12.1 */
enum osim_apdu_case {
- APDU_CASE_1,
- APDU_CASE_2,
- APDU_CASE_2_EXT,
- APDU_CASE_3,
- APDU_CASE_3_EXT,
- APDU_CASE_4,
- APDU_CASE_4_EXT
+ APDU_CASE_1, /* command header, no command data field, no response data field */
+ APDU_CASE_2, /* command header, no command data field, response data field (short) */
+ APDU_CASE_2_EXT, /* command header, no command data field, response data field (extended) */
+ APDU_CASE_3, /* command header, command data field (short), no response data field */
+ APDU_CASE_3_EXT, /* command header, command data field (extended), no response data field */
+ APDU_CASE_4, /* command header, command data field (short), response data field (short) */
+ APDU_CASE_4_EXT /* command header, command data field (extended), response data field (extended) */
};
struct osim_apdu_cmd_hdr {