From da8e7086f6280597fac37ebb3fcbd7258620f288 Mon Sep 17 00:00:00 2001 From: Reinhard Speyerer Date: Thu, 26 Aug 2021 18:42:59 +0200 Subject: [PATCH] gsm_sim: add decoding for GET IDENTITY and GET DATA Add support for decoding instruction byte 78 (GET IDENTITY) from TS 102 221 v15.11.0 and instruction byte CA (GET DATA) which is used to retrieve the EID for eSIMs according to GSMA SGP.02 v4.2 available from https://www.gsma.com/esim/esim-m2m-specifications/. Closes #17548. --- epan/dissectors/packet-gsm_sim.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/epan/dissectors/packet-gsm_sim.c b/epan/dissectors/packet-gsm_sim.c index 4e84cecbe4..dab908b26c 100644 --- a/epan/dissectors/packet-gsm_sim.c +++ b/epan/dissectors/packet-gsm_sim.c @@ -771,6 +771,10 @@ static const value_string apdu_ins_vals[] = { { 0x70, "MANAGE CHANNEL" }, { 0x73, "MANAGE SECURE CHANNEL" }, { 0x75, "TRANSACT DATA" }, + /* TS 102 221 v15.11.0 */ + { 0x78, "GET IDENTITY" }, + /* GSMA SGP.02 v4.2 */ + { 0xCA, "GET DATA" }, /* TS TS 102 222 */ { 0xE0, "CREATE FILE" }, { 0xE4, "DELETE FILE" }, @@ -1416,7 +1420,9 @@ dissect_gsm_apdu(guint8 ins, guint8 p1, guint8 p2, guint8 p3, tvbuff_t *tvb, break; } break; + case 0x78: /* GET IDENTITY */ case 0xC0: /* GET RESPONSE */ + case 0xCA: /* GET DATA */ proto_tree_add_item(tree, hf_le, tvb, offset+P3_OFFS, 1, ENC_BIG_ENDIAN); if (isSIMtrace) { proto_tree_add_item(tree, hf_apdu_data, tvb, offset+DATA_OFFS, p3, ENC_NA);