浏览代码

clean up the cookieauth stuff

svn:r11146
Roger Dingledine 17 年之前
父节点
当前提交
2df9bb937d
共有 2 个文件被更改,包括 6 次插入4 次删除
  1. 5 2
      doc/tor.1.in
  2. 1 2
      src/or/config.c

+ 5 - 2
doc/tor.1.in

@@ -166,7 +166,7 @@ compute the hash of a password by running "tor --hash-password
 If this option is set to 1, don't allow any connections on the control port
 If this option is set to 1, don't allow any connections on the control port
 except when the connecting process knows the contents of a file named
 except when the connecting process knows the contents of a file named
 "control_auth_cookie", which Tor will create in its data directory.  This
 "control_auth_cookie", which Tor will create in its data directory.  This
-authentication methods should only be used on systems with good filesystem
+authentication method should only be used on systems with good filesystem
 security. (Default: 0)
 security. (Default: 0)
 .LP
 .LP
 .TP
 .TP
@@ -1181,7 +1181,10 @@ recording of statistics is enabled.
 .LP
 .LP
 .TP
 .TP
 .B \fIDataDirectory\fP/control_auth_cookie
 .B \fIDataDirectory\fP/control_auth_cookie
-Used for cookie authentication with the controller. Regenerated on startup.  See control-spec.txt for details.  Only used when cookie authentication is enabled.
+Used for cookie authentication with the controller. Location can be
+overridden by the CookieAuthFile config option. Regenerated on startup.
+See control-spec.txt for details.  Only used when cookie authentication
+is enabled.
 .LP
 .LP
 .TP
 .TP
 .B \fIDataDirectory\fP/keys/*
 .B \fIDataDirectory\fP/keys/*

+ 1 - 2
src/or/config.c

@@ -152,9 +152,8 @@ static config_var_t _option_vars[] = {
   VAR("ControlPort",         UINT,     ControlPort,          "0"),
   VAR("ControlPort",         UINT,     ControlPort,          "0"),
   VAR("ControlSocket",       LINELIST, ControlSocket,        NULL),
   VAR("ControlSocket",       LINELIST, ControlSocket,        NULL),
   VAR("CookieAuthentication",BOOL,     CookieAuthentication, "0"),
   VAR("CookieAuthentication",BOOL,     CookieAuthentication, "0"),
-  VAR("CookieAuthFileGroupReadable",BOOL,  CookieAuthFileGroupReadable, "0"),
+  VAR("CookieAuthFileGroupReadable",BOOL,CookieAuthFileGroupReadable, "0"),
   VAR("CookieAuthFile",      STRING,   CookieAuthFile,       "0"),
   VAR("CookieAuthFile",      STRING,   CookieAuthFile,       "0"),
-  VAR("CookieAuthentication",BOOL,     CookieAuthentication, "0"),
   VAR("DataDirectory",       STRING,   DataDirectory,        NULL),
   VAR("DataDirectory",       STRING,   DataDirectory,        NULL),
   OBSOLETE("DebugLogFile"),
   OBSOLETE("DebugLogFile"),
   VAR("DirAllowPrivateAddresses",BOOL, DirAllowPrivateAddresses, NULL),
   VAR("DirAllowPrivateAddresses",BOOL, DirAllowPrivateAddresses, NULL),