mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Change "prop271" in XXXXs about guard Ed identity to refer to #20872.
This commit is contained in:
parent
fe76741021
commit
d15273e9f5
1 changed files with 3 additions and 3 deletions
|
@ -841,7 +841,7 @@ entry_guard_add_to_sample_impl(guard_selection_t *gs,
|
||||||
const int GUARD_LIFETIME = get_guard_lifetime();
|
const int GUARD_LIFETIME = get_guard_lifetime();
|
||||||
tor_assert(gs);
|
tor_assert(gs);
|
||||||
|
|
||||||
// XXXX prop271 take ed25519 identity here too.
|
// XXXX #20827 take ed25519 identity here too.
|
||||||
|
|
||||||
/* make sure that the guard is not already sampled. */
|
/* make sure that the guard is not already sampled. */
|
||||||
if (rsa_id_digest && BUG(have_sampled_guard_with_id(gs, rsa_id_digest)))
|
if (rsa_id_digest && BUG(have_sampled_guard_with_id(gs, rsa_id_digest)))
|
||||||
|
@ -1226,7 +1226,7 @@ sampled_guards_update_from_consensus(guard_selection_t *gs)
|
||||||
|
|
||||||
/* First: Update listed/unlisted. */
|
/* First: Update listed/unlisted. */
|
||||||
SMARTLIST_FOREACH_BEGIN(gs->sampled_entry_guards, entry_guard_t *, guard) {
|
SMARTLIST_FOREACH_BEGIN(gs->sampled_entry_guards, entry_guard_t *, guard) {
|
||||||
/* XXXX prop271 check ed ID too */
|
/* XXXX #20827 check ed ID too */
|
||||||
const int is_listed = entry_guard_is_listed(gs, guard);
|
const int is_listed = entry_guard_is_listed(gs, guard);
|
||||||
|
|
||||||
if (is_listed && ! guard->currently_listed) {
|
if (is_listed && ! guard->currently_listed) {
|
||||||
|
@ -2101,7 +2101,7 @@ entry_guard_pick_for_circuit(guard_selection_t *gs,
|
||||||
if (BUG(state == 0))
|
if (BUG(state == 0))
|
||||||
goto fail;
|
goto fail;
|
||||||
const node_t *node = node_get_by_id(guard->identity);
|
const node_t *node = node_get_by_id(guard->identity);
|
||||||
// XXXX prop271 check Ed ID.
|
// XXXX #20827 check Ed ID.
|
||||||
if (! node)
|
if (! node)
|
||||||
goto fail;
|
goto fail;
|
||||||
if (BUG(usage != GUARD_USAGE_DIRGUARD && !node_has_descriptor(node)))
|
if (BUG(usage != GUARD_USAGE_DIRGUARD && !node_has_descriptor(node)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue