laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/37067?usp=email )
Change subject: [cosmetic] libosmosim/class_tables: Add a quick reminder about the cases ...................................................................... [cosmetic] libosmosim/class_tables: Add a quick reminder about the cases Change-Id: I5280b6431b18ec36c3186460bebeb6321996c35f --- M src/sim/class_tables.c 1 file changed, 17 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/67/37067/1 diff --git a/src/sim/class_tables.c b/src/sim/class_tables.c index 3d50521..7500fc5 100644 --- a/src/sim/class_tables.c +++ b/src/sim/class_tables.c @@ -19,6 +19,14 @@ #include <osmocom/core/utils.h> #include <osmocom/sim/class_tables.h> +/* Quick reminder about the "cases" as per ISO7816-3 / ETSI TS 102 221 Section 7.3.1.1 + * + * Case 1: Command Length 0, Response Length 0 + * Case 2: Command Length 0, Response Length from P3 + * Case 3: Command Length P3, Response Length 0 + * Case 4: Command Length P3, followed by 61xx for response length + GET RESPONSE + */ + static const uint8_t iso7816_ins_tbl[256] = { [0xB0] = 2, /* READ BIN */ [0xD0] = 3, /* WRITE BIN */ -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/37067?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I5280b6431b18ec36c3186460bebeb6321996c35f Gerrit-Change-Number: 37067 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <lafo...@osmocom.org> Gerrit-MessageType: newchange