summaryrefslogtreecommitdiff
path: root/src/or/control.h
diff options
context:
space:
mode:
authorDonncha O'Cearbhaill <donncha@donncha.is>2015-03-22 13:31:53 +0000
committerNick Mathewson <nickm@torproject.org>2015-05-04 11:41:28 -0400
commit841c4aa71505e9fea877f45223a0b01fade8a754 (patch)
tree1e64da197a2a0a3b57f695ad6dbc70fd374d2483 /src/or/control.h
parent411049d0d44963b8d9ec6f96c8dc62a106d6cc30 (diff)
downloadtor-841c4aa71505e9fea877f45223a0b01fade8a754.tar.gz
tor-841c4aa71505e9fea877f45223a0b01fade8a754.zip
Add "+HSPOST" and related "HS_DESC" event flags to the controller.
"+HSPOST" and the related event changes allow the uploading of HS descriptors via the control port, and more comprehensive event monitoring of HS descriptor upload status.
Diffstat (limited to 'src/or/control.h')
-rw-r--r--src/or/control.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/control.h b/src/or/control.h
index cb0468fa07..644caf8c66 100644
--- a/src/or/control.h
+++ b/src/or/control.h
@@ -106,18 +106,27 @@ MOCK_DECL(const char *, node_describe_longname_by_id,(const char *id_digest));
void control_event_hs_descriptor_requested(const rend_data_t *rend_query,
const char *desc_id_base32,
const char *hs_dir);
+void control_event_hs_descriptor_upload(const char *service_id,
+ const char *desc_id_base32,
+ const char *hs_dir);
void control_event_hs_descriptor_receive_end(const char *action,
const char *onion_address,
rend_auth_type_t auth_type,
const char *id_digest,
const char *reason);
+void control_event_hs_descriptor_upload_end(const char *action,
+ const char *hs_dir,
+ const char *reason);
void control_event_hs_descriptor_received(const char *onion_address,
rend_auth_type_t auth_type,
const char *id_digest);
+void control_event_hs_descriptor_uploaded(const char *hs_dir);
void control_event_hs_descriptor_failed(const char *onion_address,
rend_auth_type_t auth_type,
const char *id_digest,
const char *reason);
+void control_event_hs_descriptor_upload_failed(const char *hs_dir,
+ const char *reason);
void control_event_hs_descriptor_content(const char *onion_address,
const char *desc_id,
const char *hsdir_fp,