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
|
@ -836,9 +836,9 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr,
|
|||
iobuf_push_filter( out, encrypt_filter, &efx );
|
||||
}
|
||||
|
||||
if( opt.compress && !outfile && ( !detached || opt.compress_sigs) )
|
||||
if( opt.compress_algo && !outfile && ( !detached || opt.compress_sigs) )
|
||||
{
|
||||
int compr_algo=opt.def_compress_algo;
|
||||
int compr_algo=opt.compress_algo;
|
||||
|
||||
/* If not forced by user */
|
||||
if(compr_algo==-1)
|
||||
|
@ -1180,8 +1180,8 @@ sign_symencrypt_file (const char *fname, STRLIST locusr)
|
|||
/* Push the encryption filter */
|
||||
iobuf_push_filter( out, cipher_filter, &cfx );
|
||||
|
||||
/* Push the Zip filter */
|
||||
if (opt.compress && default_compress_algo())
|
||||
/* Push the compress filter */
|
||||
if (default_compress_algo())
|
||||
push_compress_filter(out,&zfx,default_compress_algo());
|
||||
|
||||
/* Write the one-pass signature packets */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue