diff options
author | David Goulet <dgoulet@torproject.org> | 2020-07-08 07:46:12 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-08 07:46:16 -0400 |
commit | 9b2cadb492ee07ebb086b934b01ff8a5159fcc77 (patch) | |
tree | 99e81512a153aa23cb2ea6649b4d9c531747de2c /src/feature/relay/relay_find_addr.h | |
parent | 15be1ff8ad568629f809b4feac79a8dcbfac9444 (diff) | |
download | tor-9b2cadb492ee07ebb086b934b01ff8a5159fcc77.tar.gz tor-9b2cadb492ee07ebb086b934b01ff8a5159fcc77.zip |
addr: Validate identity key when getting a suggestion
We do look at the address but with this we also look if the identity digest of
the relay suggesting us an address is a trusted source.
Related to #40022
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/relay_find_addr.h')
-rw-r--r-- | src/feature/relay/relay_find_addr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/relay/relay_find_addr.h b/src/feature/relay/relay_find_addr.h index d856e706ea..6f298e6c79 100644 --- a/src/feature/relay/relay_find_addr.h +++ b/src/feature/relay/relay_find_addr.h @@ -16,7 +16,8 @@ void router_new_address_suggestion(const char *suggestion, const dir_connection_t *d_conn); void relay_address_new_suggestion(const tor_addr_t *suggested_addr, - const tor_addr_t *peer_addr); + const tor_addr_t *peer_addr, + const char *identity_digest); #ifdef RELAY_FIND_ADDR_PRIVATE |