diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-08-24 12:51:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-15 15:17:13 -0400 |
commit | e1ddee8bbe724e934fe9a4cb2d290719a7d6105c (patch) | |
tree | 82848930764ba4b86637f15a25b557fc6805f31a /src/test | |
parent | a8e92ba8fd65e12dbec265ccfcf0c89ac61847f2 (diff) | |
download | tor-e1ddee8bbe724e934fe9a4cb2d290719a7d6105c.tar.gz tor-e1ddee8bbe724e934fe9a4cb2d290719a7d6105c.zip |
Code to generate, store, and parse microdescriptors and consensuses.
The consensus documents are not signed properly, not served, and not
exchanged yet.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index a10493e7fa..8e566e2eec 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -858,7 +858,8 @@ test_dir_v3_networkstatus(void) cert3->identity_key, sign_skey_3, "AAAAAAAAAAAAAAAAAAAA", - sign_skey_leg1); + sign_skey_leg1, + FLAV_NS); test_assert(consensus_text); con = networkstatus_parse_vote_from_string(consensus_text, NULL, NS_TYPE_CONSENSUS); @@ -966,11 +967,13 @@ test_dir_v3_networkstatus(void) smartlist_shuffle(votes); consensus_text2 = networkstatus_compute_consensus(votes, 3, cert2->identity_key, - sign_skey_2, NULL,NULL); + sign_skey_2, NULL,NULL, + FLAV_NS); smartlist_shuffle(votes); consensus_text3 = networkstatus_compute_consensus(votes, 3, cert1->identity_key, - sign_skey_1, NULL,NULL); + sign_skey_1, NULL,NULL, + FLAV_NS); test_assert(consensus_text2); test_assert(consensus_text3); con2 = networkstatus_parse_vote_from_string(consensus_text2, NULL, |