diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-08-29 11:18:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-08-29 11:18:42 -0400 |
commit | fb0e8966f00c4349602594f312dae60cad2ea11d (patch) | |
tree | 1fdbc7bff759e99ef37ec5bb1cb9df5841cfe2bd /src/feature/dirauth/reachability.h | |
parent | 4256ee0d379daf35098c396757ce92b97b025c6e (diff) | |
download | tor-fb0e8966f00c4349602594f312dae60cad2ea11d.tar.gz tor-fb0e8966f00c4349602594f312dae60cad2ea11d.zip |
Stub more functions in dirvote headers to fix more of 31552.
Diffstat (limited to 'src/feature/dirauth/reachability.h')
-rw-r--r-- | src/feature/dirauth/reachability.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/feature/dirauth/reachability.h b/src/feature/dirauth/reachability.h index 0018c7f638..8a83f0c493 100644 --- a/src/feature/dirauth/reachability.h +++ b/src/feature/dirauth/reachability.h @@ -24,16 +24,16 @@ #define REACHABILITY_TEST_CYCLE_PERIOD \ (REACHABILITY_TEST_INTERVAL*REACHABILITY_MODULO_PER_TEST) -void dirserv_orconn_tls_done(const tor_addr_t *addr, - uint16_t or_port, - const char *digest_rcvd, - const struct ed25519_public_key_t *ed_id_rcvd); void dirserv_single_reachability_test(time_t now, routerinfo_t *router); void dirserv_test_reachability(time_t now); #ifdef HAVE_MODULE_DIRAUTH int dirserv_should_launch_reachability_test(const routerinfo_t *ri, const routerinfo_t *ri_old); +void dirserv_orconn_tls_done(const tor_addr_t *addr, + uint16_t or_port, + const char *digest_rcvd, + const struct ed25519_public_key_t *ed_id_rcvd); #else static inline int dirserv_should_launch_reachability_test(const routerinfo_t *ri, @@ -43,6 +43,17 @@ dirserv_should_launch_reachability_test(const routerinfo_t *ri, (void)ri_old; return 0; } +static inline void +dirserv_orconn_tls_done(const tor_addr_t *addr, + uint16_t or_port, + const char *digest_rcvd, + const struct ed25519_public_key_t *ed_id_rcvd) +{ + (void)addr; + (void)or_port; + (void)digest_rcvd; + (void)ed_id_rcvd; +} #endif #endif /* !defined(TOR_REACHABILITY_H) */ |