diff options
author | Werner Koch <wk@gnupg.org> | 2014-08-12 10:36:30 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-08-14 09:55:09 +0200 |
commit | 71b55e91f02cdb65a8884892f71c4c7bf8a75247 (patch) | |
tree | 26b7107471109f9b5de96ee8b2360f95477ba7a0 /g10 | |
parent | gpg: Add list-option "show-usage". (diff) | |
download | gnupg2-71b55e91f02cdb65a8884892f71c4c7bf8a75247.tar.xz gnupg2-71b55e91f02cdb65a8884892f71c4c7bf8a75247.zip |
gpg: Remove --compress-keys and --compress-sigs feature.
* g10/gpg.c (oCompressKeys, oCompressSigs): Remove.
(opts): Turn --compress-keys and --compress-signs in NOPs.
* g10/options.h (opt): Remove fields compress_keys and compress_sigs.
* g10/export.c (do_export): Remove compress_keys feature.
* g10/sign.c (sign_file): Remove compress_sigs feature.
--
These features are disabled in GnuPG since the very early days and
they fulfill no real purpose. For now we keep the command line
options as dummys.
Diffstat (limited to '')
-rw-r--r-- | g10/export.c | 2 | ||||
-rw-r--r-- | g10/gpg.c | 19 | ||||
-rw-r--r-- | g10/options.h | 3 | ||||
-rw-r--r-- | g10/sign.c | 2 |
4 files changed, 8 insertions, 18 deletions
diff --git a/g10/export.c b/g10/export.c index 0aa44f337..6a921c192 100644 --- a/g10/export.c +++ b/g10/export.c @@ -213,8 +213,6 @@ do_export (ctrl_t ctrl, strlist_t users, int secret, unsigned int options ) afx->what = secret? 5 : 1; push_armor_filter (afx, out); } - if ( opt.compress_keys ) - push_compress_filter (out,&zfx,default_compress_algo()); } rc = do_export_stream (ctrl, out, users, secret, NULL, options, &any ); @@ -251,8 +251,6 @@ enum cmd_and_opt_values oSkipVerify, oSkipHiddenRecipients, oNoSkipHiddenRecipients, - oCompressKeys, - oCompressSigs, oAlwaysTrust, oTrustModel, oForceOwnertrust, @@ -563,9 +561,6 @@ static ARGPARSE_OPTS opts[] = { ARGPARSE_s_i (oAttributeFD, "attribute-fd", "@"), ARGPARSE_s_s (oAttributeFile, "attribute-file", "@"), - ARGPARSE_s_n (oNoop, "sk-comments", "@"), - ARGPARSE_s_n (oNoop, "no-sk-comments", "@"), - ARGPARSE_s_i (oCompletesNeeded, "completes-needed", "@"), ARGPARSE_s_i (oMarginalsNeeded, "marginals-needed", "@"), ARGPARSE_s_i (oMaxCertDepth, "max-cert-depth", "@" ), @@ -672,8 +667,6 @@ static ARGPARSE_OPTS opts[] = { ARGPARSE_s_n (oSkipVerify, "skip-verify", "@"), ARGPARSE_s_n (oSkipHiddenRecipients, "skip-hidden-recipients", "@"), ARGPARSE_s_n (oNoSkipHiddenRecipients, "no-skip-hidden-recipients", "@"), - ARGPARSE_s_n (oCompressKeys, "compress-keys", "@"), - ARGPARSE_s_n (oCompressSigs, "compress-sigs", "@"), ARGPARSE_s_i (oDefCertLevel, "default-cert-check-level", "@"), /* old */ ARGPARSE_s_n (oAlwaysTrust, "always-trust", "@"), ARGPARSE_s_s (oTrustModel, "trust-model", "@"), @@ -799,6 +792,12 @@ static ARGPARSE_OPTS opts[] = { ARGPARSE_s_s (oAutoKeyLocate, "auto-key-locate", "@"), ARGPARSE_s_n (oNoAutoKeyLocate, "no-auto-key-locate", "@"), + /* Dummy options. */ + ARGPARSE_s_n (oNoop, "sk-comments", "@"), + ARGPARSE_s_n (oNoop, "no-sk-comments", "@"), + ARGPARSE_s_n (oNoop, "compress-keys", "@"), + ARGPARSE_s_n (oNoop, "compress-sigs", "@"), + ARGPARSE_end () }; @@ -2459,7 +2458,6 @@ main (int argc, char **argv) case oSkipHiddenRecipients: opt.skip_hidden_recipients = 1; break; case oNoSkipHiddenRecipients: opt.skip_hidden_recipients = 0; break; - case oCompressKeys: opt.compress_keys = 1; break; case aListSecretKeys: set_cmd( &cmd, aListSecretKeys); break; #ifndef NO_TRUST_MODELS @@ -2505,8 +2503,6 @@ main (int argc, char **argv) opt.pgp2_workarounds = 0; opt.escape_from = 1; opt.force_v3_sigs = 0; - opt.compress_keys = 0; /* not mandated, but we do it */ - opt.compress_sigs = 0; /* ditto. */ opt.not_dash_escaped = 0; opt.def_cipher_algo = 0; opt.def_digest_algo = 0; @@ -2525,8 +2521,6 @@ main (int argc, char **argv) opt.pgp2_workarounds = 0; opt.escape_from = 0; opt.force_v3_sigs = 0; - opt.compress_keys = 0; /* not mandated, but we do it */ - opt.compress_sigs = 0; /* ditto. */ opt.not_dash_escaped = 0; opt.def_cipher_algo = 0; opt.def_digest_algo = 0; @@ -2541,7 +2535,6 @@ main (int argc, char **argv) case oPGP7: opt.compliance = CO_PGP7; break; case oPGP8: opt.compliance = CO_PGP8; break; case oGnuPG: opt.compliance = CO_GNUPG; break; - case oCompressSigs: opt.compress_sigs = 1; break; case oRFC2440Text: opt.rfc2440_text=1; break; case oNoRFC2440Text: opt.rfc2440_text=0; break; case oSetFilename: diff --git a/g10/options.h b/g10/options.h index 266b3e9c6..e407aa400 100644 --- a/g10/options.h +++ b/g10/options.h @@ -111,8 +111,7 @@ struct int skip_verify; int skip_hidden_recipients; - int compress_keys; - int compress_sigs; + /* TM_CLASSIC must be zero to accomodate trustdbs generated before we started storing the trust model inside the trustdb. */ enum diff --git a/g10/sign.c b/g10/sign.c index 907d8c517..9aa4da49d 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -998,7 +998,7 @@ sign_file (ctrl_t ctrl, strlist_t filenames, int detached, strlist_t locusr, iobuf_push_filter( out, encrypt_filter, &efx ); } - if( opt.compress_algo && !outfile && ( !detached || opt.compress_sigs) ) + if (opt.compress_algo && !outfile && !detached) { int compr_algo=opt.compress_algo; |