summaryrefslogtreecommitdiff
path: root/src/common/compress.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 10:46:23 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-25 10:46:23 -0400
commit232c9e14a8319040c59fd9da1b5d242a57d10a04 (patch)
tree87557c905d81379c531416f59c8e4ad538cc7e77 /src/common/compress.c
parentec7c512d272d366e8e7de61aaf8108bca0adf957 (diff)
parent4266ec766af8e210ac52f597699b44818960ee39 (diff)
downloadtor-232c9e14a8319040c59fd9da1b5d242a57d10a04.tar.gz
tor-232c9e14a8319040c59fd9da1b5d242a57d10a04.zip
Merge branch 'atomic_counters'
Diffstat (limited to 'src/common/compress.c')
-rw-r--r--src/common/compress.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/compress.c b/src/common/compress.c
index 38b8184573..9332c0017d 100644
--- a/src/common/compress.c
+++ b/src/common/compress.c
@@ -375,3 +375,11 @@ tor_compress_state_size(const tor_compress_state_t *state)
return 0;
}
+/** Initialize all compression modules. */
+void
+tor_compress_init(void)
+{
+ tor_zlib_init();
+ tor_lzma_init();
+ tor_zstd_init();
+}