diff options
author | teor <teor@torproject.org> | 2018-07-31 14:30:17 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-01-31 07:53:22 +0100 |
commit | 6170d3fcf12f4345ec13561d0f444930f2f12e84 (patch) | |
tree | ce72649a5d7762b437309355104b020ff9f3f705 /src/test/test_hs_cell.c | |
parent | cdda3dc48457af31a9d1b3df1222d449b736f3b1 (diff) | |
download | tor-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/test/test_hs_cell.c')
-rw-r--r-- | src/test/test_hs_cell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs_cell.c b/src/test/test_hs_cell.c index 0c93f593ce..6e00e8807e 100644 --- a/src/test/test_hs_cell.c +++ b/src/test/test_hs_cell.c @@ -39,7 +39,7 @@ test_gen_establish_intro_cell(void *arg) attempt to parse it. */ { /* We only need the auth key pair here. */ - hs_service_intro_point_t *ip = service_intro_point_new(NULL, 0, 0); + hs_service_intro_point_t *ip = service_intro_point_new(NULL); /* Auth key pair is generated in the constructor so we are all set for * using this IP object. */ ret = hs_cell_build_establish_intro(circ_nonce, ip, buf); @@ -107,7 +107,7 @@ test_gen_establish_intro_cell_bad(void *arg) ed25519_sign_prefixed() function and make it fail. */ cell = trn_cell_establish_intro_new(); tt_assert(cell); - ip = service_intro_point_new(NULL, 0, 0); + ip = service_intro_point_new(NULL); cell_len = hs_cell_build_establish_intro(circ_nonce, ip, NULL); service_intro_point_free(ip); expect_log_msg_containing("Unable to make signature for " |