tor  0.4.2.0-alpha-dev
dirauth_sys.c
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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #include "core/or/or.h"
8 
10 #include "feature/dirauth/dirauth_sys.h"
12 #include "feature/dirauth/dirauth_periodic.h"
13 #include "feature/dirauth/keypin.h"
15 
16 #include "lib/subsys/subsys.h"
17 
18 static int
19 subsys_dirauth_initialize(void)
20 {
21  dirauth_register_periodic_events();
22  return 0;
23 }
24 
25 static void
26 subsys_dirauth_shutdown(void)
27 {
32 }
33 
34 const struct subsys_fns_t sys_dirauth = {
35  .name = "dirauth",
36  .supported = true,
37  .level = 70,
38  .initialize = subsys_dirauth_initialize,
39  .shutdown = subsys_dirauth_shutdown,
40 };
void dirserv_free_fingerprint_list(void)
void dirserv_clear_measured_bw_cache(void)
Definition: bwauth.c:101
int keypin_close_journal(void)
Definition: keypin.c:339
Master header file for Tor-specific functionality.
Header file for bwauth.c.
void dirvote_free_all(void)
Definition: dirvote.c:3687
Header file for process_descs.c.
Header file for dirvote.c.
const char * name
Definition: subsys.h:28