aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-04 08:49:02 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-04 08:49:02 -0400
commite1d31f2a2f5c7810c9c34ffa57e4b86ec8fd860b (patch)
treee55f60ae702157efa44de566fa0804a50faf18c0 /src/or/dirserv.c
parenta8eccb6363ff02d4c59526a4daace96f71ff01c8 (diff)
downloadtor-e1d31f2a2f5c7810c9c34ffa57e4b86ec8fd860b.tar.gz
tor-e1d31f2a2f5c7810c9c34ffa57e4b86ec8fd860b.zip
Update the consdiff directory code based on #22143 fixes
These are mostly just identifier renames, except for one place in routerparse.c where we switch to using a correct hash.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index af7ec978e0..7de72df9eb 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1212,8 +1212,7 @@ void
dirserv_set_cached_consensus_networkstatus(const char *networkstatus,
const char *flavor_name,
const common_digests_t *digests,
- // XXXX rename after 22143
- const uint8_t *sha3_full_digest,
+ const uint8_t *sha3_as_signed,
time_t published)
{
cached_dir_t *new_networkstatus;
@@ -1223,7 +1222,7 @@ dirserv_set_cached_consensus_networkstatus(const char *networkstatus,
new_networkstatus = new_cached_dir(tor_strdup(networkstatus), published);
memcpy(&new_networkstatus->digests, digests, sizeof(common_digests_t));
- memcpy(&new_networkstatus->digest_sha3_full, sha3_full_digest,
+ memcpy(&new_networkstatus->digest_sha3_as_signed, sha3_as_signed,
DIGEST256_LEN);
old_networkstatus = strmap_set(cached_consensuses, flavor_name,
new_networkstatus);