aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.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/keydb.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/keydb.c')
-rw-r--r--g10/keydb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/keydb.c b/g10/keydb.c
index ba61f8290..62ffdc23c 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -1,6 +1,7 @@
/* keydb.c - key database dispatcher
* Copyright (C) 2001-2013 Free Software Foundation, Inc.
* Copyright (C) 2001-2015 Werner Koch
+ * Copyright (C) 2019,2024 g10 Code GmbH
*
* This file is part of GnuPG.
*
@@ -16,6 +17,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <https://www.gnu.org/licenses/>.
+ * SPDX-License-Identifier: GPL-3.0-or-later
*/
#include <config.h>
@@ -1818,7 +1820,7 @@ internal_keydb_search (KEYDB_HANDLE hd, KEYDB_SEARCH_DESC *desc,
while ((rc == -1 || gpg_err_code (rc) == GPG_ERR_EOF)
&& hd->current >= 0 && hd->current < hd->used)
{
- if (DBG_LOOKUP)
+ if (DBG_KEYDB)
log_debug ("%s: searching %s (resource %d of %d)\n",
__func__,
hd->active[hd->current].type == KEYDB_RESOURCE_TYPE_KEYRING
@@ -1845,7 +1847,7 @@ internal_keydb_search (KEYDB_HANDLE hd, KEYDB_SEARCH_DESC *desc,
break;
}
- if (DBG_LOOKUP)
+ if (DBG_KEYDB)
log_debug ("%s: searched %s (resource %d of %d) => %s\n",
__func__,
hd->active[hd->current].type == KEYDB_RESOURCE_TYPE_KEYRING