mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Add some debugging output.
-- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
11ec4785df
commit
8f6099ac51
3 changed files with 104 additions and 6 deletions
12
g10/gpg.c
12
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! */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue