diff options
Diffstat (limited to 'g10/sign.c')
-rw-r--r-- | g10/sign.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/g10/sign.c b/g10/sign.c index 06d1db100..017d6800c 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -773,10 +773,7 @@ sign_file( STRLIST filenames, int detached, STRLIST locusr, /* algo 0 means no compression */ if( compr_algo ) - { - zfx.algo = compr_algo; - iobuf_push_filter( out, compress_filter, &zfx ); - } + push_compress_filter(out,&zfx,compr_algo); } /* Write the one-pass signature packets if needed */ @@ -1096,19 +1093,7 @@ sign_symencrypt_file (const char *fname, STRLIST locusr) /* Push the Zip filter */ if (opt.compress) - { - int compr_algo=opt.def_compress_algo; - - /* Default */ - if(compr_algo==-1) - compr_algo=DEFAULT_COMPRESS_ALGO; - - if (compr_algo) - { - zfx.algo = compr_algo; - iobuf_push_filter( out, compress_filter, &zfx ); - } - } + push_compress_filter(out,&zfx,opt.def_compress_algo); /* Write the one-pass signature packets */ /*(current filters: zip - encrypt - armor)*/ |