diff options
author | Neel Chauhan <neel@neelc.org> | 2018-10-24 12:20:10 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2018-10-30 10:49:03 -0400 |
commit | cd9914d9f91a2fd1f56e1c0f89bee57b9a49bbc6 (patch) | |
tree | d4b4fc0382a43aee688d1884f72cdfd65941f031 /src/test/test_hs_config.c | |
parent | 82b3a023024755971003f53950d9b6dfbe90f969 (diff) | |
download | tor-cd9914d9f91a2fd1f56e1c0f89bee57b9a49bbc6.tar.gz tor-cd9914d9f91a2fd1f56e1c0f89bee57b9a49bbc6.zip |
Add test for HiddenServiceAuthorizeClient and v3 onion services
Diffstat (limited to 'src/test/test_hs_config.c')
-rw-r--r-- | src/test/test_hs_config.c | 16 |
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: ; } |