* misc.c (compress_algo_to_string, string_to_compress_algo,
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 31 Oct 2003 05:39:02 +0000 (05:39 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 31 Oct 2003 05:39:02 +0000 (05:39 +0000)
commit869c6bb7e455c91680bad8c2649bcfcdacfc4e7d
tree02e5d7eaacfbe5dfd6f5485b73c24f0332638877
parent8d82e1af00aff3a1d745b7b2d7d0dc32de049ff4
* misc.c (compress_algo_to_string, string_to_compress_algo,
check_compress_algo): Add bzip2.

* compress.c (compress_filter): Make static to help force the use of
push_compress_filter.  Remove default algorithm setting since that is done
in push_compress_filter now.

* main.h: Use named algorithm.

* filter.h, compress.c (push_compress_filter, push_compress_filter2): New.
Figure out which is the appropriate compression filter to use, and push it
into place.

* compress.c (handle_compressed), encode.c (encode_simple, encode_crypt),
sign.c (sign_file, sign_symencrypt_file), import.c (read_block), export.c
(do_export): Use push_compress_filter instead of pushing the compression
filter ourselves.

* compress-bz2.c: New.  Bzlib versions of the compression filter routines.

* Makefile.am: Include compress-bz2.c if bz2lib is available.
12 files changed:
g10/ChangeLog
g10/Makefile.am
g10/compress-bz2.c [new file with mode: 0644]
g10/compress.c
g10/encode.c
g10/export.c
g10/filter.h
g10/g10.c
g10/import.c
g10/main.h
g10/misc.c
g10/sign.c