aboutsummaryrefslogtreecommitdiff
path: root/src/common/compress_zstd.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-06 11:02:41 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-06 11:05:07 -0500
commita77a366b87fb04a878392284241fe72850b4dd88 (patch)
tree193a9a42c2627278583f92233381a2688debbc9b /src/common/compress_zstd.h
parentf98cb5d3552666ede73137d998162094d5a31a1a (diff)
downloadtor-a77a366b87fb04a878392284241fe72850b4dd88.tar.gz
tor-a77a366b87fb04a878392284241fe72850b4dd88.zip
Warn on zstd header/library version mismatch
If we're going to potentially degrade performance in this case, we may as well tell people so.
Diffstat (limited to 'src/common/compress_zstd.h')
-rw-r--r--src/common/compress_zstd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compress_zstd.h b/src/common/compress_zstd.h
index 8882617c9f..bd42cf65ce 100644
--- a/src/common/compress_zstd.h
+++ b/src/common/compress_zstd.h
@@ -43,6 +43,7 @@ size_t tor_zstd_compress_state_size(const tor_zstd_compress_state_t *state);
size_t tor_zstd_get_total_allocation(void);
void tor_zstd_init(void);
+void tor_zstd_warn_if_version_mismatched(void);
#ifdef TOR_UNIT_TESTS
void tor_zstd_set_static_apis_disabled_for_testing(int disabled);