From 61ad81c36e46d7b05b66601520c7ff42469f24d7 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Wed, 22 Aug 2018 11:38:28 -0400 Subject: 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 --- src/feature/hs/hs_service.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/feature/hs/hs_service.h') 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, -- cgit v1.2.3-54-g00ecf