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/hs_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/hs_control.h')
-rw-r--r-- | src/or/hs_control.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/or/hs_control.h b/src/or/hs_control.h new file mode 100644 index 0000000000..2878ba5bca --- /dev/null +++ b/src/or/hs_control.h @@ -0,0 +1,18 @@ +/* Copyright (c) 2017, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file hs_control.h + * \brief Header file containing control port event related code. + **/ + +#ifndef TOR_HS_CONTROL_H +#define TOR_HS_CONTROL_H + +/* Event "HS_DESC REQUESTED [...]" */ +void hs_control_desc_event_requested(const ed25519_public_key_t *onion_pk, + const char *base64_blinded_pk, + const routerstatus_t *hsdir_rs); + +#endif /* !defined(TOR_HS_CONTROL_H) */ + |