summaryrefslogtreecommitdiff
path: root/src/common/compress.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 14:51:44 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-25 16:47:46 -0400
commit0274ea749a6a1456d905878730c226985db183ad (patch)
tree840e6b19a338e791005ff09073af237ef6e249db /src/common/compress.h
parentd4a2decc56cc5328c8edfde2cc512efd844cc32b (diff)
downloadtor-0274ea749a6a1456d905878730c226985db183ad.tar.gz
tor-0274ea749a6a1456d905878730c226985db183ad.zip
Function to convert compression methods to/from strings.
Diffstat (limited to 'src/common/compress.h')
-rw-r--r--src/common/compress.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/compress.h b/src/common/compress.h
index cb5caeaf07..95b70c02ec 100644
--- a/src/common/compress.h
+++ b/src/common/compress.h
@@ -48,6 +48,8 @@ compress_method_t detect_compression_method(const char *in, size_t in_len);
int tor_compress_is_compression_bomb(size_t size_in, size_t size_out);
int tor_compress_supports_method(compress_method_t method);
+const char * compression_method_get_name(compress_method_t method);
+compress_method_t compression_method_get_by_name(const char *name);
const char *tor_compress_version_str(compress_method_t method);