Rename the torgzip module to compress.

See https://bugs.torproject.org/21663
This commit is contained in:
Alexander Færøy 2017-04-18 03:21:53 +02:00 committed by Nick Mathewson
parent 9d5bc1a935
commit 04583df452
9 changed files with 16 additions and 16 deletions

View File

@ -7,7 +7,7 @@ LIBOR_OBJECTS = address.obj backtrace.obj compat.obj container.obj di_ops.obj \
log.obj memarea.obj mempool.obj procmon.obj sandbox.obj util.obj \ log.obj memarea.obj mempool.obj procmon.obj sandbox.obj util.obj \
util_codedigest.obj util_codedigest.obj
LIBOR_CRYPTO_OBJECTS = aes.obj crypto.obj crypto_format.obj torgzip.obj tortls.obj \ LIBOR_CRYPTO_OBJECTS = aes.obj crypto.obj crypto_format.obj compress.obj tortls.obj \
crypto_curve25519.obj curve25519-donna.obj crypto_curve25519.obj curve25519-donna.obj
LIBOR_EVENT_OBJECTS = compat_libevent.obj LIBOR_EVENT_OBJECTS = compat_libevent.obj

View File

@ -4,8 +4,8 @@
/* See LICENSE for licensing information */ /* See LICENSE for licensing information */
/** /**
* \file torgzip.c * \file compress.c
* \brief A simple in-memory gzip implementation. * \brief Common compression API.
**/ **/
#include "orconfig.h" #include "orconfig.h"
@ -22,7 +22,7 @@
#include "util.h" #include "util.h"
#include "torlog.h" #include "torlog.h"
#include "torgzip.h" #include "compress.h"
#include "compress_zlib.h" #include "compress_zlib.h"
/** @{ */ /** @{ */

View File

@ -4,12 +4,12 @@
/* See LICENSE for licensing information */ /* See LICENSE for licensing information */
/** /**
* \file torgzip.h * \file compress.h
* \brief Headers for torgzip.h * \brief Headers for compress.c
**/ **/
#ifndef TOR_TORGZIP_H #ifndef TOR_COMPRESS_H
#define TOR_TORGZIP_H #define TOR_COMPRESS_H
/** Enumeration of what kind of compression to use. Only ZLIB_METHOD and /** Enumeration of what kind of compression to use. Only ZLIB_METHOD and
* GZIP_METHOD is guaranteed to be supported by the compress/uncompress * GZIP_METHOD is guaranteed to be supported by the compress/uncompress
@ -70,5 +70,5 @@ void tor_compress_free(tor_compress_state_t *state);
size_t tor_compress_state_size(const tor_compress_state_t *state); size_t tor_compress_state_size(const tor_compress_state_t *state);
#endif #endif // TOR_COMPRESS_H.

View File

@ -15,7 +15,7 @@
#include "util.h" #include "util.h"
#include "torlog.h" #include "torlog.h"
#include "torgzip.h" #include "compress.h"
#include "compress_zlib.h" #include "compress_zlib.h"
/* zlib 1.2.4 and 1.2.5 do some "clever" things with macros. Instead of /* zlib 1.2.4 and 1.2.5 do some "clever" things with macros. Instead of

View File

@ -105,12 +105,12 @@ src/common/src_common_libor_testing_a-log.$(OBJEXT) \
LIBOR_CRYPTO_A_SRC = \ LIBOR_CRYPTO_A_SRC = \
src/common/aes.c \ src/common/aes.c \
src/common/compress.c \
src/common/compress_zlib.c \ src/common/compress_zlib.c \
src/common/crypto.c \ src/common/crypto.c \
src/common/crypto_pwbox.c \ src/common/crypto_pwbox.c \
src/common/crypto_s2k.c \ src/common/crypto_s2k.c \
src/common/crypto_format.c \ src/common/crypto_format.c \
src/common/torgzip.c \
src/common/tortls.c \ src/common/tortls.c \
src/common/crypto_curve25519.c \ src/common/crypto_curve25519.c \
src/common/crypto_ed25519.c src/common/crypto_ed25519.c
@ -146,6 +146,7 @@ COMMONHEADERS = \
src/common/compat_openssl.h \ src/common/compat_openssl.h \
src/common/compat_threads.h \ src/common/compat_threads.h \
src/common/compat_time.h \ src/common/compat_time.h \
src/common/compress.h \
src/common/compress_zlib.h \ src/common/compress_zlib.h \
src/common/confline.h \ src/common/confline.h \
src/common/container.h \ src/common/container.h \
@ -165,7 +166,6 @@ COMMONHEADERS = \
src/common/storagedir.h \ src/common/storagedir.h \
src/common/testsupport.h \ src/common/testsupport.h \
src/common/timers.h \ src/common/timers.h \
src/common/torgzip.h \
src/common/torint.h \ src/common/torint.h \
src/common/torlog.h \ src/common/torlog.h \
src/common/tortls.h \ src/common/tortls.h \

View File

@ -69,6 +69,7 @@
#include "circuitmux.h" #include "circuitmux.h"
#include "circuitmux_ewma.h" #include "circuitmux_ewma.h"
#include "circuitstats.h" #include "circuitstats.h"
#include "compress.h"
#include "compress_zlib.h" #include "compress_zlib.h"
#include "config.h" #include "config.h"
#include "connection.h" #include "connection.h"
@ -100,7 +101,6 @@
#include "statefile.h" #include "statefile.h"
#include "transports.h" #include "transports.h"
#include "ext_orport.h" #include "ext_orport.h"
#include "torgzip.h"
#ifdef _WIN32 #ifdef _WIN32
#include <shlobj.h> #include <shlobj.h>
#endif #endif

View File

@ -71,7 +71,7 @@
#include "tortls.h" #include "tortls.h"
#include "torlog.h" #include "torlog.h"
#include "container.h" #include "container.h"
#include "torgzip.h" #include "compress.h"
#include "address.h" #include "address.h"
#include "compat_libevent.h" #include "compat_libevent.h"
#include "ht.h" #include "ht.h"

View File

@ -44,13 +44,13 @@ double fabs(double x);
#include "buffers.h" #include "buffers.h"
#include "circuitlist.h" #include "circuitlist.h"
#include "circuitstats.h" #include "circuitstats.h"
#include "compress.h"
#include "config.h" #include "config.h"
#include "connection_edge.h" #include "connection_edge.h"
#include "geoip.h" #include "geoip.h"
#include "rendcommon.h" #include "rendcommon.h"
#include "rendcache.h" #include "rendcache.h"
#include "test.h" #include "test.h"
#include "torgzip.h"
#include "main.h" #include "main.h"
#include "memarea.h" #include "memarea.h"
#include "onion.h" #include "onion.h"

View File

@ -14,6 +14,7 @@
#include "connection.h" #include "connection.h"
#include "directory.h" #include "directory.h"
#include "test.h" #include "test.h"
#include "compress.h"
#include "connection.h" #include "connection.h"
#include "rendcommon.h" #include "rendcommon.h"
#include "rendcache.h" #include "rendcache.h"
@ -28,7 +29,6 @@
#include "networkstatus.h" #include "networkstatus.h"
#include "geoip.h" #include "geoip.h"
#include "dirserv.h" #include "dirserv.h"
#include "torgzip.h"
#include "dirvote.h" #include "dirvote.h"
#include "log_test_helpers.h" #include "log_test_helpers.h"