diff options
author | Roger Dingledine <arma@torproject.org> | 2005-08-24 02:31:02 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-08-24 02:31:02 +0000 |
commit | a120cc20c171164230d592337425e9016747f182 (patch) | |
tree | 5627a4e24b261920dc0cec80b61765748fc7d32f /src/or/routerparse.c | |
parent | 5d590861c49f354d47d27b2e4edc971e0ecac914 (diff) | |
download | tor-a120cc20c171164230d592337425e9016747f182.tar.gz tor-a120cc20c171164230d592337425e9016747f182.zip |
Dirservers now do their own external reachability testing of each
Tor server, and only list them as running if they've been found to
be reachable.
Dirservers also log trouble servers, but only start complaining loudly
after they've been up for an hour, to reduce false positives. We still
need to do something about the fact that it is quite loud when there
are many trouble servers.
svn:r4829
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r-- | src/or/routerparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c index b370f245fa..73e2ca8f96 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -738,7 +738,7 @@ check_directory_signature(const char *digest, return -1; } log_fn(LOG_DEBUG,"Signed directory hash starts %s", hex_str(signed_digest,4)); - if (memcmp(digest, signed_digest, 20)) { + if (memcmp(digest, signed_digest, DIGEST_LEN)) { log_fn(LOG_WARN, "Error reading directory: signature does not match."); return -1; } @@ -992,7 +992,7 @@ router_parse_entry_from_string(const char *s, const char *end) log_fn(LOG_WARN, "Invalid signature %d",t); goto err; } - if (memcmp(digest, signed_digest, 20)) { + if (memcmp(digest, signed_digest, DIGEST_LEN)) { log_fn(LOG_WARN, "Mismatched signature"); goto err; } |