Vidalia  0.2.21
Macros
TorSettings.cpp File Reference
#include "TorSettings.h"
#include "Vidalia.h"
#include "crypto.h"
#include "file.h"
#include "stringutil.h"
#include <QDir>
#include <QProcess>

Go to the source code of this file.

Macros

#define SETTING_TOR_EXECUTABLE   "TorExecutable"
 
#define SETTING_TORRC   "Torrc"
 
#define SETTING_CONTROL_ADDR   "ControlAddr"
 
#define SETTING_CONTROL_PORT   "ControlPort"
 
#define SETTING_SOCKET_PATH   "ControlSocket"
 
#define SETTING_CONTROL_METHOD   "ControlMethod"
 
#define SETTING_AUTH_TOKEN   "AuthToken"
 
#define SETTING_TOR_USER   "User"
 
#define SETTING_TOR_GROUP   "Group"
 
#define SETTING_DATA_DIRECTORY   "DataDirectory"
 
#define SETTING_AUTH_METHOD   "AuthenticationMethod"
 
#define SETTING_CONTROL_PASSWORD   "ControlPassword"
 
#define SETTING_USE_RANDOM_PASSWORD   "UseRandomPassword"
 
#define SETTING_WARN_PLAINTEXT_PORTS   "WarnPlaintextPorts"
 
#define SETTING_REJECT_PLAINTEXT_PORTS   "RejectPlaintextPorts"
 
#define SETTING_BOOTSTRAP   "Bootstrap"
 
#define SETTING_BOOTSTRAP_FROM   "BootstrapFrom"
 
#define SETTING_AUTOCONTROL   "AutoControl"
 
#define DEFAULT_AUTH_METHOD   PasswordAuth
 
#define DEFAULT_CONTROL_METHOD   "ControlPort"
 
#define DEFAULT_SOCKET_PATH   ""
 
#define TOR_ARG_CONTROL_PORT   "ControlPort"
 
#define TOR_ARG_TORRC   "-f"
 
#define TOR_ARG_DATA_DIRECTORY   "DataDirectory"
 
#define TOR_ARG_HASHED_PASSWORD   "HashedControlPassword"
 
#define TOR_ARG_COOKIE_AUTH   "CookieAuthentication"
 
#define TOR_ARG_SOCKSPORT   "SocksPort"
 
#define PASSWORD_LEN   16
 

Macro Definition Documentation

#define DEFAULT_AUTH_METHOD   PasswordAuth

Default to using hashed password authentication

Definition at line 50 of file TorSettings.cpp.

Referenced by TorSettings::getAuthenticationMethod(), and TorSettings::TorSettings().

#define DEFAULT_CONTROL_METHOD   "ControlPort"

Default control method

Definition at line 52 of file TorSettings.cpp.

Referenced by TorSettings::TorSettings().

#define DEFAULT_SOCKET_PATH   ""

Default socket path

Definition at line 54 of file TorSettings.cpp.

Referenced by TorSettings::TorSettings().

#define PASSWORD_LEN   16

Generate random control passwords of 16 characters

Definition at line 65 of file TorSettings.cpp.

Referenced by TorSettings::randomPassword().

#define SETTING_AUTH_METHOD   "AuthenticationMethod"
#define SETTING_AUTH_TOKEN   "AuthToken"

Definition at line 36 of file TorSettings.cpp.

#define SETTING_AUTOCONTROL   "AutoControl"
#define SETTING_BOOTSTRAP   "Bootstrap"
#define SETTING_BOOTSTRAP_FROM   "BootstrapFrom"
#define SETTING_CONTROL_ADDR   "ControlAddr"
#define SETTING_CONTROL_METHOD   "ControlMethod"
#define SETTING_CONTROL_PASSWORD   "ControlPassword"
#define SETTING_CONTROL_PORT   "ControlPort"
#define SETTING_DATA_DIRECTORY   "DataDirectory"
#define SETTING_REJECT_PLAINTEXT_PORTS   "RejectPlaintextPorts"
#define SETTING_SOCKET_PATH   "ControlSocket"
#define SETTING_TOR_EXECUTABLE   "TorExecutable"
#define SETTING_TOR_GROUP   "Group"

Definition at line 38 of file TorSettings.cpp.

#define SETTING_TOR_USER   "User"

Definition at line 37 of file TorSettings.cpp.

#define SETTING_TORRC   "Torrc"
#define SETTING_USE_RANDOM_PASSWORD   "UseRandomPassword"
#define SETTING_WARN_PLAINTEXT_PORTS   "WarnPlaintextPorts"
#define TOR_ARG_CONTROL_PORT   "ControlPort"

Definition at line 57 of file TorSettings.cpp.

#define TOR_ARG_COOKIE_AUTH   "CookieAuthentication"

Definition at line 61 of file TorSettings.cpp.

Referenced by TorSettings::apply(), and TorSettings::getAuthenticationMethod().

#define TOR_ARG_DATA_DIRECTORY   "DataDirectory"

Definition at line 59 of file TorSettings.cpp.

#define TOR_ARG_HASHED_PASSWORD   "HashedControlPassword"

Definition at line 60 of file TorSettings.cpp.

Referenced by TorSettings::apply(), and TorSettings::getAuthenticationMethod().

#define TOR_ARG_SOCKSPORT   "SocksPort"

Definition at line 62 of file TorSettings.cpp.

Referenced by TorSettings::apply().

#define TOR_ARG_TORRC   "-f"

Definition at line 58 of file TorSettings.cpp.