aboutsummaryrefslogtreecommitdiffstats
path: root/g10/call-keyboxd.c
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/call-keyboxd.c
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/call-keyboxd.c')
-rw-r--r--g10/call-keyboxd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/call-keyboxd.c b/g10/call-keyboxd.c
index e0f3c5e01..1bfcae345 100644
--- a/g10/call-keyboxd.c
+++ b/g10/call-keyboxd.c
@@ -1,5 +1,5 @@
/* call-keyboxd.c - Access to the keyboxd storage server
- * Copyright (C) 2019 g10 Code GmbH
+ * Copyright (C) 2019, 2024 g10 Code GmbH
*
* This file is part of GnuPG.
*
@@ -717,7 +717,7 @@ keydb_search (KEYDB_HANDLE hd, KEYDB_SEARCH_DESC *desc,
if (DBG_CLOCK)
log_clock ("%s enter", __func__);
- if (DBG_LOOKUP)
+ if (DBG_KEYDB)
{
log_debug ("%s: %zu search descriptions:\n", __func__, ndesc);
for (i = 0; i < ndesc; i ++)
@@ -880,7 +880,7 @@ keydb_search (KEYDB_HANDLE hd, KEYDB_SEARCH_DESC *desc,
{
hd->kbl->search_result = iobuf_temp_with_content (buffer, len);
xfree (buffer);
- if (DBG_LOOKUP && hd->last_ubid_valid)
+ if (DBG_KEYDB && hd->last_ubid_valid)
log_printhex (hd->last_ubid, 20, "found UBID (%d,%d):",
hd->last_uid_no, hd->last_pk_no);
}