aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_descriptor.h
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/or/hs_descriptor.h
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/or/hs_descriptor.h')
-rw-r--r--src/or/hs_descriptor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hs_descriptor.h b/src/or/hs_descriptor.h
index 8bc725674e..895bed2485 100644
--- a/src/or/hs_descriptor.h
+++ b/src/or/hs_descriptor.h
@@ -128,6 +128,9 @@ typedef struct hs_desc_encrypted_data_t {
* in order to contact the service. Contains NULL terminated strings. */
smartlist_t *auth_types;
+ /* Is this descriptor a single onion service? */
+ unsigned int single_onion_service : 1;
+
/* A list of intro points. Contains hs_desc_intro_point_t objects. */
smartlist_t *intro_points;
} hs_desc_encrypted_data_t;