diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-09-18 15:30:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-18 15:30:27 -0400 |
commit | c35fad2bdef47f2063ccc989cac99b154e2ee36e (patch) | |
tree | b263a0512114239c6615d79914ba1379b3482327 /src/test/test_dir.c | |
parent | 5dfec9f8335d0fa954ff5423a41e3e249547fd8d (diff) | |
download | tor-c35fad2bdef47f2063ccc989cac99b154e2ee36e.tar.gz tor-c35fad2bdef47f2063ccc989cac99b154e2ee36e.zip |
Remove some deadcode for parsing v1 directories
Fixes bug 6887. There are opportunities to remove more functions if
authorities can stop serving dummy v1 directory documents
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r-- | src/test/test_dir.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index 9bf44b116b..ff41bf2f3f 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -223,24 +223,6 @@ test_dir_formats(void) add_fingerprint_to_dir("Fred", buf, fingerprint_list); } - { - char d[DIGEST_LEN]; - const char *m; - /* XXXX NM re-enable. */ - /* Make sure routers aren't too far in the past any more. */ - r1->cache_info.published_on = time(NULL); - r2->cache_info.published_on = time(NULL)-3*60*60; - test_assert(router_dump_router_to_string(buf, 2048, r1, pk2)>0); - test_eq(dirserv_add_descriptor(buf,&m,""), ROUTER_ADDED_NOTIFY_GENERATOR); - test_assert(router_dump_router_to_string(buf, 2048, r2, pk1)>0); - test_eq(dirserv_add_descriptor(buf,&m,""), ROUTER_ADDED_NOTIFY_GENERATOR); - get_options()->Nickname = tor_strdup("DirServer"); - test_assert(!dirserv_dump_directory_to_string(&cp,pk3, 0)); - crypto_pk_get_digest(pk3, d); - test_assert(!router_parse_directory(cp)); - test_eq(2, smartlist_len(dir1->routers)); - tor_free(cp); - } #endif dirserv_free_fingerprint_list(); |