summaryrefslogtreecommitdiff
path: root/src/test/test_hs.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-11-10 12:07:57 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:39:46 -0500
commit743d0b9d91c0c26045aa9a725865870f0c052794 (patch)
tree70988e5bea61695a53546e55eb73085e734b4726 /src/test/test_hs.c
parente7d606900e635719ed0cb5b76343a69ef4a1e43b (diff)
downloadtor-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/test/test_hs.c')
-rw-r--r--src/test/test_hs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs.c b/src/test/test_hs.c
index 14799c9935..55c6218dd1 100644
--- a/src/test/test_hs.c
+++ b/src/test/test_hs.c
@@ -260,7 +260,7 @@ test_hs_desc_event(void *arg)
/* test request event */
control_event_hs_descriptor_requested(rend_query.onion_address,
rend_query.auth_type, HSDIR_EXIST_ID,
- STR_DESC_ID_BASE32);
+ STR_DESC_ID_BASE32, NULL);
expected_msg = "650 HS_DESC REQUESTED "STR_HS_ADDR" NO_AUTH "\
STR_HSDIR_EXIST_LONGNAME " " STR_DESC_ID_BASE32 "\r\n";
tt_assert(received_msg);