diff options
author | David Goulet <dgoulet@ev0ke.net> | 2015-02-24 16:17:14 -0500 |
---|---|---|
committer | David Goulet <dgoulet@ev0ke.net> | 2015-04-21 14:15:02 -0400 |
commit | 7db58445fd00d5bbad72fd80497d20b7bc9a0297 (patch) | |
tree | 6cfb5f909e1ece90915ca9f10d3b869b2943df05 /src/or/control.h | |
parent | 084be23697e14b9ee26b3ac1eef2448af6368d10 (diff) | |
download | tor-7db58445fd00d5bbad72fd80497d20b7bc9a0297.tar.gz tor-7db58445fd00d5bbad72fd80497d20b7bc9a0297.zip |
Control: add HS_DESC_CONTENT event
As defined in section 4.1.26 in the control-spec.txt, this new event replies
the content of a successfully fetched HS descriptor. This also adds a unit
test for the controller event.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Diffstat (limited to 'src/or/control.h')
-rw-r--r-- | src/or/control.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/control.h b/src/or/control.h index dbb80b1f20..ae49284965 100644 --- a/src/or/control.h +++ b/src/or/control.h @@ -115,6 +115,10 @@ void control_event_hs_descriptor_received(const rend_data_t *rend_query, void control_event_hs_descriptor_failed(const rend_data_t *rend_query, 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, + const char *content); void control_free_all(void); @@ -158,7 +162,8 @@ void control_free_all(void); #define EVENT_CIRC_BANDWIDTH_USED 0x001D #define EVENT_TRANSPORT_LAUNCHED 0x0020 #define EVENT_HS_DESC 0x0021 -#define EVENT_MAX_ 0x0021 +#define EVENT_HS_DESC_CONTENT 0x0022 +#define EVENT_MAX_ 0x0022 /* sizeof(control_connection_t.event_mask) in bits, currently a uint64_t */ #define EVENT_CAPACITY_ 0x0040 |