diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-30 03:44:10 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-30 03:44:10 +0000 |
commit | c8abe1907dfaa0f2a5038e63ab57a2e641b519f7 (patch) | |
tree | 7324a18b0cf73bf46657b854287a03e6f03f3820 /src/or/test.c | |
parent | ebab451eedf543ab2f9545fe80f43c0fefbe7862 (diff) | |
download | tor-c8abe1907dfaa0f2a5038e63ab57a2e641b519f7.tar.gz tor-c8abe1907dfaa0f2a5038e63ab57a2e641b519f7.zip |
Rename parse_address to parse_extended_hostname (since we have other kinds of addresses); make its output an enum; support HEXDIGEST.exit hostnames.
svn:r3029
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/test.c b/src/or/test.c index 557c80f878..55a36d925c 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1228,9 +1228,9 @@ test_rend_fns(void) test_streq(d2->intro_points[1], "crow"); test_streq(d2->intro_points[2], "joel"); - test_eq(0, parse_address(address1)); - test_eq(2, parse_address(address2)); - test_eq(1, parse_address(address3)); + test_eq(NORMAL_HOSTNAME, parse_extended_hostname(address1)); + test_eq(ONION_HOSTNAME, parse_extended_hostname(address2)); + test_eq(EXIT_HOSTNAME, parse_extended_hostname(address3)); rend_service_descriptor_free(d1); rend_service_descriptor_free(d2); |