aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-11-10 14:12:34 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:39:46 -0500
commit3b436d495fc6ad59ff5d9406d7ef17494286c299 (patch)
treea0238ed65588572666ff9badd541e30f2d22cfd8 /src/or/directory.c
parent8365de1da3de53fc02d463d78187625d16a5180b (diff)
downloadtor-3b436d495fc6ad59ff5d9406d7ef17494286c299.tar.gz
tor-3b436d495fc6ad59ff5d9406d7ef17494286c299.zip
hs-v3: Implement HS_DESC RECEIVED event
Adds a v3 specific function to handle a received event. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 1b6f7500b3..a1d9c8c08a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3098,6 +3098,8 @@ handle_response_fetch_hsdesc_v3(dir_connection_t *conn,
log_info(LD_REND, "Stored hidden service descriptor successfully.");
TO_CONN(conn)->purpose = DIR_PURPOSE_HAS_FETCHED_HSDESC;
hs_client_desc_has_arrived(conn->hs_ident);
+ /* Fire control port RECEIVED event. */
+ hs_control_desc_event_received(conn->hs_ident, conn->identity_digest);
}
break;
case 404: