summaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-09-04 23:12:27 +0000
committerNick Mathewson <nickm@torproject.org>2005-09-04 23:12:27 +0000
commit1e37ec4782bf8342337632dd03a1242fad6da705 (patch)
treef8a61aaa85a92a8b8c8a7a934fe263371202cb21 /src/or/routerparse.c
parentd2a5b614ebc0fc93264a1c774e27cb9820742738 (diff)
downloadtor-1e37ec4782bf8342337632dd03a1242fad6da705.tar.gz
tor-1e37ec4782bf8342337632dd03a1242fad6da705.zip
Comment structs, reload a field, start making network status caches work
svn:r4908
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 08a47b66e1..4697dc2144 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -1318,7 +1318,7 @@ networkstatus_parse_from_string(const char *s)
log_fn(LOG_WARN, "Too few arguments to fingerprint");
goto err;
}
- if (base16_decode(ns->fingerprint, DIGEST_LEN, tok->args[0],
+ if (base16_decode(ns->identity_digest, DIGEST_LEN, tok->args[0],
strlen(tok->args[0]))) {
log_fn(LOG_WARN, "Couldn't decode fingerprint '%s'", tok->args[0]);
goto err;
@@ -1340,7 +1340,7 @@ networkstatus_parse_from_string(const char *s)
log_fn(LOG_WARN, "Couldn't compute signing key digest");
goto err;
}
- if (memcmp(tmp_digest, ns->fingerprint, DIGEST_LEN)) {
+ if (memcmp(tmp_digest, ns->identity_digest, DIGEST_LEN)) {
log_fn(LOG_WARN, "network-status fingerprint did not match dir-signing-key");
goto err;
}
@@ -1351,7 +1351,6 @@ networkstatus_parse_from_string(const char *s)
}
ns->client_versions = tok->args[0];
- /* XXXX NM When to check these ?? */
if (!(tok = find_first_by_keyword(tokens, K_CLIENT_VERSIONS)) || tok->n_args<1){
log_fn(LOG_WARN, "Missing client-versions");
goto err;