Tor
0.4.9.2-alpha-dev
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
b
c
d
f
g
h
l
m
n
o
p
r
s
v
Enumerations
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerator
a
b
c
d
e
g
h
i
m
n
o
p
q
r
s
t
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
app
config
tor_cmdline_mode.h
Go to the documentation of this file.
1
/* Copyright (c) 2001 Matej Pfajfar.
2
* Copyright (c) 2001-2004, Roger Dingledine.
3
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4
* Copyright (c) 2007-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* \file tor_cmdline_mode.h
9
* \brief Declare the tor_cmdline_mode_t enumeration
10
**/
11
12
#ifndef TOR_CMDLINE_MODE_H
13
#define TOR_CMDLINE_MODE_H
14
15
/**
16
* Enumeration to describe which command Tor is running. These commands
17
* are controlled by command-line options.
18
**/
19
typedef
enum
{
20
CMD_RUN_TOR
=0,
/**< The default: run Tor as a daemon. */
21
CMD_LIST_FINGERPRINT
,
/**< Running --list-fingerprint. */
22
CMD_HASH_PASSWORD
,
/**< Running --hash-password. */
23
CMD_VERIFY_CONFIG
,
/**< Running --verify-config. */
24
CMD_DUMP_CONFIG
,
/**< Running --dump-config. */
25
CMD_KEYGEN
,
/**< Running --keygen */
26
CMD_KEYGEN_FAMILY
,
/**< Running --keygen-family */
27
CMD_KEY_EXPIRATION
,
/**< Running --key-expiration */
28
CMD_IMMEDIATE
,
/**< Special value: indicates a command that is handled
29
* immediately during configuration processing. */
30
CMD_RUN_UNITTESTS
,
/**< Special value: indicates that we have entered
31
* the Tor code from the unit tests, not from the
32
* regular Tor binary at all. */
33
}
tor_cmdline_mode_t
;
34
35
#endif
/* !defined(TOR_CMDLINE_MODE_H) */
tor_cmdline_mode_t
tor_cmdline_mode_t
Definition:
tor_cmdline_mode.h:19
CMD_HASH_PASSWORD
@ CMD_HASH_PASSWORD
Definition:
tor_cmdline_mode.h:22
CMD_LIST_FINGERPRINT
@ CMD_LIST_FINGERPRINT
Definition:
tor_cmdline_mode.h:21
CMD_VERIFY_CONFIG
@ CMD_VERIFY_CONFIG
Definition:
tor_cmdline_mode.h:23
CMD_RUN_TOR
@ CMD_RUN_TOR
Definition:
tor_cmdline_mode.h:20
CMD_KEY_EXPIRATION
@ CMD_KEY_EXPIRATION
Definition:
tor_cmdline_mode.h:27
CMD_KEYGEN
@ CMD_KEYGEN
Definition:
tor_cmdline_mode.h:25
CMD_DUMP_CONFIG
@ CMD_DUMP_CONFIG
Definition:
tor_cmdline_mode.h:24
CMD_IMMEDIATE
@ CMD_IMMEDIATE
Definition:
tor_cmdline_mode.h:28
CMD_KEYGEN_FAMILY
@ CMD_KEYGEN_FAMILY
Definition:
tor_cmdline_mode.h:26
CMD_RUN_UNITTESTS
@ CMD_RUN_UNITTESTS
Definition:
tor_cmdline_mode.h:30
Generated by
1.9.4