summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-29 08:34:54 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-29 08:34:54 +0000
commitc1dc17e6e2f194d8c7078218be96cb96b9aaa6bd (patch)
tree12d5e4d5f40c8f5655e6a2e12ac558fa74c4edb6 /src/or/test.c
parent4effabd72d7151b2fe943f981c435467da9d33cf (diff)
downloadtor-c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd.tar.gz
tor-c1dc17e6e2f194d8c7078218be96cb96b9aaa6bd.zip
put in initial support for ".nickname.exit" addresses, to let alice
decide what exit node to use; based on a patch by geoff goodell. needs more work: e.g. it goes bananas building new circuits when the chosen exit node's exit policy rejects the connection. svn:r3015
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index d596092691..ac98b589f9 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1182,6 +1182,7 @@ test_rend_fns(void)
{
char address1[] = "fooaddress.onion";
char address2[] = "aaaaaaaaaaaaaaaa.onion";
+ char address3[] = "fooaddress.exit";
rend_service_descriptor_t *d1, *d2;
char *encoded;
size_t len;
@@ -1210,8 +1211,9 @@ test_rend_fns(void)
test_streq(d2->intro_points[1], "crow");
test_streq(d2->intro_points[2], "joel");
- test_eq(-1, rend_parse_rendezvous_address(address1));
- test_eq( 0, rend_parse_rendezvous_address(address2));
+ test_eq(0, parse_address(address1));
+ test_eq(2, parse_address(address2));
+ test_eq(1, parse_address(address3));
rend_service_descriptor_free(d1);
rend_service_descriptor_free(d2);