dirvote: Rename voter_get_sig_by_algorithm()

In order to follow the public namespace of dirvote.

Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
David Goulet 2018-04-25 10:00:17 -04:00
parent 26817d9d22
commit 43bee06dd0
4 changed files with 5 additions and 5 deletions

View File

@ -2490,7 +2490,7 @@ networkstatus_add_detached_signatures(networkstatus_t *target,
continue; continue;
} }
old_sig = voter_get_sig_by_algorithm(target_voter, sig->alg); old_sig = dirvote_get_voter_sig_by_alg(target_voter, sig->alg);
/* If the target already has a good signature from this voter, then skip /* If the target already has a good signature from this voter, then skip
* this one. */ * this one. */

View File

@ -182,7 +182,7 @@ dirvote_recalculate_timing(const or_options_t *options, time_t now)
/** Return the signature made by <b>voter</b> using the algorithm /** Return the signature made by <b>voter</b> using the algorithm
* <b>alg</b>, or NULL if none is found. */ * <b>alg</b>, or NULL if none is found. */
document_signature_t * document_signature_t *
voter_get_sig_by_algorithm(const networkstatus_voter_info_t *voter, dirvote_get_voter_sig_by_alg(const networkstatus_voter_info_t *voter,
digest_algorithm_t alg) digest_algorithm_t alg)
{ {
if (!voter->sigs) if (!voter->sigs)

View File

@ -58,7 +58,7 @@ time_t dirvote_get_start_of_next_interval(time_t now,
int offset); int offset);
time_t dirvote_get_next_valid_after_time(void); time_t dirvote_get_next_valid_after_time(void);
document_signature_t *voter_get_sig_by_algorithm( document_signature_t *dirvote_get_voter_sig_by_alg(
const networkstatus_voter_info_t *voter, const networkstatus_voter_info_t *voter,
digest_algorithm_t alg); digest_algorithm_t alg);

View File

@ -3972,7 +3972,7 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
} }
} }
if (voter_get_sig_by_algorithm(v, sig->alg)) { if (dirvote_get_voter_sig_by_alg(v, sig->alg)) {
/* We already parsed a vote with this algorithm from this voter. Use the /* We already parsed a vote with this algorithm from this voter. Use the
first one. */ first one. */
log_fn(LOG_PROTOCOL_WARN, LD_DIR, "We received a networkstatus " log_fn(LOG_PROTOCOL_WARN, LD_DIR, "We received a networkstatus "