diff options
author | David Shaw <[email protected]> | 2002-11-25 04:24:41 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-11-25 04:24:41 +0000 |
commit | 0819797911d6d7c75a6a60e4fc331892ca4ced87 (patch) | |
tree | c47c601b680edc4905c6c35e35776e815246ecd7 /g10/main.h | |
parent | * mainproc.c (proc_encrypted): Use --s2k-digest-algo for passphrase (diff) | |
download | gnupg-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/main.h')
-rw-r--r-- | g10/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h index a1aff3afb..91b7182e2 100644 --- a/g10/main.h +++ b/g10/main.h @@ -88,6 +88,8 @@ void deprecated_warning(const char *configname,unsigned int configlineno, const char *compress_algo_to_string(int algo); int string_to_compress_algo(const char *string); int check_compress_algo(int algo); +int default_cipher_algo(void); +int default_compress_algo(void); /*-- helptext.c --*/ void display_online_help( const char *keyword ); |