diff options
author | David Goulet <dgoulet@torproject.org> | 2021-02-05 10:39:55 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-02-19 13:19:08 -0500 |
commit | 2444629c86e3368ebd6c9ee1b54aa5a5959fa398 (patch) | |
tree | bc28430214d97fcfe12c98534c3d653686b30478 /src/test/test_hs_common.c | |
parent | 67938e019844d8143d683321faf45d7623a3a9ae (diff) | |
download | tor-2444629c86e3368ebd6c9ee1b54aa5a5959fa398.tar.gz tor-2444629c86e3368ebd6c9ee1b54aa5a5959fa398.zip |
hs-v2: Remove client support
Related to #40266
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_common.c')
-rw-r--r-- | src/test/test_hs_common.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c index 5032a82b9c..916b7e4a04 100644 --- a/src/test/test_hs_common.c +++ b/src/test/test_hs_common.c @@ -787,11 +787,8 @@ test_parse_extended_hostname(void *arg) hostname_type_t type; char address1[] = "fooaddress.onion"; - char address2[] = "aaaaaaaaaaaaaaaa.onion"; char address3[] = "fooaddress.exit"; char address4[] = "www.torproject.org"; - char address5[] = "foo.abcdefghijklmnop.onion"; - char address6[] = "foo.bar.abcdefghijklmnop.onion"; char address7[] = ".abcdefghijklmnop.onion"; char address8[] = "www.25njqamcweflpvkl73j4szahhihoc4xt3ktcgjnpaingr5yhkenl5sid.onion"; @@ -803,24 +800,12 @@ test_parse_extended_hostname(void *arg) tt_assert(!parse_extended_hostname(address1, &type)); tt_int_op(type, OP_EQ, BAD_HOSTNAME); - tt_assert(parse_extended_hostname(address2, &type)); - tt_int_op(type, OP_EQ, ONION_V2_HOSTNAME); - tt_str_op(address2, OP_EQ, "aaaaaaaaaaaaaaaa"); - tt_assert(parse_extended_hostname(address3, &type)); tt_int_op(type, OP_EQ, EXIT_HOSTNAME); tt_assert(parse_extended_hostname(address4, &type)); tt_int_op(type, OP_EQ, NORMAL_HOSTNAME); - tt_assert(parse_extended_hostname(address5, &type)); - tt_int_op(type, OP_EQ, ONION_V2_HOSTNAME); - tt_str_op(address5, OP_EQ, "abcdefghijklmnop"); - - tt_assert(parse_extended_hostname(address6, &type)); - tt_int_op(type, OP_EQ, ONION_V2_HOSTNAME); - tt_str_op(address6, OP_EQ, "abcdefghijklmnop"); - tt_assert(!parse_extended_hostname(address7, &type)); tt_int_op(type, OP_EQ, BAD_HOSTNAME); |