mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
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:
parent
26817d9d22
commit
43bee06dd0
@ -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. */
|
||||||
|
@ -182,8 +182,8 @@ 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)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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 "
|
||||||
|
Loading…
Reference in New Issue
Block a user