summaryrefslogtreecommitdiff
path: root/src/feature/rend/rendservice.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-08-22 11:38:28 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-08-22 11:38:28 -0400
commit61ad81c36e46d7b05b66601520c7ff42469f24d7 (patch)
tree937fcc490cee35171f4d4296ed5d458b9d95a1a3 /src/feature/rend/rendservice.h
parentcb466ee7d6f7f475783847a7201eaa6a3e1c711b (diff)
downloadtor-61ad81c36e46d7b05b66601520c7ff42469f24d7.tar.gz
tor-61ad81c36e46d7b05b66601520c7ff42469f24d7.zip
hs: Learn service version by trying to load the keys
In order to switch the default HS version from 2 to 3, we need tor to be smart and be able to decide on the version by trying to load the service keys during configuration validation. Part of #27215 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/rend/rendservice.h')
-rw-r--r--src/feature/rend/rendservice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/rend/rendservice.h b/src/feature/rend/rendservice.h
index 7096789629..7186289fc7 100644
--- a/src/feature/rend/rendservice.h
+++ b/src/feature/rend/rendservice.h
@@ -145,6 +145,7 @@ int rend_config_service(const struct config_line_t *line_,
void rend_service_prune_list(void);
void rend_service_free_staging_list(void);
int rend_service_load_all_keys(const smartlist_t *service_list);
+int rend_service_key_on_disk(const char *directory_path);
void rend_services_add_filenames_to_lists(smartlist_t *open_lst,
smartlist_t *stat_lst);
void rend_consider_services_intro_points(time_t now);