diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-20 15:56:38 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-04-25 08:10:09 -0400 |
commit | 1c77d8690caa1ad80b9d9581cac8eddae95e82d1 (patch) | |
tree | 87cb3f07a2919f11fef5eafe671bd97f8c825710 /src/common/compress_zstd.h | |
parent | 04682d302aeeb0c2a0d9859bc0c1feee38daf16a (diff) | |
download | tor-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.h | 3 |
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); |