aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/gpg.c6
-rw-r--r--g10/mainproc.c2
-rw-r--r--g10/options.h2
3 files changed, 9 insertions, 1 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index f431a2676..38ed41da1 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -438,6 +438,7 @@ enum cmd_and_opt_values
oRequireCompliance,
oCompatibilityFlags,
oAddDesigRevoker,
+ oProcAllSigs,
oNoop
};
@@ -877,6 +878,7 @@ static ARGPARSE_OPTS 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", "@"),
@@ -2713,6 +2715,10 @@ main (int argc, char **argv)
nogreeting = 1;
break;
+ case oProcAllSigs:
+ opt.flags.proc_all_sigs = 1;
+ break;
+
case oUseAgent: /* Dummy. */
break;
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 0d98e0f67..eb114f639 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -2638,7 +2638,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
diff --git a/g10/options.h b/g10/options.h
index 9cdd251b5..c250e3ced 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -260,6 +260,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