aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_descriptor.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2016-11-08 13:22:42 -0500
committerDavid Goulet <dgoulet@torproject.org>2016-11-08 13:22:42 -0500
commit34f14a35b60522e2482fade24ab455956370eee4 (patch)
tree6947a3d22d3a3d79cd7b18d9acd57be16253f105 /src/test/test_hs_descriptor.c
parent053cf55cab4753cf0bcfb7e3bc7cf7038833a3a7 (diff)
downloadtor-34f14a35b60522e2482fade24ab455956370eee4.tar.gz
tor-34f14a35b60522e2482fade24ab455956370eee4.zip
hs: Add single-onion-service line to v3 descriptor
This field indicates if the service is a Single Onion Service if present in the descriptor. Closes #19642 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_descriptor.c')
-rw-r--r--src/test/test_hs_descriptor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_hs_descriptor.c b/src/test/test_hs_descriptor.c
index 6c88cc1017..66ed3cea72 100644
--- a/src/test/test_hs_descriptor.c
+++ b/src/test/test_hs_descriptor.c
@@ -102,6 +102,7 @@ helper_build_hs_desc(unsigned int no_ip)
/* Setup encrypted data section. */
desc->encrypted_data.create2_ntor = 1;
desc->encrypted_data.auth_types = smartlist_new();
+ desc->encrypted_data.single_onion_service = 1;
smartlist_add(desc->encrypted_data.auth_types, tor_strdup("ed25519"));
desc->encrypted_data.intro_points = smartlist_new();
if (!no_ip) {