1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

gpg: Add debug flag "recsel".

* g10/gpg.c: Include recsel.h.
(debug_flags): New flag "recsel".
(set_debug): Set it.
* g10/options.h (DBG_RECSEL_VALUE, DBG_RECSEL): New.
* g10/import.c (impex_filter_getval): Add debug diagnostics.
* g10/keylist.c (parse_and_set_list_filter): Dump the record filter.
* common/recsel.c (recsel_debug): New variable.
(recsel_set_debug): New function.
(recsel_select): Add debug output if requested.
This commit is contained in:
Werner Koch 2025-04-30 15:02:00 +02:00
parent 28591a9f3a
commit a9445bbb1d
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
6 changed files with 29 additions and 0 deletions

View file

@ -132,6 +132,8 @@ parse_and_set_list_filter (const char *string)
err = recsel_parse_expr (&list_filter.selkey, string+7);
else
err = gpg_error (GPG_ERR_INV_NAME);
if (!err && DBG_RECSEL)
recsel_dump (list_filter.selkey);
return err;
}