diff options
| author | Werner Koch <[email protected]> | 2019-09-05 10:59:56 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2019-09-05 11:02:59 +0000 |
| commit | 4e701953fec6efb10aaf34373e648b1dcafba054 (patch) | |
| tree | 013cd3feeada4f6fef8a4cf9bad1fbd249cd0479 /scd/scdaemon.h | |
| parent | agent: Fix ask_for_card to allow a key on multiple cards. (diff) | |
| download | gnupg-4e701953fec6efb10aaf34373e648b1dcafba054.tar.gz gnupg-4e701953fec6efb10aaf34373e648b1dcafba054.zip | |
scd: New debug flag "app".
* scd/scdaemon.h (DBG_APP_VALUE, DBG_APP): New.
* scd/scdaemon.c (debug_flags): Add "app".
* scd/app.c (xstrapptype): New.
(app_readcert, app_readkey, app_getattr): Add debug output.
(app_setattr, app_sign, app_auth): Ditto.
(app_writecert, app_writekey, app_change_pin): Ditto.
(app_check_pin): Ditto.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/scdaemon.h')
| -rw-r--r-- | scd/scdaemon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h index 80c6a8cdf..3f2e3ed55 100644 --- a/scd/scdaemon.h +++ b/scd/scdaemon.h @@ -67,6 +67,7 @@ struct } opt; +#define DBG_APP_VALUE 1 /* Debug app speific stuff. */ #define DBG_MPI_VALUE 2 /* debug mpi details */ #define DBG_CRYPTO_VALUE 4 /* debug low level crypto */ #define DBG_MEMORY_VALUE 32 /* debug memory allocation stuff */ @@ -77,6 +78,7 @@ struct #define DBG_CARD_IO_VALUE 2048 #define DBG_READER_VALUE 4096 /* Trace reader related functions. */ +#define DBG_APP (opt.debug & DBG_APP_VALUE) #define DBG_CRYPTO (opt.debug & DBG_CRYPTO_VALUE) #define DBG_MEMORY (opt.debug & DBG_MEMORY_VALUE) #define DBG_CACHE (opt.debug & DBG_CACHE_VALUE) |
