diff options
author | David Shaw <[email protected]> | 2003-11-15 22:31:58 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-11-15 22:31:58 +0000 |
commit | 995d71258998eb6ed80a08cb5ad8c8bd03f13afb (patch) | |
tree | 486e8ad5b1e39f5c2063d82f5555a395be86f4a8 /g10/sign.c | |
parent | * encode.c (encode_simple), sign.c (sign_symencrypt_file): Properly use (diff) | |
download | gnupg-995d71258998eb6ed80a08cb5ad8c8bd03f13afb.tar.gz gnupg-995d71258998eb6ed80a08cb5ad8c8bd03f13afb.zip |
* 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.
Diffstat (limited to '')
-rw-r--r-- | g10/sign.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/sign.c b/g10/sign.c index 17c1d2614..55ed2f198 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -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 */ |