Tor  0.4.6.0-alpha-dev
dirauth_stub.c
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-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file dirauth_stub.c
9  * @brief Stub declarations for use when dirauth module is disabled.
10  **/
11 
12 #include "orconfig.h"
14 #include "lib/conf/conftypes.h"
15 #include "lib/conf/confdecl.h"
16 #include "lib/subsys/subsys.h"
17 
18 /* Declare the options field table for dirauth_options */
19 #define CONF_CONTEXT STUB_TABLE
21 #undef CONF_CONTEXT
22 
23 static const config_format_t dirauth_options_stub_fmt = {
24  .vars = dirauth_options_t_vars,
25 };
26 
27 const struct subsys_fns_t sys_dirauth = {
28  .name = "dirauth",
30  .supported = false,
31  .level = DIRAUTH_SUBSYS_LEVEL,
32 
33  .options_format = &dirauth_options_stub_fmt
34 };
SUBSYS_DECLARE_LOCATION
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211
dirauth_options.inc
Declare configuration options for the crypto_ops module.
DIRAUTH_SUBSYS_LEVEL
#define DIRAUTH_SUBSYS_LEVEL
Definition: dirauth_sys.h:26
confdecl.h
Macros for generating a configuration struct from a list of its individual fields.
config_format_t
Definition: conftypes.h:347
config_format_t::vars
const config_var_t * vars
Definition: conftypes.h:353
subsys.h
Types used to declare a subsystem.
subsys_fns_t::name
const char * name
Definition: subsys.h:43
conftypes.h
Types used to specify configurable options.
dirauth_sys.h
Header for dirauth_sys.c.
subsys_fns_t
Definition: subsys.h:38