Update copyrights to 2021, using "make update-copyright"
[tor.git] / src / feature / dirauth / dirauth_stub.c
blob42967aa0bc5061b1253f86f987d5b73dc4e15622
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 */
7 /**
8 * @file dirauth_stub.c
9 * @brief Stub declarations for use when dirauth module is disabled.
10 **/
12 #include "orconfig.h"
13 #include "feature/dirauth/dirauth_sys.h"
14 #include "lib/conf/conftypes.h"
15 #include "lib/conf/confdecl.h"
16 #include "lib/subsys/subsys.h"
18 /* Declare the options field table for dirauth_options */
19 #define CONF_CONTEXT STUB_TABLE
20 #include "feature/dirauth/dirauth_options.inc"
21 #undef CONF_CONTEXT
23 static const config_format_t dirauth_options_stub_fmt = {
24 .vars = dirauth_options_t_vars,
27 const struct subsys_fns_t sys_dirauth = {
28 .name = "dirauth",
29 SUBSYS_DECLARE_LOCATION(),
30 .supported = false,
31 .level = DIRAUTH_SUBSYS_LEVEL,
33 .options_format = &dirauth_options_stub_fmt