Tor  0.4.7.0-alpha-dev
Enumerations
tor_cmdline_mode.h File Reference

Declare the tor_cmdline_mode_t enumeration. More...

Go to the source code of this file.

Enumerations

enum  tor_cmdline_mode_t {
  CMD_RUN_TOR =0 , CMD_LIST_FINGERPRINT , CMD_HASH_PASSWORD , CMD_VERIFY_CONFIG ,
  CMD_DUMP_CONFIG , CMD_KEYGEN , CMD_KEY_EXPIRATION , CMD_IMMEDIATE ,
  CMD_RUN_UNITTESTS
}
 

Detailed Description

Declare the tor_cmdline_mode_t enumeration.

Definition in file tor_cmdline_mode.h.

Enumeration Type Documentation

◆ tor_cmdline_mode_t

Enumeration to describe which command Tor is running. These commands are controlled by command-line options.

Enumerator
CMD_RUN_TOR 

The default: run Tor as a daemon.

CMD_LIST_FINGERPRINT 

Running –list-fingerprint.

CMD_HASH_PASSWORD 

Running –hash-password.

CMD_VERIFY_CONFIG 

Running –verify-config.

CMD_DUMP_CONFIG 

Running –dump-config.

CMD_KEYGEN 

Running –keygen

CMD_KEY_EXPIRATION 

Running –key-expiration

CMD_IMMEDIATE 

Special value: indicates a command that is handled immediately during configuration processing.

CMD_RUN_UNITTESTS 

Special value: indicates that we have entered the Tor code from the unit tests, not from the regular Tor binary at all.

Definition at line 19 of file tor_cmdline_mode.h.