diff options
author | David Goulet <dgoulet@ev0ke.net> | 2016-03-29 15:08:04 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-11-04 10:31:35 -0400 |
commit | 025610612d78fe0a0ec95dd88c3d44e4bf643603 (patch) | |
tree | 165a149fe0534bb58711aa61c4b2c622e7c87b25 /src/or/hs_descriptor.h | |
parent | 473f99bf7bdb7d23b914cd1b590451333baaf7fe (diff) | |
download | tor-025610612d78fe0a0ec95dd88c3d44e4bf643603.tar.gz tor-025610612d78fe0a0ec95dd88c3d44e4bf643603.zip |
prop224: Directory cache support
This implements the proposal 224 directory descriptor cache store and lookup
functionalities. Furthermore, it merges the OOM call for the HSDir cache with
current protocol v2 and the new upcoming v3.
Add hs_cache.{c|h} with store/lookup API.
Closes #18572
Signed-off-by: David Goulet <dgoulet@torproject.org>
Signed-off-by: George Kadianakis <desnacked@riseup.net>
Diffstat (limited to 'src/or/hs_descriptor.h')
-rw-r--r-- | src/or/hs_descriptor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h index 9b48096d0e..1213597984 100644 --- a/src/or/hs_descriptor.h +++ b/src/or/hs_descriptor.h @@ -207,6 +207,8 @@ int hs_desc_decode_plaintext(const char *encoded, int hs_desc_decode_encrypted(const hs_descriptor_t *desc, hs_desc_encrypted_data_t *desc_out); +size_t hs_desc_plaintext_obj_size(const hs_desc_plaintext_data_t *data); + #ifdef HS_DESCRIPTOR_PRIVATE /* Encoding. */ |