aboutsummaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-05-30 20:05:57 +0000
committerWerner Koch <[email protected]>2018-05-30 20:05:57 +0000
commitd3d41146b33040eb65eaaaffcfc7b4211e60bd95 (patch)
tree7436c1f92cf1c990c1ac25f6fd9faf353dc78754 /g10/gpg.c
parentgpg: Detect multiple literal plaintext packets more reliable. (diff)
downloadgnupg-d3d41146b33040eb65eaaaffcfc7b4211e60bd95.tar.gz
gnupg-d3d41146b33040eb65eaaaffcfc7b4211e60bd95.zip
gpg: Ignore the multiple message override options.
* g10/gpg.c (oAllowMultisigVerification) (oAllowMultipleMessages, oNoAllowMultipleMessages): Remove. (opts): Turn --allow-multisig-verification, --allow-multiple-messages and --no-allow-multiple-messages into NOPs * g10/options.h (struct opt): Remove flags.allow_multiple_messages. * g10/mainproc.c (proc_plaintext): Assume allow_multiple_messages is false. -- These options are very old compatibility hacks and should not be used anymore. We keep them as dummy options in case someone has them in the conf file. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index af56f1256..70bdddfda 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -401,13 +401,10 @@ enum cmd_and_opt_values
oNoRequireCrossCert,
oAutoKeyLocate,
oNoAutoKeyLocate,
- oAllowMultisigVerification,
oEnableLargeRSA,
oDisableLargeRSA,
oEnableDSA2,
oDisableDSA2,
- oAllowMultipleMessages,
- oNoAllowMultipleMessages,
oAllowWeakDigestAlgos,
oFakedSystemTime,
oNoAutostart,
@@ -863,14 +860,10 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_n (oExitOnStatusWriteError, "exit-on-status-write-error", "@"),
ARGPARSE_s_i (oLimitCardInsertTries, "limit-card-insert-tries", "@"),
- ARGPARSE_s_n (oAllowMultisigVerification,
- "allow-multisig-verification", "@"),
ARGPARSE_s_n (oEnableLargeRSA, "enable-large-rsa", "@"),
ARGPARSE_s_n (oDisableLargeRSA, "disable-large-rsa", "@"),
ARGPARSE_s_n (oEnableDSA2, "enable-dsa2", "@"),
ARGPARSE_s_n (oDisableDSA2, "disable-dsa2", "@"),
- ARGPARSE_s_n (oAllowMultipleMessages, "allow-multiple-messages", "@"),
- ARGPARSE_s_n (oNoAllowMultipleMessages, "no-allow-multiple-messages", "@"),
ARGPARSE_s_n (oAllowWeakDigestAlgos, "allow-weak-digest-algos", "@"),
ARGPARSE_s_s (oDefaultNewKeyAlgo, "default-new-key-algo", "@"),
@@ -918,7 +911,9 @@ static ARGPARSE_OPTS opts[] = {
ARGPARSE_s_n (oNoop, "no-force-mdc", "@"),
ARGPARSE_s_n (oNoop, "disable-mdc", "@"),
ARGPARSE_s_n (oNoop, "no-disable-mdc", "@"),
-
+ ARGPARSE_s_n (oNoop, "allow-multisig-verification", "@"),
+ ARGPARSE_s_n (oNoop, "allow-multiple-messages", "@"),
+ ARGPARSE_s_n (oNoop, "no-allow-multiple-messages", "@"),
ARGPARSE_end ()
};
@@ -3578,15 +3573,6 @@ main (int argc, char **argv)
case oEnableDSA2: opt.flags.dsa2=1; break;
case oDisableDSA2: opt.flags.dsa2=0; break;
- case oAllowMultisigVerification:
- case oAllowMultipleMessages:
- opt.flags.allow_multiple_messages=1;
- break;
-
- case oNoAllowMultipleMessages:
- opt.flags.allow_multiple_messages=0;
- break;
-
case oAllowWeakDigestAlgos:
opt.flags.allow_weak_digest_algos = 1;
break;