diff options
Diffstat (limited to 'tools/card-misc.c')
-rw-r--r-- | tools/card-misc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/card-misc.c b/tools/card-misc.c index bbb2b4810..6466e98b2 100644 --- a/tools/card-misc.c +++ b/tools/card-misc.c @@ -92,8 +92,13 @@ send_apdu (const char *hexapdu, const char *desc, unsigned int ignore, if (err) log_error ("sending card command %s failed: %s\n", desc, gpg_strerror (err)); - else if (!hexapdu || !strcmp (hexapdu, "undefined")) - ; + else if (!hexapdu + || !strcmp (hexapdu, "undefined") + || !strcmp (hexapdu, "reset-keep-lock") + || !strcmp (hexapdu, "lock") + || !strcmp (hexapdu, "trylock") + || !strcmp (hexapdu, "unlock")) + ; /* Ignore pseudo APDUs. */ else if (ignore == 0xffff) ; /* Ignore all status words. */ else if (sw != 0x9000) |