aboutsummaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 14:52:40 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-27 21:40:46 -0400
commita1172b6774bc95ff951ac58051ea42bc0a62e32b (patch)
tree2c240b577ee2fb98768a115f7c9089a64fc6f0ef /src/or/consdiffmgr.h
parent9e081a44a9ca3b9952b536cd0317538263d59f9b (diff)
downloadtor-a1172b6774bc95ff951ac58051ea42bc0a62e32b.tar.gz
tor-a1172b6774bc95ff951ac58051ea42bc0a62e32b.zip
Store archived consensuses compressed on disk.
I'm just using gzip compression now, for performance.
Diffstat (limited to 'src/or/consdiffmgr.h')
-rw-r--r--src/or/consdiffmgr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h
index 6932b2fba3..982e0df3ab 100644
--- a/src/or/consdiffmgr.h
+++ b/src/or/consdiffmgr.h
@@ -42,6 +42,8 @@ STATIC consensus_cache_entry_t *cdm_cache_lookup_consensus(
STATIC int cdm_entry_get_sha3_value(uint8_t *digest_out,
consensus_cache_entry_t *ent,
const char *label);
+STATIC int uncompress_or_copy(char **out, size_t *outlen,
+ consensus_cache_entry_t *ent);
#endif
#endif