From 743d0b9d91c0c26045aa9a725865870f0c052794 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 10 Nov 2017 12:07:57 -0500 Subject: hs-v3: Implement HS_DESC REQUESTED event This changes the control_event_hs_descriptor_requested() call to add the hsdir index optional value. v2 passes NULL all the time. This commit creates hs_control.{c|h} that contains wrappers for the HS subsystem to interact with the control port subsystem. The descriptor REQUESTED event is implemented following proposal 284 extension for v3. Signed-off-by: David Goulet --- src/or/control.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/control.h') diff --git a/src/or/control.h b/src/or/control.h index 1744baba2e..5a7a87c06f 100644 --- a/src/or/control.h +++ b/src/or/control.h @@ -118,7 +118,8 @@ MOCK_DECL(const char *, node_describe_longname_by_id,(const char *id_digest)); void control_event_hs_descriptor_requested(const char *onion_address, rend_auth_type_t auth_type, const char *id_digest, - const char *desc_id); + const char *desc_id, + const char *hsdir_index); void control_event_hs_descriptor_created(const char *onion_address, const char *desc_id, int replica); -- cgit v1.2.3-54-g00ecf