summaryrefslogtreecommitdiff
path: root/src/common/compress.c
diff options
context:
space:
mode:
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();
+}