List human-readable version in the cardos-tool

This commit is contained in:
Jakub Jelen 2017-08-22 14:10:02 +02:00 committed by Frank Morgner
parent eeeefecf12
commit 789dd16320
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ static int cardos_info(void)
printf(" (that's CardOS M4.4)\n");
} else if (apdu.resp[0] == 0xc9 && apdu.resp[1] == 0x01) {
printf(" (that's CardOS V5.0)\n");
} else if (apdu.resp[0] == 0xc9 &&
(apdu.resp[1] == 0x02 || apdu.resp[1] == 0x03)) {
printf(" (that's CardOS V5.3)\n");
} else {
printf(" (unknown Version)\n");
}