aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-02-18 23:09:27 +0000
committerDavid Shaw <[email protected]>2004-02-18 23:09:27 +0000
commit6c13b96a1dd639d1f90f1c5f9aa13eca2f8f405a (patch)
tree9592c192312c2b486c3de3f39426aeb4fe0cde80 /g10/g10.c
parent* gpgkeys_ldap.c (ldap_to_gpg_err): Make sure that LDAP_OPT_ERROR_NUMBER (diff)
downloadgnupg-6c13b96a1dd639d1f90f1c5f9aa13eca2f8f405a.tar.gz
gnupg-6c13b96a1dd639d1f90f1c5f9aa13eca2f8f405a.zip
* options.h, g10.c (main), plaintext.c (handle_plaintext): Add
--max-output option to help people deal with decompression bombs.
Diffstat (limited to '')
-rw-r--r--g10/g10.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 916934c4f..c15cea379 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -76,6 +76,7 @@ enum cmd_and_opt_values
oCompress = 'z',
oSetNotation = 'N',
oBatch = 500,
+ oMaxOutput,
oSigNotation,
oCertNotation,
oShowNotation,
@@ -436,6 +437,7 @@ static ARGPARSE_OPTS opts[] = {
{ oAskCertExpire, "ask-cert-expire", 0, "@"},
{ oNoAskCertExpire, "no-ask-cert-expire", 0, "@"},
{ oOutput, "output", 2, N_("use as output file")},
+ { oMaxOutput, "max-output", 16|4, "@" },
{ oVerbose, "verbose", 0, N_("verbose") },
{ oQuiet, "quiet", 0, "@"},
{ oNoTTY, "no-tty", 0, "@"},
@@ -1697,6 +1699,7 @@ main( int argc, char **argv )
case oArmor: opt.armor = 1; opt.no_armor=0; break;
case oOutput: opt.outfile = pargs.r.ret_str; break;
+ case oMaxOutput: opt.max_output = pargs.r.ret_ulong; break;
case oQuiet: opt.quiet = 1; break;
case oNoTTY: tty_no_terminal(1); break;
case oDryRun: opt.dry_run = 1; break;