]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Help users who try to use v2 client auth in v3 onions.
authorGeorge Kadianakis <desnacked@riseup.net>
Tue, 1 Oct 2019 10:40:04 +0000 (13:40 +0300)
committerGeorge Kadianakis <desnacked@riseup.net>
Tue, 1 Oct 2019 10:41:21 +0000 (13:41 +0300)
changes/bug28966 [new file with mode: 0644]
src/feature/hs/hs_config.c

diff --git a/changes/bug28966 b/changes/bug28966
new file mode 100644 (file)
index 0000000..61123a2
--- /dev/null
@@ -0,0 +1,4 @@
+  o Minor features (onion services v3):
+    - Assist users who try to setup v2 client authorization in v3 onion
+      services by pointing them to the right documentation. Closes ticket
+      28966.
index 7424d7d3ce7f8da85ec18a2378a3489b9d7df4cb..3b6caaec6ae5a455a379ecbf89091551c456df39 100644 (file)
@@ -253,6 +253,16 @@ config_has_invalid_options(const config_line_t *line_,
                             "version %" PRIu32 " of service in %s",
                  opt, service->config.version,
                  service->config.directory_path);
+
+        if (!strcasecmp(line->key, "HiddenServiceAuthorizeClient")) {
+          /* Special case this v2 option so that we can offer alternatives.
+           * If more such special cases appear, it would be good to
+           * generalize the exception mechanism here. */
+          log_warn(LD_CONFIG, "For v3 onion service client authorization, "
+                   "please read the 'CLIENT AUTHORIZATION' section in the "
+                   "manual.");
+        }
+
         ret = 1;
         /* Continue the loop so we can find all possible options. */
         continue;