aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-11-25 04:24:41 +0000
committerDavid Shaw <[email protected]>2002-11-25 04:24:41 +0000
commit0819797911d6d7c75a6a60e4fc331892ca4ced87 (patch)
treec47c601b680edc4905c6c35e35776e815246ecd7 /g10/g10.c
parent* mainproc.c (proc_encrypted): Use --s2k-digest-algo for passphrase (diff)
downloadgnupg-0819797911d6d7c75a6a60e4fc331892ca4ced87.tar.gz
gnupg-0819797911d6d7c75a6a60e4fc331892ca4ced87.zip
* main.h, misc.c (default_cipher_algo, default_compress_algo): New.
Return the default algorithm by trying --cipher-algo/--compress-algo, then the first item in the pref list, then s2k-cipher-algo or ZIP. * sign.c (sign_file, sign_symencrypt_file), encode.c (encode_simple, encode_crypt): Call default_cipher_algo and default_compress_algo to get algorithms. * g10.c (main): Allow pref selection for compress algo with --openpgp.
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 2795cc9b7..e7173f48f 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -1515,7 +1515,7 @@ main( int argc, char **argv )
opt.def_cipher_algo = 0;
opt.def_digest_algo = 0;
opt.cert_digest_algo = 0;
- opt.def_compress_algo = 1;
+ opt.def_compress_algo = -1;
opt.s2k_mode = 3; /* iterated+salted */
opt.s2k_digest_algo = DIGEST_ALGO_SHA1;
opt.s2k_cipher_algo = CIPHER_ALGO_CAST5;