aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-04-30 13:02:00 +0000
committerWerner Koch <[email protected]>2025-04-30 13:06:40 +0000
commita9445bbb1d979e059cf71b38b7fa88ff3d89e916 (patch)
tree16442d5542a23d58e43f15474870b0e90dc01464 /g10/gpg.c
parentdoc: Register DCO for Collin Funk (diff)
downloadgnupg-a9445bbb1d979e059cf71b38b7fa88ff3d89e916.tar.gz
gnupg-a9445bbb1d979e059cf71b38b7fa88ff3d89e916.zip
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.
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index 65b56c4d1..5f9a4b042 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -65,6 +65,7 @@
#include "../common/init.h"
#include "../common/mbox-util.h"
#include "../common/zb32.h"
+#include "../common/recsel.h"
#include "../common/shareddefs.h"
#include "../common/compliance.h"
#include "../common/comopt.h"
@@ -1043,6 +1044,7 @@ static struct debug_flags_s debug_flags [] =
{ DBG_TRUST_VALUE , "trust" },
{ DBG_HASHING_VALUE, "hashing" },
{ DBG_IPC_VALUE , "ipc" },
+ { DBG_RECSEL_VALUE , "recsel" },
{ DBG_CLOCK_VALUE , "clock" },
{ DBG_LOOKUP_VALUE , "lookup" },
{ DBG_EXTPROG_VALUE, "extprog" },
@@ -1413,6 +1415,9 @@ set_debug (const char *level)
if (opt.debug && opt.quiet)
opt.quiet = 0;
+ /* Pass debug flags to the record selection module. */
+ recsel_set_debug (!!DBG_RECSEL);
+
if (opt_set_iobuf_size || opt_set_iobuf_size_used)
log_debug ("iobuf buffer size is %uk\n",
iobuf_set_buffer_size (opt_set_iobuf_size));