aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-08-23 09:27:58 +0000
committerWerner Koch <[email protected]>2024-08-23 09:28:30 +0000
commit1eb382fb1f431575872b47dc160807858b7df3e5 (patch)
tree8d5712de54567e711e2b34d4c53087fb25953981 /g10/mainproc.c
parentgpg: Warn if a keyring is specified along with --use-keyboxd. (diff)
downloadgnupg-1eb382fb1f431575872b47dc160807858b7df3e5.tar.gz
gnupg-1eb382fb1f431575872b47dc160807858b7df3e5.zip
gpg: New option --proc-all-sigs
* g10/options.h (flags): Add proc_all_sigs. * g10/mainproc.c (proc_tree): Do not stop signature checking if this new option is used. * g10/gpg.c (oProcAllSigs): New. (opts): Add "proc-all-sigs". (main): Set it. -- GnuPG-bug-id: 7261
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r--g10/mainproc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 29e5188f5..42d341d0c 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -2681,7 +2681,8 @@ proc_tree (CTX c, kbnode_t node)
}
for (n1 = node; (n1 = find_next_kbnode (n1, PKT_SIGNATURE));)
- if (check_sig_and_print (c, n1) && opt.batch)
+ if (check_sig_and_print (c, n1) && opt.batch
+ && !opt.flags.proc_all_sigs)
break;
}
@@ -2701,7 +2702,8 @@ proc_tree (CTX c, kbnode_t node)
}
for (n1 = node; (n1 = find_next_kbnode (n1, PKT_SIGNATURE));)
- if (check_sig_and_print (c, n1) && opt.batch)
+ if (check_sig_and_print (c, n1) && opt.batch
+ && !opt.flags.proc_all_sigs)
break;
}
else if (node->pkt->pkttype == PKT_SIGNATURE)
@@ -2830,7 +2832,8 @@ proc_tree (CTX c, kbnode_t node)
if (multiple_ok)
{
for (n1 = node; n1; (n1 = find_next_kbnode(n1, PKT_SIGNATURE)))
- if (check_sig_and_print (c, n1) && opt.batch)
+ if (check_sig_and_print (c, n1) && opt.batch
+ && !opt.flags.proc_all_sigs)
break;
}
else