diff options
author | vnepveu <victor.nepveu@imt-atlantique.net> | 2020-09-23 11:30:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-09-23 11:30:15 -0400 |
commit | 43672f9fcaf78cbb49abe4b258b95648a609b4cf (patch) | |
tree | d422cebf623fad3bfcf092efa8f952b36407ff43 /src/feature/nodelist/dirlist.h | |
parent | 10e40ca1de34d0e0611d510f913ff4f181e04c10 (diff) | |
download | tor-43672f9fcaf78cbb49abe4b258b95648a609b4cf.tar.gz tor-43672f9fcaf78cbb49abe4b258b95648a609b4cf.zip |
Implement IPv6 sybil protection.
[This is a squashed patch for ticket 7193, based on taking a "git
diff" for the original branch, then applying it with "git apply
-3". I earlier attempted to squash the branch with "git rebase",
but there were too many conflicts. --nickm]
Diffstat (limited to 'src/feature/nodelist/dirlist.h')
-rw-r--r-- | src/feature/nodelist/dirlist.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/feature/nodelist/dirlist.h b/src/feature/nodelist/dirlist.h index c9310ff357..ae3debf4e5 100644 --- a/src/feature/nodelist/dirlist.h +++ b/src/feature/nodelist/dirlist.h @@ -25,13 +25,14 @@ int router_digest_is_fallback_dir(const char *digest); MOCK_DECL(dir_server_t *, trusteddirserver_get_by_v3_auth_digest, (const char *d)); +MOCK_DECL(int, router_digest_is_trusted_dir_type, + (const char *digest, dirinfo_type_t type)); + bool router_addr_is_trusted_dir_type(const tor_addr_t *addr, dirinfo_type_t type); #define router_addr_is_trusted_dir(d) \ router_addr_is_trusted_dir_type((d), NO_DIRINFO) -int router_digest_is_trusted_dir_type(const char *digest, - dirinfo_type_t type); #define router_digest_is_trusted_dir(d) \ router_digest_is_trusted_dir_type((d), NO_DIRINFO) |