aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/dirlist.c
diff options
context:
space:
mode:
authorvnepveu <victor.nepveu@imt-atlantique.net>2020-09-23 11:30:15 -0400
committerNick Mathewson <nickm@torproject.org>2020-09-23 11:30:15 -0400
commit43672f9fcaf78cbb49abe4b258b95648a609b4cf (patch)
treed422cebf623fad3bfcf092efa8f952b36407ff43 /src/feature/nodelist/dirlist.c
parent10e40ca1de34d0e0611d510f913ff4f181e04c10 (diff)
downloadtor-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.c')
-rw-r--r--src/feature/nodelist/dirlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/nodelist/dirlist.c b/src/feature/nodelist/dirlist.c
index cd2921e653..f6e4662a0f 100644
--- a/src/feature/nodelist/dirlist.c
+++ b/src/feature/nodelist/dirlist.c
@@ -236,8 +236,8 @@ mark_all_dirservers_up(smartlist_t *server_list)
/** Return true iff <b>digest</b> is the digest of the identity key of a
* trusted directory matching at least one bit of <b>type</b>. If <b>type</b>
* is zero (NO_DIRINFO), or ALL_DIRINFO, any authority is okay. */
-int
-router_digest_is_trusted_dir_type(const char *digest, dirinfo_type_t type)
+MOCK_IMPL(int, router_digest_is_trusted_dir_type,
+ (const char *digest, dirinfo_type_t type))
{
if (!trusted_dir_servers)
return 0;