Skip to content

Commit

Permalink
cardos-tool: correctly identify CardOS v5.4 cards
Browse files Browse the repository at this point in the history
  • Loading branch information
hamarituc authored and frankmorgner committed May 26, 2023
1 parent 33b7736 commit a7a30b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/cardos-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ static int cardos_info(void)
} else if (apdu.resp[0] == 0xc9 &&
(apdu.resp[1] == 0x02 || apdu.resp[1] == 0x03)) {
printf(" (that's CardOS V5.3)\n");
} else if (apdu.resp[0] == 0xc9 && apdu.resp[1] == 0x04) {
printf(" (that's CardOS V5.4)\n");
} else {
printf(" (unknown Version)\n");
}
Expand Down

0 comments on commit a7a30b7

Please sign in to comment.