mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: New option --proc-all-sigs
* g10/options.h (flags): Add proc_all_sigs.
* g10/mainproc.c (check_sig_and_print): 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
Backported-from-master: 1eb382fb1f
This commit is contained in:
parent
92667aa8c2
commit
cb739bb2a5
5 changed files with 22 additions and 1 deletions
|
@ -455,6 +455,7 @@ enum cmd_and_opt_values
|
|||
oAssertSigner,
|
||||
oAssertPubkeyAlgo,
|
||||
oKbxBufferSize,
|
||||
oProcAllSigs,
|
||||
|
||||
oNoop
|
||||
};
|
||||
|
@ -902,6 +903,7 @@ static gpgrt_opt_t opts[] = {
|
|||
|
||||
ARGPARSE_s_n (oBatch, "batch", "@"),
|
||||
ARGPARSE_s_n (oNoBatch, "no-batch", "@"),
|
||||
ARGPARSE_s_n (oProcAllSigs, "proc-all-sigs", "@"),
|
||||
ARGPARSE_s_n (oAnswerYes, "yes", "@"),
|
||||
ARGPARSE_s_n (oAnswerNo, "no", "@"),
|
||||
ARGPARSE_s_i (oStatusFD, "status-fd", "@"),
|
||||
|
@ -2802,6 +2804,10 @@ main (int argc, char **argv)
|
|||
nogreeting = 1;
|
||||
break;
|
||||
|
||||
case oProcAllSigs:
|
||||
opt.flags.proc_all_sigs = 1;
|
||||
break;
|
||||
|
||||
case oUseAgent: /* Dummy. */
|
||||
break;
|
||||
|
||||
|
|
|
@ -2549,7 +2549,7 @@ check_sig_and_print (CTX c, kbnode_t node)
|
|||
release_kbnode( keyblock );
|
||||
if (rc)
|
||||
g10_errors_seen = 1;
|
||||
if (opt.batch && rc)
|
||||
if (opt.batch && rc && !opt.flags.proc_all_sigs)
|
||||
g10_exit (1);
|
||||
}
|
||||
else /* Error checking the signature. (neither Good nor Bad). */
|
||||
|
|
|
@ -305,6 +305,8 @@ struct
|
|||
/* Fail if an operation can't be done in the requested compliance
|
||||
* mode. */
|
||||
unsigned int require_compliance:1;
|
||||
/* Process all signatures even in batch mode. */
|
||||
unsigned int proc_all_sigs:1;
|
||||
} flags;
|
||||
|
||||
/* Linked list of ways to find a key if the key isn't on the local
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue