aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-11-16 19:55:34 +0000
committerNeal H. Walfield <[email protected]>2015-11-17 13:53:02 +0000
commit8f6099ac510526d89be50309dbeb52f62bbaa7d1 (patch)
treed0de2b2879028f1fc56bda118c77a84b9ee3e6fe /g10/gpg.c
parentgpg: Make debugging search descriptors easier. (diff)
downloadgnupg-8f6099ac510526d89be50309dbeb52f62bbaa7d1.tar.gz
gnupg-8f6099ac510526d89be50309dbeb52f62bbaa7d1.zip
gpg: Add some debugging output.
-- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to '')
-rw-r--r--g10/gpg.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 0cc7038fa..5ba3a205c 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -2124,6 +2124,12 @@ check_user_ids (strlist_t *sp,
default: log_bug ("Unsupport option: %d\n", t->flags >> 2);
}
+ if (DBG_LOOKUP)
+ {
+ log_debug ("\n");
+ log_debug ("%s: Checking %s=%s\n", __func__, option, t->d);
+ }
+
err = classify_user_id (t->d, &desc, 1);
if (err)
{
@@ -2153,6 +2159,9 @@ check_user_ids (strlist_t *sp,
err = keydb_search (hd, &desc, 1, NULL);
if (gpg_err_code (err) == GPG_ERR_NOT_FOUND)
{
+ if (DBG_LOOKUP)
+ log_debug ("%s: '%s' not found.\n", __func__, t->d);
+
if (error_if_not_found)
{
if (! rc)
@@ -2195,6 +2204,9 @@ check_user_ids (strlist_t *sp,
release_kbnode (kb);
/* Continue the search. */
+ if (DBG_LOOKUP)
+ log_debug ("%s: Check for duplicates for %s='%s'\n",
+ __func__, option, t->d);
err = keydb_search (hd, &desc, 1, NULL);
if (! err)
/* Another result! */