diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-10 14:48:52 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-12-05 19:39:46 -0500 |
commit | c7050eaa16ca8c46c2cea81cc2f4d405ccf15968 (patch) | |
tree | cecbf32ee7838266839fe4c80fa6cfe514c9de12 /src/or/hs_service.c | |
parent | b71a9b60cc0c29899637acc0610cb87c56869c1e (diff) | |
download | tor-c7050eaa16ca8c46c2cea81cc2f4d405ccf15968.tar.gz tor-c7050eaa16ca8c46c2cea81cc2f4d405ccf15968.zip |
hs-v3: Implement HS_DESC UPLOAD event
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_service.c')
-rw-r--r-- | src/or/hs_service.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/hs_service.c b/src/or/hs_service.c index 65df5b2693..4f0465da40 100644 --- a/src/or/hs_service.c +++ b/src/or/hs_service.c @@ -2267,9 +2267,12 @@ upload_descriptor_to_hsdir(const hs_service_t *service, desc->desc->plaintext_data.revision_counter, safe_str_client(node_describe(hsdir)), safe_str_client(hex_str((const char *) index, 32))); + + /* Fire a UPLOAD control port event. */ + hs_control_desc_event_upload(service->onion_address, hsdir->identity, + &desc->blinded_kp.pubkey, index); } - /* XXX: Inform control port of the upload event (#20699). */ end: tor_free(encoded_desc); return; |