summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.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/hs/hs_service.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/hs/hs_service.h')
-rw-r--r--src/feature/hs/hs_service.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index 5c5443a35f..6ccd935512 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -262,6 +262,7 @@ void hs_service_free_(hs_service_t *service);
unsigned int hs_service_get_num_services(void);
void hs_service_stage_services(const smartlist_t *service_list);
int hs_service_load_all_keys(void);
+int hs_service_get_version_from_key(const hs_service_t *service);
void hs_service_lists_fnames_for_sandbox(smartlist_t *file_list,
smartlist_t *dir_list);
int hs_service_set_conn_addr_port(const origin_circuit_t *circ,