diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-10 12:07:57 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-05 19:39:46 -0500 |
commit | 743d0b9d91c0c26045aa9a725865870f0c052794 (patch) | |
tree | 70988e5bea61695a53546e55eb73085e734b4726 /src/or/control.h | |
parent | e7d606900e635719ed0cb5b76343a69ef4a1e43b (diff) | |
download | tor-743d0b9d91c0c26045aa9a725865870f0c052794.tar.gz tor-743d0b9d91c0c26045aa9a725865870f0c052794.zip |
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 <dgoulet@torproject.org>
Diffstat (limited to 'src/or/control.h')
-rw-r--r-- | src/or/control.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |