summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-10-30 10:55:10 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-10-30 10:55:10 -0400
commitcdb065d6b211298efb0be9320fce32d307b79d2c (patch)
treed6aa439df69c9a63466cb4d47d63e11fdafa61dd /src/test
parent6ba7f9f0a42ff2a55b2e66998b4ebf55c90b2787 (diff)
parent9b72dca953d56636f0434bd67be2ca80422e7c1e (diff)
downloadtor-cdb065d6b211298efb0be9320fce32d307b79d2c.tar.gz
tor-cdb065d6b211298efb0be9320fce32d307b79d2c.zip
Merge branch 'maint-0.3.5'
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_hs_config.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/test_hs_config.c b/src/test/test_hs_config.c
index 553b96758a..b6ab0c21f9 100644
--- a/src/test/test_hs_config.c
+++ b/src/test/test_hs_config.c
@@ -366,6 +366,22 @@ test_invalid_service_v3(void *arg)
teardown_capture_of_logs();
}
+ /* v2-specific HiddenServiceAuthorizeClient set. */
+ {
+ const char *conf =
+ "HiddenServiceDir /tmp/tor-test-hs-RANDOM/hs1\n"
+ "HiddenServiceVersion 3\n"
+ "HiddenServiceAuthorizeClient stealth client1\n";
+ setup_full_capture_of_logs(LOG_WARN);
+ ret = helper_config_service(conf, validate_only);
+ tt_int_op(ret, OP_EQ, -1);
+ expect_log_msg_containing("Hidden service option "
+ "HiddenServiceAuthorizeClient is incompatible "
+ "with version 3 of service in "
+ "/tmp/tor-test-hs-RANDOM/hs1");
+ teardown_capture_of_logs();
+ }
+
done:
;
}