comparison options.h @ 605:53c21d4ec98a

- Don't allow setting memLevel since that doesn't work properly - Better handling of the case where compressing makes the data larger (possibly only happens when memLevel is adjusted, but better to be safe)
author Matt Johnston <matt@ucc.asn.au>
date Mon, 28 Feb 2011 13:51:27 +0000
parents e001bd424f12
children e4991659fc10
comparison
equal deleted inserted replaced
599:8220862baae8 605:53c21d4ec98a
131 * if the random number source isn't good. It happened to Sony. 131 * if the random number source isn't good. It happened to Sony.
132 * On systems with a decent random source this isn't required. */ 132 * On systems with a decent random source this isn't required. */
133 /* #define DSS_PROTOK */ 133 /* #define DSS_PROTOK */
134 134
135 /* Control the memory/performance/compression tradeoff for zlib. 135 /* Control the memory/performance/compression tradeoff for zlib.
136 * Set windowBits=8, memLevel=1 for least memory usage, see your system's 136 * Set windowBits=8 for least memory usage, see your system's
137 * zlib.h for full details. 137 * zlib.h for full details.
138 * Default settings (windowBits=15, memLevel=8) will use 138 * Default settings (windowBits=15) will use 256kB for compression
139 * 256kB for compression + 32kB for decompression. 139 * windowBits=8 will use 129kB for compression.
140 * windowBits=8, memLevel=1 will use 10kB compression + 32kB decompression. 140 * Both modes will use ~35kB for decompression (using windowBits=15 for
141 * Note that windowBits is only set for deflate() - inflate() always uses the 141 * interoperability) */
142 * default of 15 so as to interoperate with other clients. */
143 #ifndef DROPBEAR_ZLIB_WINDOW_BITS 142 #ifndef DROPBEAR_ZLIB_WINDOW_BITS
144 #define DROPBEAR_ZLIB_WINDOW_BITS 15 143 #define DROPBEAR_ZLIB_WINDOW_BITS 15
145 #endif
146 #ifndef DROPBEAR_ZLIB_MEM_LEVEL
147 #define DROPBEAR_ZLIB_MEM_LEVEL 8
148 #endif 144 #endif
149 145
150 /* Whether to do reverse DNS lookups. */ 146 /* Whether to do reverse DNS lookups. */
151 #define DO_HOST_LOOKUP 147 #define DO_HOST_LOOKUP
152 148