From 3e988eb1c3c17391d329f37cb4a12ea351ed6499 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 10 Nov 2026 10:51:56 +0700 Subject: [PATCH] hf calypso info: print the transit identifier line Same "Transit.......... ( )" line as the other info commands, from the ticketing environment before the records are read. No hint, info already runs the full decode. Co-Authored-By: Claude Opus 5.5 --- client/src/cmdhfcalypso.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/src/cmdhfcalypso.c b/client/src/cmdhfcalypso.c index 51550e16b..9f60eccb0 100644 --- a/client/src/cmdhfcalypso.c +++ b/client/src/cmdhfcalypso.c @@ -2084,6 +2084,13 @@ static void calypso_run_transit_parsers(const calypso_select_result_t *selected, card.env.len = (uint8_t)MIN(env_len, sizeof(card.env.data)); memcpy(card.env.data, env, card.env.len); + // same identifier line as the other info commands, the parsers below decode it + transit_idents_t transit_ids; + if (transit_calypso_identify(&card, &transit_ids) > 0) { + PrintAndLogEx(NORMAL, ""); + transit_print_idents(&transit_ids); + } + (void)calypso_read_transit_record(0x1E, 1, &card.contract_list); (void)calypso_read_transit_record(0x19, 1, &card.counters);