diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-09-26 18:27:35 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-09-26 18:27:35 +0000 |
commit | 92acbe12bc9512100b9282d7e9d61fe86b5a60bb (patch) | |
tree | 80cd3c92c91f30818c60a97842a1f106a8cb27ac /src/or/test.c | |
parent | 9e5cafc395397426030e8098d64b8e25625863c5 (diff) | |
download | tor-92acbe12bc9512100b9282d7e9d61fe86b5a60bb.tar.gz tor-92acbe12bc9512100b9282d7e9d61fe86b5a60bb.zip |
Refactor common file code into util.c; add published to descriptors
svn:r487
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c index b3cc777c46..5680166e32 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -519,6 +519,7 @@ test_dir_format() r1.address = "testaddr1.foo.bar"; r1.addr = 0xc0a80001u; /* 192.168.0.1 */ + r1.published_on = 0; r1.or_port = 9000; r1.ap_port = 9002; r1.dir_port = 9003; @@ -539,6 +540,7 @@ test_dir_format() ex2.next = NULL; r2.address = "tor.tor.tor"; r2.addr = 0x0a030201u; /* 10.3.2.1 */ + r2.published_on = 5; r2.or_port = 9005; r2.ap_port = 0; r2.dir_port = 0; @@ -555,7 +557,9 @@ test_dir_format() test_assert(!crypto_pk_write_public_key_to_string(pk3 , &pk3_str, &pk3_str_len)); - strcpy(buf2, "router testaddr1.foo.bar 9000 9002 9003 1000\nonion-key\n"); + strcpy(buf2, "router testaddr1.foo.bar 9000 9002 9003 1000\n" + "published 1970-01-01 00:00:00\n" + "onion-key\n"); strcat(buf2, pk1_str); strcat(buf2, "link-key\n"); strcat(buf2, pk3_str); |