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.

Defines

#define SETTING_TOR_EXECUTABLE   "TorExecutable"
#define SETTING_TORRC   "Torrc"
#define SETTING_CONTROL_ADDR   "ControlAddr"
#define SETTING_CONTROL_PORT   "ControlPort"
#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 DEFAULT_AUTH_METHOD   PasswordAuth
#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 PASSWORD_LEN   16

Define Documentation

#define DEFAULT_AUTH_METHOD   PasswordAuth

Default to using hashed password authentication

Definition at line 46 of file TorSettings.cpp.

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

#define PASSWORD_LEN   16

Generate random control passwords of 16 characters

Definition at line 56 of file TorSettings.cpp.

Referenced by TorSettings::randomPassword().

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

Definition at line 35 of file TorSettings.cpp.

#define SETTING_CONTROL_ADDR   "ControlAddr"
#define SETTING_CONTROL_PASSWORD   "ControlPassword"
#define SETTING_CONTROL_PORT   "ControlPort"
#define SETTING_DATA_DIRECTORY   "DataDirectory"
#define SETTING_REJECT_PLAINTEXT_PORTS   "RejectPlaintextPorts"
#define SETTING_TOR_EXECUTABLE   "TorExecutable"
#define SETTING_TOR_GROUP   "Group"

Definition at line 37 of file TorSettings.cpp.

#define SETTING_TOR_USER   "User"

Definition at line 36 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 49 of file TorSettings.cpp.

#define TOR_ARG_COOKIE_AUTH   "CookieAuthentication"

Definition at line 53 of file TorSettings.cpp.

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

#define TOR_ARG_DATA_DIRECTORY   "DataDirectory"

Definition at line 51 of file TorSettings.cpp.

#define TOR_ARG_HASHED_PASSWORD   "HashedControlPassword"

Definition at line 52 of file TorSettings.cpp.

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

#define TOR_ARG_TORRC   "-f"

Definition at line 50 of file TorSettings.cpp.


Generated on 31 Mar 2010 for Vidalia by  doxygen 1.6.1