Store archived consensuses compressed on disk.

I'm just using gzip compression now, for performance.
This commit is contained in:
Nick Mathewson
2017-04-25 14:52:40 -04:00
parent 9e081a44a9
commit a1172b6774
3 changed files with 74 additions and 17 deletions
+2
View File
@@ -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