summaryrefslogtreecommitdiff
path: root/src/or/hs_service.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-02-21 14:20:39 -0500
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:33 -0400
commitd765cf30b51dfcd58756b6b3d24a14ac2c47f3e8 (patch)
tree91abef47c708dd4d30b50f5a8e31bf50389dedd2 /src/or/hs_service.h
parent6a21ac7f9809963287dd678c9f2c494b3f9ebba3 (diff)
downloadtor-d765cf30b51dfcd58756b6b3d24a14ac2c47f3e8.tar.gz
tor-d765cf30b51dfcd58756b6b3d24a14ac2c47f3e8.zip
prop224: Circuit has opened and ESTABLISH_INTRO cell
Add the entry point from the circuit subsystem of "circuit has opened" which is for all type of hidden service circuits. For the introduction point, this commit actually adds the support for handling those circuits when opened and sending ESTABLISH_INTRO on a circuit. Rendevzou point circuit aren't supported yet at this commit. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.h')
-rw-r--r--src/or/hs_service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/hs_service.h b/src/or/hs_service.h
index 476fee72ff..96df09493e 100644
--- a/src/or/hs_service.h
+++ b/src/or/hs_service.h
@@ -103,6 +103,9 @@ typedef struct hs_service_descriptor_t {
* hs_service_intropoints_t object indexed by authentication key (the RSA
* key if the node is legacy). */
hs_service_intropoints_t intro_points;
+
+ /* The time period number this descriptor has been created for. */
+ uint64_t time_period_num;
} hs_service_descriptor_t;
/* Service key material. */
@@ -228,6 +231,7 @@ void hs_service_stage_services(const smartlist_t *service_list);
int hs_service_load_all_keys(void);
void hs_service_run_scheduled_events(time_t now);
+void hs_service_circuit_has_opened(origin_circuit_t *circ);
/* These functions are only used by unit tests and we need to expose them else
* hs_service.o ends up with no symbols in libor.a which makes clang throw a