summaryrefslogtreecommitdiff
path: root/src/or/control.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-11-10 11:16:16 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-05 19:39:46 -0500
commitbeacbbe2106f9af64a64fea3f69e5dcd43c1569e (patch)
tree3a02d637e54ba6df3c743b8a1b680b4173c53028 /src/or/control.h
parent242ddc85c874cafdc3513725f9357028b72eb9f8 (diff)
downloadtor-beacbbe2106f9af64a64fea3f69e5dcd43c1569e.tar.gz
tor-beacbbe2106f9af64a64fea3f69e5dcd43c1569e.zip
control: Refactor control_event_hs_descriptor_receive_end
First, rename and make that function static because it is internal to control.c and called by two HS_DESC events. Second, make it take more basic parameters and thus not a rend_data_t object so we can still use the function for v3 HS that doesn't use that object. Third, move the descriptor ID lookup to the two specific events (yes little code duplication there) because they get a rend_data_t object which won't be the case for v3. Finally, through this refactoring, change the pointer check to BUG() and change some parameter names to reflect what they really are. No behavior change at this commit. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/control.h')
-rw-r--r--src/or/control.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/or/control.h b/src/or/control.h
index 45fc4a9bc1..a5f2599d22 100644
--- a/src/or/control.h
+++ b/src/or/control.h
@@ -125,11 +125,6 @@ void control_event_hs_descriptor_created(const char *onion_address,
void control_event_hs_descriptor_upload(const char *onion_address,
const char *desc_id,
const char *hs_dir);
-void control_event_hs_descriptor_receive_end(const char *action,
- const char *onion_address,
- const rend_data_t *rend_data,
- const char *id_digest,
- const char *reason);
void control_event_hs_descriptor_upload_end(const char *action,
const char *onion_address,
const char *hs_dir,