dirauth_stub.c (955B)
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 dirauth_stub.c 9 * @brief Stub declarations for use when dirauth module is disabled. 10 **/ 11 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" 17 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 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", 29 SUBSYS_DECLARE_LOCATION(), 30 .supported = false, 31 .level = DIRAUTH_SUBSYS_LEVEL, 32 33 .options_format = &dirauth_options_stub_fmt 34 };