diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-18 03:14:36 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 08:06:01 -0400 |
commit | 9d5bc1a9354637aa59025f61e577c6d42f8c53ba (patch) | |
tree | 509406ce51588c6a7e38586c593313e5303327b4 /src/or | |
parent | e6c6606a17841eaf263967254990db5e9443942d (diff) | |
download | tor-9d5bc1a9354637aa59025f61e577c6d42f8c53ba.tar.gz tor-9d5bc1a9354637aa59025f61e577c6d42f8c53ba.zip |
Move zlib compression code into its own module.
This patch refactors the `torgzip` module to allow us to extend a common
compression API to support multiple compression backends.
Additionally we move the gzip/zlib code into its own module under the
name `compress_zlib`.
See https://bugs.torproject.org/21664
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/config.c | 1 | ||||
-rw-r--r-- | src/or/main.c | 1 | ||||
-rw-r--r-- | src/or/relay.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index 809ff499fc..83e5f2106c 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -69,6 +69,7 @@ #include "circuitmux.h" #include "circuitmux_ewma.h" #include "circuitstats.h" +#include "compress_zlib.h" #include "config.h" #include "connection.h" #include "connection_edge.h" diff --git a/src/or/main.c b/src/or/main.c index 4505879adc..ddd7b82545 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -58,6 +58,7 @@ #include "circuitlist.h" #include "circuituse.h" #include "command.h" +#include "compress_zlib.h" #include "config.h" #include "confparse.h" #include "connection.h" diff --git a/src/or/relay.c b/src/or/relay.c index 5139036327..8a98c50372 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -54,6 +54,7 @@ #include "circuitbuild.h" #include "circuitlist.h" #include "circuituse.h" +#include "compress_zlib.h" #include "config.h" #include "connection.h" #include "connection_edge.h" |