aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_consdiffmgr.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-03 13:11:11 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-04 08:36:50 -0400
commit87f6979a03fa8d539fc81b67462f2f6cfc7f2960 (patch)
tree48ccdaa9f6df75785cb3afb927c2d64c55ddd72f /src/test/test_consdiffmgr.c
parent3af9704e459fab0120694a46924b27460237cb1a (diff)
downloadtor-87f6979a03fa8d539fc81b67462f2f6cfc7f2960.tar.gz
tor-87f6979a03fa8d539fc81b67462f2f6cfc7f2960.zip
Remove some unused digests from test_consdiffmgr.c
These were unused before I started working on #22143 -- I just found them while I was lookinging for digests to update.
Diffstat (limited to 'src/test/test_consdiffmgr.c')
-rw-r--r--src/test/test_consdiffmgr.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/test_consdiffmgr.c b/src/test/test_consdiffmgr.c
index 0e44ed2ba2..9d0c5b5b71 100644
--- a/src/test/test_consdiffmgr.c
+++ b/src/test/test_consdiffmgr.c
@@ -428,7 +428,6 @@ test_consdiffmgr_diff_rules(void *arg)
#define N 6
char *md_body[N], *ns_body[N];
networkstatus_t *md_ns[N], *ns_ns[N];
- uint8_t md_ns_sha3[N][DIGEST256_LEN], ns_ns_sha3[N][DIGEST256_LEN];
int i;
MOCK(cpuworker_queue_work, mock_cpuworker_queue_work);
@@ -441,10 +440,6 @@ test_consdiffmgr_diff_rules(void *arg)
ns_body[i] = fake_ns_body_new(FLAV_NS, when);
md_ns[i] = fake_ns_new(FLAV_MICRODESC, when);
ns_ns[i] = fake_ns_new(FLAV_NS, when);
- crypto_digest256((char *)md_ns_sha3[i], md_body[i], strlen(md_body[i]),
- DIGEST_SHA3_256);
- crypto_digest256((char *)ns_ns_sha3[i], ns_body[i], strlen(ns_body[i]),
- DIGEST_SHA3_256);
}
/* For the MD consensuses: add 4 of them, and make sure that
@@ -724,7 +719,6 @@ test_consdiffmgr_cleanup_old_diffs(void *arg)
#define N 4
char *md_body[N];
networkstatus_t *md_ns[N];
- uint8_t md_ns_sha3[N][DIGEST256_LEN];
int i;
consensus_cache_entry_t *hold_ent = NULL, *ent;
@@ -739,8 +733,6 @@ test_consdiffmgr_cleanup_old_diffs(void *arg)
time_t when = start + i * 15;
md_body[i] = fake_ns_body_new(FLAV_MICRODESC, when);
md_ns[i] = fake_ns_new(FLAV_MICRODESC, when);
- crypto_digest256((char *)md_ns_sha3[i], md_body[i], strlen(md_body[i]),
- DIGEST_SHA3_256);
}
/* add the first 3. */