diff options
author | David Goulet <dgoulet@torproject.org> | 2016-05-26 15:26:09 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-07-01 14:01:42 -0400 |
commit | 4a1904c12665b98c356aba8e7b73a3f3fd508a5b (patch) | |
tree | 0e5e943203291f0926323c5e610610afed8a0325 /src/or/shared_random.h | |
parent | 6927467bef1b5c46b85d30ac77b364ed407f6d72 (diff) | |
download | tor-4a1904c12665b98c356aba8e7b73a3f3fd508a5b.tar.gz tor-4a1904c12665b98c356aba8e7b73a3f3fd508a5b.zip |
prop250: Use the new dirvote_get_intermediate_param_value for AuthDirNumSRVAgreements
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/shared_random.h')
-rw-r--r-- | src/or/shared_random.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/or/shared_random.h b/src/or/shared_random.h index 6d68ad79bc..3922f33e34 100644 --- a/src/or/shared_random.h +++ b/src/or/shared_random.h @@ -112,7 +112,8 @@ void sr_handle_received_commits(smartlist_t *commits, sr_commit_t *sr_parse_commit(const smartlist_t *args); sr_srv_t *sr_parse_srv(const smartlist_t *args); char *sr_get_string_for_vote(void); -char *sr_get_string_for_consensus(const smartlist_t *votes); +char *sr_get_string_for_consensus(const smartlist_t *votes, + int32_t num_srv_agreements); void sr_commit_free(sr_commit_t *commit); void sr_srv_encode(char *dst, size_t dst_len, const sr_srv_t *srv); @@ -156,4 +157,10 @@ STATIC void save_commit_during_reveal_phase(const sr_commit_t *commit); #endif /* SHARED_RANDOM_PRIVATE */ +#ifdef TOR_UNIT_TESTS + +void set_num_srv_agreements(int32_t value); + +#endif /* TOR_UNIT_TESTS */ + #endif /* TOR_SHARED_RANDOM_H */ |