From 2750c0372cd35ddb533c64664fa95f68bf8fd860 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Sat, 20 Nov 2010 01:58:09 +0000 Subject: [PATCH] Display master-key version in mifare-desfire-info. --- examples/mifare-desfire-info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/mifare-desfire-info.c b/examples/mifare-desfire-info.c index 91220e4..0ac09f5 100644 --- a/examples/mifare-desfire-info.c +++ b/examples/mifare-desfire-info.c @@ -115,6 +115,10 @@ main(int argc, char *argv[]) printf (" 0x%02x Free directory list access without PICC Master Key;\n", settings & 0x02); printf (" 0x%02x Allow changing the Master Key;\n", settings & 0x01); + uint8_t version; + mifare_desfire_get_key_version (tags[i], 0, &version); + printf ("Master Key version: %d (0x%02x)\n", version, version); + free (tag_uid); mifare_desfire_disconnect (tags[i]);