diff options
author | George Kadianakis <desnacked@riseup.net> | 2017-08-19 16:26:46 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2017-08-19 16:28:48 +0300 |
commit | 7823c98a38556237a86c7235d411d7d2237cc2d6 (patch) | |
tree | 175f51c662f55ce9579fd1af186151b515e15429 /src/or/hs_descriptor.h | |
parent | 26c85fcc863678c06cc79ec1a58bd6c504d3321a (diff) | |
download | tor-7823c98a38556237a86c7235d411d7d2237cc2d6.tar.gz tor-7823c98a38556237a86c7235d411d7d2237cc2d6.zip |
prop224: Improve descriptor reupload logic.
We want to reupload our descriptor if its set of responsible HSDirs
changed to minimize reachability issues.
This patch adds a callback everytime we get new dirinfo which checks if
the hash ring changed and reuploads descriptor if needed.
Diffstat (limited to 'src/or/hs_descriptor.h')
-rw-r--r-- | src/or/hs_descriptor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h index fa211d3917..19e52333be 100644 --- a/src/or/hs_descriptor.h +++ b/src/or/hs_descriptor.h @@ -211,9 +211,10 @@ hs_desc_link_specifier_t *hs_desc_link_specifier_new( const extend_info_t *info, uint8_t type); void hs_descriptor_clear_intro_points(hs_descriptor_t *desc); -int hs_desc_encode_descriptor(const hs_descriptor_t *desc, - const ed25519_keypair_t *signing_kp, - char **encoded_out); +MOCK_DECL(int, + hs_desc_encode_descriptor,(const hs_descriptor_t *desc, + const ed25519_keypair_t *signing_kp, + char **encoded_out)); int hs_desc_decode_descriptor(const char *encoded, const uint8_t *subcredential, |