summaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2002-08-06 19:57:53 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2002-08-06 19:57:53 +0200
commit63a71c1ff9f016c925740e96733c15bcd006b475 (patch)
tree1aff4d9f8cd162774fbb93b518410d81f10c4c76 /g10/g10.c
parent* encode.c (encode_crypt), g10.c (main), sign.c (sign_file, (diff)
downloadgnupg2-63a71c1ff9f016c925740e96733c15bcd006b475.tar.xz
gnupg2-63a71c1ff9f016c925740e96733c15bcd006b475.zip
* options.h, g10.c (main), mainproc.c (proc_encrypted): --ignore-mdc-error
option to turn a MDC check error into a warning.
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/g10.c b/g10/g10.c
index ab9f6481f..c92d834d3 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -266,6 +266,7 @@ enum cmd_and_opt_values { aNull = 0,
oIgnoreTimeConflict,
oIgnoreValidFrom,
oIgnoreCrcError,
+ oIgnoreMDCError,
oShowSessionKey,
oOverrideSessionKey,
oNoRandomSeedFile,
@@ -555,6 +556,7 @@ static ARGPARSE_OPTS opts[] = {
{ oIgnoreTimeConflict, "ignore-time-conflict", 0, "@" },
{ oIgnoreValidFrom, "ignore-valid-from", 0, "@" },
{ oIgnoreCrcError, "ignore-crc-error", 0,"@" },
+ { oIgnoreMDCError, "ignore-mdc-error", 0,"@" },
{ oShowSessionKey, "show-session-key", 0, "@" },
{ oOverrideSessionKey, "override-session-key", 2, "@" },
{ oNoRandomSeedFile, "no-random-seed-file", 0, "@" },
@@ -1420,6 +1422,7 @@ main( int argc, char **argv )
case oIgnoreTimeConflict: opt.ignore_time_conflict = 1; break;
case oIgnoreValidFrom: opt.ignore_valid_from = 1; break;
case oIgnoreCrcError: opt.ignore_crc_error = 1; break;
+ case oIgnoreMDCError: opt.ignore_mdc_error = 1; break;
case oNoRandomSeedFile: use_random_seed = 0; break;
case oAutoKeyRetrieve:
case oNoAutoKeyRetrieve: