diff options
author | Werner Koch <[email protected]> | 2022-05-05 11:35:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2022-05-05 12:12:23 +0000 |
commit | d60f930d9b000e802dc61c8e8d494a3091dc0437 (patch) | |
tree | 1fac460846fe98c7fe27c92adb05c2661c027dd0 | |
parent | gpg: Minor robustness fix. (diff) | |
download | gnupg-d60f930d9b000e802dc61c8e8d494a3091dc0437.tar.gz gnupg-d60f930d9b000e802dc61c8e8d494a3091dc0437.zip |
scd: New debug flags "card".
* scd/scdaemon.c (debug_flags): Add "card".
* scd/scdaemon.h (DBG_CARD_VALUE, DBG_CARD): New.
--
Some information from parsing the card are often very helpful.
However, the card_io triggered APDU dumps are in most cases too heavy.
Thus this new debug flag.
-rw-r--r-- | scd/scdaemon.c | 1 | ||||
-rw-r--r-- | scd/scdaemon.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 3cda69b33..b62f5b619 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -195,6 +195,7 @@ static struct debug_flags_s debug_flags [] = { DBG_MEMSTAT_VALUE, "memstat" }, { DBG_HASHING_VALUE, "hashing" }, { DBG_IPC_VALUE , "ipc" }, + { DBG_CARD_VALUE , "card" }, { DBG_CARD_IO_VALUE, "cardio" }, { DBG_READER_VALUE , "reader" }, { 0, NULL } diff --git a/scd/scdaemon.h b/scd/scdaemon.h index 3ba1b9ad0..bb7c1b025 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -71,12 +71,13 @@ struct #define DBG_MPI_VALUE 2 /* debug mpi details */ #define DBG_CRYPTO_VALUE 4 /* debug low level crypto */ +#define DBG_CARD_VALUE 16 /* debug card info */ #define DBG_MEMORY_VALUE 32 /* debug memory allocation stuff */ #define DBG_CACHE_VALUE 64 /* debug the caching */ #define DBG_MEMSTAT_VALUE 128 /* show memory statistics */ #define DBG_HASHING_VALUE 512 /* debug hashing operations */ #define DBG_IPC_VALUE 1024 -#define DBG_CARD_IO_VALUE 2048 +#define DBG_CARD_IO_VALUE 2048 /* debug card I/O (e.g. APDUs). */ #define DBG_READER_VALUE 4096 /* Trace reader related functions. */ #define DBG_CRYPTO (opt.debug & DBG_CRYPTO_VALUE) @@ -84,6 +85,7 @@ struct #define DBG_CACHE (opt.debug & DBG_CACHE_VALUE) #define DBG_HASHING (opt.debug & DBG_HASHING_VALUE) #define DBG_IPC (opt.debug & DBG_IPC_VALUE) +#define DBG_CARD (opt.debug & DBG_CARD_VALUE) #define DBG_CARD_IO (opt.debug & DBG_CARD_IO_VALUE) #define DBG_READER (opt.debug & DBG_READER_VALUE) |