blob: e38d391300848b18a5f89378963c4bc146e28c7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* Copyright (c) 2001 Matej Pfajfar.
* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
* Copyright (c) 2007-2019, The Tor Project, Inc. */
/* See LICENSE for licensing information */
#include "core/or/or.h"
#include "feature/dirauth/bwauth.h"
#include "feature/dirauth/dirauth_sys.h"
#include "feature/dirauth/dirvote.h"
#include "feature/dirauth/dirauth_periodic.h"
#include "feature/dirauth/keypin.h"
#include "feature/dirauth/process_descs.h"
#include "lib/subsys/subsys.h"
static int
subsys_dirauth_initialize(void)
{
dirauth_register_periodic_events();
return 0;
}
static void
subsys_dirauth_shutdown(void)
{
dirserv_free_fingerprint_list();
dirvote_free_all();
dirserv_clear_measured_bw_cache();
keypin_close_journal();
}
const struct subsys_fns_t sys_dirauth = {
.name = "dirauth",
.supported = true,
.level = 70,
.initialize = subsys_dirauth_initialize,
.shutdown = subsys_dirauth_shutdown,
};
|