aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-05-14 18:03:44 +0000
committerWerner Koch <[email protected]>2019-05-15 06:52:21 +0000
commit6e041b7b356c3adba714e98f4ecf0dd007375390 (patch)
treeed03847363a22280a31c67d60887be6466ef29ac /sm/gpgsm.h
parentscd: Fix return value for KEYINFO command. (diff)
downloadgnupg-6e041b7b356c3adba714e98f4ecf0dd007375390.tar.gz
gnupg-6e041b7b356c3adba714e98f4ecf0dd007375390.zip
sm: Add a couple of debug calls to the keydb module.
* sm/gpgsm.h (DBG_CLOCK_VALUE, DBG_CLOCK): New. (DBG_LOOKUP_VALUE, DBG_LOOKUP): New. * sm/gpgsm.c: new debug flags "lookup" and "clock" * sm/keydb.c: Add log_clock calls to most functions. (keydb_search_desc_dump): New. (keydb_search) [DBG_LOOKUP]: Print descrh decription. * sm/keylist.c (list_cert_std): Flush FP in debug mode to better syncronize the output with the debug output -- Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index c15d8dc4f..4ad0afb29 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -175,6 +175,8 @@ struct
#define DBG_MEMSTAT_VALUE 128 /* show memory statistics */
#define DBG_HASHING_VALUE 512 /* debug hashing operations */
#define DBG_IPC_VALUE 1024 /* debug assuan communication */
+#define DBG_CLOCK_VALUE 4096
+#define DBG_LOOKUP_VALUE 8192 /* debug the key lookup */
#define DBG_X509 (opt.debug & DBG_X509_VALUE)
#define DBG_CRYPTO (opt.debug & DBG_CRYPTO_VALUE)
@@ -182,6 +184,8 @@ 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_CLOCK (opt.debug & DBG_CLOCK_VALUE)
+#define DBG_LOOKUP (opt.debug & DBG_LOOKUP_VALUE)
/* Forward declaration for an object defined in server.c */
struct server_local_s;