tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

tor_cmdline_mode.h (1356B)


      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) */