diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-08 18:14:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-19 12:20:24 -0400 |
commit | 808015316a5680003b78393c50b0701c47e1051c (patch) | |
tree | 42dc29cb5f3a2fb1a1680c1810dbd3604276e7d2 /src/test | |
parent | f016213f7fde4a0aac359a324baf42ad2356e169 (diff) | |
download | tor-808015316a5680003b78393c50b0701c47e1051c.tar.gz tor-808015316a5680003b78393c50b0701c47e1051c.zip |
Remove support for zlib <= 1.1
zlib 1.2 came out in 2003; earlier versions should be dead by now.
Our workaround code was only preventing us from using the gzip
encoding (if we decide to do so), and having some dead code linger
around in torgzip.c
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 8b9d5ea475..204d5db25f 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -1737,7 +1737,8 @@ test_util_gzip(void *arg) (void)arg; buf1 = tor_strdup("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZAAAAAAAAAAAAAAAAAAAZ"); tt_assert(detect_compression_method(buf1, strlen(buf1)) == UNKNOWN_METHOD); - if (is_gzip_supported()) { + + if (1) { tt_assert(!tor_gzip_compress(&buf2, &len1, buf1, strlen(buf1)+1, GZIP_METHOD)); tt_assert(buf2); |