torsettings.cpp File Reference

Settings used for starting and running Tor. More...

#include <QDir>
#include <QProcess>
#include <util/file.h>
#include <util/crypto.h>
#include <vidalia.h>
#include "torsettings.h"

Go to the source code of this file.

Defines

#define SETTING_TOR_EXECUTABLE   "Tor/TorExecutable"
#define SETTING_TORRC   "Tor/Torrc"
#define SETTING_CONTROL_ADDR   "Tor/ControlAddr"
#define SETTING_CONTROL_PORT   "Tor/ControlPort"
#define SETTING_AUTH_TOKEN   "Tor/AuthToken"
#define SETTING_TOR_USER   "Tor/User"
#define SETTING_TOR_GROUP   "Tor/Group"
#define SETTING_DATA_DIRECTORY   "Tor/DataDirectory"
#define SETTING_AUTH_METHOD   "Tor/AuthenticationMethod"
#define SETTING_CONTROL_PASSWORD   "Tor/ControlPassword"
#define SETTING_USE_RANDOM_PASSWORD   "Tor/UseRandomPassword"
#define DEFAULT_AUTH_METHOD   PasswordAuth
#define TOR_ARG_CONTROL_PORT   "ControlPort"
#define TOR_ARG_TORRC   "-f"
#define TOR_ARG_USER   "User"
#define TOR_ARG_GROUP   "Group"
#define TOR_ARG_DATA_DIRECTORY   "DataDirectory"
#define TOR_ARG_HASHED_PASSWORD   "HashedControlPassword"
#define TOR_ARG_COOKIE_AUTH   "CookieAuthentication"
#define PASSWORD_LEN   16


Detailed Description

Settings used for starting and running Tor.

Version:
Id

Definition in file torsettings.cpp.


Define Documentation

#define DEFAULT_AUTH_METHOD   PasswordAuth

Default to using hashed password authentication

Definition at line 56 of file torsettings.cpp.

Referenced by TorSettings::TorSettings().

#define PASSWORD_LEN   16

Generate random control passwords of 16 characters

Definition at line 68 of file torsettings.cpp.

Referenced by TorSettings::generateRandomPassword().

#define SETTING_AUTH_METHOD   "Tor/AuthenticationMethod"

Definition at line 45 of file torsettings.cpp.

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

#define SETTING_AUTH_TOKEN   "Tor/AuthToken"

Definition at line 41 of file torsettings.cpp.

#define SETTING_CONTROL_ADDR   "Tor/ControlAddr"

Definition at line 39 of file torsettings.cpp.

Referenced by TorSettings::getControlAddress(), TorSettings::setControlAddress(), and TorSettings::TorSettings().

#define SETTING_CONTROL_PASSWORD   "Tor/ControlPassword"

Definition at line 46 of file torsettings.cpp.

Referenced by TorSettings::getControlPassword(), TorSettings::setControlPassword(), and TorSettings::TorSettings().

#define SETTING_CONTROL_PORT   "Tor/ControlPort"

Definition at line 40 of file torsettings.cpp.

Referenced by TorSettings::getControlPort(), TorSettings::setControlPort(), and TorSettings::TorSettings().

#define SETTING_DATA_DIRECTORY   "Tor/DataDirectory"

Definition at line 44 of file torsettings.cpp.

Referenced by TorSettings::getDataDirectory(), TorSettings::setDataDirectory(), and TorSettings::TorSettings().

#define SETTING_TOR_EXECUTABLE   "Tor/TorExecutable"

Definition at line 37 of file torsettings.cpp.

Referenced by TorSettings::getExecutable(), TorSettings::setExecutable(), and TorSettings::TorSettings().

#define SETTING_TOR_GROUP   "Tor/Group"

Definition at line 43 of file torsettings.cpp.

Referenced by TorSettings::getGroup(), TorSettings::setGroup(), and TorSettings::TorSettings().

#define SETTING_TOR_USER   "Tor/User"

Definition at line 42 of file torsettings.cpp.

Referenced by TorSettings::getUser(), TorSettings::setUser(), and TorSettings::TorSettings().

#define SETTING_TORRC   "Tor/Torrc"

Definition at line 38 of file torsettings.cpp.

Referenced by TorSettings::getTorrc(), TorSettings::setTorrc(), and TorSettings::TorSettings().

#define SETTING_USE_RANDOM_PASSWORD   "Tor/UseRandomPassword"

Definition at line 47 of file torsettings.cpp.

Referenced by TorSettings::setUseRandomPassword(), TorSettings::TorSettings(), and TorSettings::useRandomPassword().

#define TOR_ARG_CONTROL_PORT   "ControlPort"

Definition at line 59 of file torsettings.cpp.

Referenced by TorSettings::getArguments().

#define TOR_ARG_COOKIE_AUTH   "CookieAuthentication"

Definition at line 65 of file torsettings.cpp.

Referenced by TorSettings::getArguments().

#define TOR_ARG_DATA_DIRECTORY   "DataDirectory"

Definition at line 63 of file torsettings.cpp.

Referenced by TorSettings::getArguments().

#define TOR_ARG_GROUP   "Group"

Definition at line 62 of file torsettings.cpp.

Referenced by TorSettings::getArguments().

#define TOR_ARG_HASHED_PASSWORD   "HashedControlPassword"

Definition at line 64 of file torsettings.cpp.

Referenced by TorSettings::getArguments().

#define TOR_ARG_TORRC   "-f"

Definition at line 60 of file torsettings.cpp.

Referenced by TorSettings::getArguments().

#define TOR_ARG_USER   "User"

Definition at line 61 of file torsettings.cpp.

Referenced by TorSettings::getArguments().


Generated on Wed Sep 5 15:49:28 2007 for Vidalia by  doxygen 1.5.3