aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-08-09 07:31:54 +0000
committerWerner Koch <[email protected]>2024-08-09 07:31:54 +0000
commit8735b87411ffc84b148874b4fc886af79aafddeb (patch)
tree5a0a1d876e25823bb6e6afb00197a4ceb5fb1181 /g10/options.h
parentgpg: Increase compress buffer size. (diff)
downloadgnupg-8735b87411ffc84b148874b4fc886af79aafddeb.tar.gz
gnupg-8735b87411ffc84b148874b4fc886af79aafddeb.zip
gpg: New debug flag "keydb".
* g10/options.h (DBG_KEYDB_VALUE): New. * g10/gpg.c (debug_flags): Add it. * g10/keydb.c: Replace all DBG_LOOKUP by DBG_KEYDB. * g10/keyring.c: Ditto. * g10/call-keyboxd.c: Ditto. -- Using "lookup" also for key search debugging was not a good idea. This uses a separate flag for the latter.
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index 5168a788f..8fde3523a 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -365,6 +365,7 @@ struct {
#define DBG_CLOCK_VALUE 4096
#define DBG_LOOKUP_VALUE 8192 /* debug the key lookup */
#define DBG_EXTPROG_VALUE 16384 /* debug external program calls */
+#define DBG_KEYDB_VALUE 32768 /* debug keydb and keyboxd searches. */
/* Tests for the debugging flags. */
#define DBG_PACKET (opt.debug & DBG_PACKET_VALUE)
@@ -378,6 +379,7 @@ struct {
#define DBG_CLOCK (opt.debug & DBG_CLOCK_VALUE)
#define DBG_LOOKUP (opt.debug & DBG_LOOKUP_VALUE)
#define DBG_EXTPROG (opt.debug & DBG_EXTPROG_VALUE)
+#define DBG_KEYDB (opt.debug & DBG_KEYDB_VALUE)
/* FIXME: We need to check why we did not put this into opt. */
#define DBG_MEMORY memory_debug_mode