Tor 0.4.9.0-alpha-dev
authmode.h
Go to the documentation of this file.
1/* Copyright (c) 2018-2021, The Tor Project, Inc. */
2/* See LICENSE for licensing information */
3
4/**
5 * \file authmode.h
6 * \brief Header file for directory authority mode.
7 **/
8
9#ifndef TOR_DIRAUTH_MODE_H
10#define TOR_DIRAUTH_MODE_H
11
13
14#ifdef HAVE_MODULE_DIRAUTH
15
16int authdir_mode(const or_options_t *options);
17int authdir_mode_v3(const or_options_t *options);
18int authdir_mode_handles_descs(const or_options_t *options, int purpose);
21int authdir_mode_bridge(const or_options_t *options);
22
23/* Is the dirauth module enabled? */
24#define have_module_dirauth() (1)
25
26#else /* !defined(HAVE_MODULE_DIRAUTH) */
27
28#define authdir_mode(options) (((void)(options)),0)
29#define authdir_mode_handles_descs(options,purpose) \
30 (((void)(options)),((void)(purpose)),0)
31#define authdir_mode_publishes_statuses(options) (((void)(options)),0)
32#define authdir_mode_tests_reachability(options) (((void)(options)),0)
33#define authdir_mode_bridge(options) (((void)(options)),0)
34#define authdir_mode_v3(options) (((void)(options)),0)
35
36#define have_module_dirauth() (0)
37
38#endif /* defined(HAVE_MODULE_DIRAUTH) */
39
40#endif /* !defined(TOR_DIRAUTH_MODE_H) */
int authdir_mode(const or_options_t *options)
Definition: authmode.c:25
int authdir_mode_tests_reachability(const or_options_t *options)
Definition: authmode.c:68
int authdir_mode_handles_descs(const or_options_t *options, int purpose)
Definition: authmode.c:43
int authdir_mode_bridge(const or_options_t *options)
Definition: authmode.c:76
int authdir_mode_publishes_statuses(const or_options_t *options)
Definition: authmode.c:58
Header file for router.c.