aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_service.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-07-31 14:30:17 +1000
committerteor <teor@torproject.org>2019-01-31 07:53:22 +0100
commit6170d3fcf12f4345ec13561d0f444930f2f12e84 (patch)
treece72649a5d7762b437309355104b020ff9f3f705 /src/feature/hs/hs_service.h
parentcdda3dc48457af31a9d1b3df1222d449b736f3b1 (diff)
downloadtor-6170d3fcf12f4345ec13561d0f444930f2f12e84.tar.gz
tor-6170d3fcf12f4345ec13561d0f444930f2f12e84.zip
hs: Onion services put IPv6 addresses in service descriptors
Rewrite service_intro_point_new() to take a node_t. Since node_get_link_specifier_smartlist() supports IPv6 link specifiers, this refactor adds IPv6 addresses to onion service descriptors. Part of 23576, implements 26992.
Diffstat (limited to 'src/feature/hs/hs_service.h')
-rw-r--r--src/feature/hs/hs_service.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/feature/hs/hs_service.h b/src/feature/hs/hs_service.h
index ec53f2f23b..8d7f773219 100644
--- a/src/feature/hs/hs_service.h
+++ b/src/feature/hs/hs_service.h
@@ -369,10 +369,7 @@ STATIC hs_service_t *find_service(hs_service_ht *map,
STATIC void remove_service(hs_service_ht *map, hs_service_t *service);
STATIC int register_service(hs_service_ht *map, hs_service_t *service);
/* Service introduction point functions. */
-STATIC hs_service_intro_point_t *service_intro_point_new(
- const extend_info_t *ei,
- unsigned int is_legacy,
- unsigned int supports_ed25519_link_handshake_any);
+STATIC hs_service_intro_point_t *service_intro_point_new(const node_t *node);
STATIC void service_intro_point_free_(hs_service_intro_point_t *ip);
#define service_intro_point_free(ip) \
FREE_AND_NULL(hs_service_intro_point_t, \