mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* options.h, g10.c (main), compress.c (init_compress), compress-bz2.c
(init_compress): Add --compress-level and --bzip2-compress-level. -z sets them both. Change various callers.
This commit is contained in:
parent
3257edd4e4
commit
995d712589
9 changed files with 67 additions and 52 deletions
|
@ -575,6 +575,8 @@ string_to_compress_algo(const char *string)
|
|||
{
|
||||
if(ascii_strcasecmp(string,"uncompressed")==0)
|
||||
return 0;
|
||||
else if(ascii_strcasecmp(string,"none")==0)
|
||||
return 0;
|
||||
else if(ascii_strcasecmp(string,"zip")==0)
|
||||
return 1;
|
||||
else if(ascii_strcasecmp(string,"zlib")==0)
|
||||
|
@ -623,13 +625,13 @@ default_cipher_algo(void)
|
|||
}
|
||||
|
||||
/* There is no default_digest_algo function, but see
|
||||
sign.c:hash_for */
|
||||
sign.c:hash_for() */
|
||||
|
||||
int
|
||||
default_compress_algo(void)
|
||||
{
|
||||
if(opt.def_compress_algo!=-1)
|
||||
return opt.def_compress_algo;
|
||||
if(opt.compress_algo!=-1)
|
||||
return opt.compress_algo;
|
||||
else if(opt.personal_compress_prefs)
|
||||
return opt.personal_compress_prefs[0].value;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue