aboutsummaryrefslogtreecommitdiff
path: root/src/common/compress_zstd.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-20 15:56:38 +0200
committerNick Mathewson <nickm@torproject.org>2017-04-25 08:10:09 -0400
commit1c77d8690caa1ad80b9d9581cac8eddae95e82d1 (patch)
tree87cb3f07a2919f11fef5eafe671bd97f8c825710 /src/common/compress_zstd.h
parent04682d302aeeb0c2a0d9859bc0c1feee38daf16a (diff)
downloadtor-1c77d8690caa1ad80b9d9581cac8eddae95e82d1.tar.gz
tor-1c77d8690caa1ad80b9d9581cac8eddae95e82d1.zip
Add function to check if a given compression method is supported.
This patch adds support for checking if a given `compress_method_t` is supported by the currently running Tor instance using `tor_compress_supports_method()`. See: https://bugs.torproject.org/21662
Diffstat (limited to 'src/common/compress_zstd.h')
-rw-r--r--src/common/compress_zstd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compress_zstd.h b/src/common/compress_zstd.h
index ec83ba961e..b2297bd1df 100644
--- a/src/common/compress_zstd.h
+++ b/src/common/compress_zstd.h
@@ -11,6 +11,9 @@
#ifndef TOR_COMPRESS_ZSTD_H
#define TOR_COMPRESS_ZSTD_H
+int
+tor_zstd_method_supported(void);
+
const char *
tor_zstd_get_version_str(void);