summaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-04-27 11:14:12 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-04-27 11:16:57 -0400
commitf7633c1fcaefe72bf97c001bab9062132c919996 (patch)
tree39670b8278d5b7f6c0d8102bc5c91b7ee37883f2 /src/or/hs_service.h
parent3ab017b10c64e090a5a3f197315ddcdbc6de698c (diff)
downloadtor-f7633c1fcaefe72bf97c001bab9062132c919996.tar.gz
tor-f7633c1fcaefe72bf97c001bab9062132c919996.zip
hs: Rescan the main loop event list if the service map changes
Because ADD_ONION/DEL_ONION can modify the global service map (both for v2 and v3), we need to rescan the event list so we either enable or disable the HS service main loop event. Fixees #25939 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index d163eeef28..2e27d8a899 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -260,6 +260,7 @@ void hs_service_lists_fnames_for_sandbox(smartlist_t *file_list,
int hs_service_set_conn_addr_port(const origin_circuit_t *circ,
edge_connection_t *conn);
+void hs_service_map_has_changed(void);
void hs_service_dir_info_changed(void);
void hs_service_run_scheduled_events(time_t now);
void hs_service_circuit_has_opened(origin_circuit_t *circ);