diff options
author | David Shaw <[email protected]> | 2004-01-28 01:04:30 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-01-28 01:04:30 +0000 |
commit | 654ba16db55cdab42c4c1f381a967e006dfe10cd (patch) | |
tree | 881e962566dbe7dbc5e80e9b4f96e145bbd661dc /g10/compress.c | |
parent | * NEWS: Note --enable-key-cache, the OpenBSD/i386 and HPPA fixes, and (diff) | |
download | gnupg-654ba16db55cdab42c4c1f381a967e006dfe10cd.tar.gz gnupg-654ba16db55cdab42c4c1f381a967e006dfe10cd.zip |
* getkey.c: Set MAX_PK_CACHE_ENTRIES and MAX_UID_CACHE_ENTRIES to
PK_UID_CACHE_SIZE (set in ./configure).
* getkey.c (get_pubkey): When reading key data into the cache, properly
handle keys that are partially (pk, no UIDs) cached already. This is
Debian bug #176425 and #229549.
* compress.c (init_compress, push_compress_filter2): Do the right thing
(i.e. nothing) with compress algo 0.
* main.h, decrypt.c (decrypt_messages): Accept filenames to decrypt on
stdin. This is bug #253.
Diffstat (limited to 'g10/compress.c')
-rw-r--r-- | g10/compress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/compress.c b/g10/compress.c index 88eacf8de..cb5b9e52e 100644 --- a/g10/compress.c +++ b/g10/compress.c @@ -60,7 +60,7 @@ init_compress( compress_filter_context_t *zfx, z_stream *zs ) zlib_initialized = riscos_load_module("ZLib", zlib_path, 1); #endif - if( opt.compress_level >= 0 && opt.compress_level <= 9 ) + if( opt.compress_level >= 1 && opt.compress_level <= 9 ) level = opt.compress_level; else if( opt.compress_level == -1 ) level = Z_DEFAULT_COMPRESSION; @@ -337,7 +337,7 @@ void push_compress_filter2(IOBUF out,compress_filter_context_t *zfx, int algo,int rel) { - if(algo>0) + if(algo>=0) zfx->algo=algo; else zfx->algo=DEFAULT_COMPRESS_ALGO; |