* main.h, misc.c (default_cipher_algo, default_compress_algo): New.
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 25 Nov 2002 04:24:41 +0000 (04:24 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 25 Nov 2002 04:24:41 +0000 (04:24 +0000)
commit0819797911d6d7c75a6a60e4fc331892ca4ced87
treec47c601b680edc4905c6c35e35776e815246ecd7
parentbd23076c5e52d8e48f2af1daff2da12fd3363697
* 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.
g10/ChangeLog
g10/encode.c
g10/g10.c
g10/main.h
g10/misc.c
g10/sign.c