]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make keypin.c dirauth-only
authorNick Mathewson <nickm@torproject.org>
Tue, 30 Apr 2019 16:52:00 +0000 (12:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 2 May 2019 13:22:13 +0000 (09:22 -0400)
src/app/main/shutdown.c
src/core/include.am
src/feature/dirauth/dirauth_sys.c

index 92cd9c6f7b01193515dffff011fd1d436deb2e59..390a512c1387ef7167a6a8deb3576a8446f5c9bb 100644 (file)
@@ -97,7 +97,6 @@ tor_cleanup(void)
     }
     if (authdir_mode_tests_reachability(options))
       rep_hist_record_mtbf_data(now, 0);
-    keypin_close_journal();
   }
 
   timers_shutdown();
index 18b6046bfc38fe790627129038554c2055220a68..dc7371feddc6f747ef5d3aa501f2dfae1c42f170 100644 (file)
@@ -81,7 +81,6 @@ LIBTOR_APP_A_SOURCES =                                \
        src/feature/control/control_getinfo.c   \
        src/feature/control/fmt_serverstatus.c  \
        src/feature/control/getinfo_geoip.c     \
-       src/feature/dirauth/keypin.c            \
        src/feature/dircache/conscache.c        \
        src/feature/dircache/consdiffmgr.c      \
        src/feature/dircache/dircache.c         \
@@ -118,7 +117,6 @@ LIBTOR_APP_A_SOURCES =                              \
        src/feature/hs_common/replaycache.c     \
        src/feature/hs_common/shared_random_client.c    \
        src/feature/keymgt/loadkey.c            \
-       src/feature/dirauth/keypin.c            \
        src/feature/nodelist/authcert.c         \
        src/feature/nodelist/describe.c         \
        src/feature/nodelist/dirlist.c          \
@@ -173,6 +171,7 @@ MODULE_DIRAUTH_SOURCES =                                    \
        src/feature/dirauth/dirvote.c                           \
        src/feature/dirauth/dsigs_parse.c                       \
        src/feature/dirauth/guardfraction.c                     \
+       src/feature/dirauth/keypin.c                            \
        src/feature/dirauth/process_descs.c                     \
        src/feature/dirauth/reachability.c                      \
        src/feature/dirauth/recommend_pkg.c                     \
index f691d5618aa696246b187e46df65756eaffefaa4..e38d391300848b18a5f89378963c4bc146e28c7a 100644 (file)
@@ -10,6 +10,7 @@
 #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"
@@ -27,6 +28,7 @@ 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 = {