summaryrefslogtreecommitdiff
path: root/src/common/compress.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-05-12 12:45:00 +0200
committerAlexander Færøy <ahf@torproject.org>2017-05-12 17:18:45 +0200
commit3a05687c6d4c1ed11707e53b5dbec1b81e2a9c0a (patch)
tree5df19c68cdd7ec8a988eae8f9ce763153a99d503 /src/common/compress.h
parentf8218b5adaa54c61c3b79ad7f055e1a4a433daa0 (diff)
downloadtor-3a05687c6d4c1ed11707e53b5dbec1b81e2a9c0a.tar.gz
tor-3a05687c6d4c1ed11707e53b5dbec1b81e2a9c0a.zip
Add API for getting human readable descriptions of a compress_method_t
See: https://bugs.torproject.org/21667
Diffstat (limited to 'src/common/compress.h')
-rw-r--r--src/common/compress.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compress.h b/src/common/compress.h
index 5b47c5d458..7c0dc14061 100644
--- a/src/common/compress.h
+++ b/src/common/compress.h
@@ -50,6 +50,7 @@ int tor_compress_is_compression_bomb(size_t size_in, size_t size_out);
int tor_compress_supports_method(compress_method_t method);
unsigned tor_compress_get_supported_method_bitmask(void);
const char * compression_method_get_name(compress_method_t method);
+const char *compression_method_get_human_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);