diff options
author | Alexander Færøy <ahf@torproject.org> | 2018-12-20 03:55:02 +0100 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2018-12-20 03:55:02 +0100 |
commit | 4efe4cc2f918ce45075b010d2cdc09ec7791ac6b (patch) | |
tree | cde7a4670aa361d00aa3a6c251ed19b572d018d5 /src/feature/control/control.h | |
parent | 426c52b377057dc5f4428c664ee56ca77d648c9e (diff) | |
download | tor-4efe4cc2f918ce45075b010d2cdc09ec7791ac6b.tar.gz tor-4efe4cc2f918ce45075b010d2cdc09ec7791ac6b.zip |
Add support for STATUS messages from Pluggable Transports.
This patch adds support for the new STATUS message that PT's can emit
from their standard out. The STATUS message uses the `config_line_t` K/V
format that was recently added in Tor.
See: https://bugs.torproject.org/28846
Diffstat (limited to 'src/feature/control/control.h')
-rw-r--r-- | src/feature/control/control.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/feature/control/control.h b/src/feature/control/control.h index b3a2707672..d78ce4d87c 100644 --- a/src/feature/control/control.h +++ b/src/feature/control/control.h @@ -208,6 +208,7 @@ void control_event_transport_launched(const char *mode, const char *transport_name, tor_addr_t *addr, uint16_t port); void control_event_pt_log(const char *log); +void control_event_pt_status(const char *status); const char *rend_auth_type_to_string(rend_auth_type_t auth_type); MOCK_DECL(const char *, node_describe_longname_by_id,(const char *id_digest)); void control_event_hs_descriptor_requested(const char *onion_address, @@ -297,7 +298,8 @@ void control_free_all(void); #define EVENT_HS_DESC_CONTENT 0x0022 #define EVENT_NETWORK_LIVENESS 0x0023 #define EVENT_PT_LOG 0x0024 -#define EVENT_MAX_ 0x0024 +#define EVENT_PT_STATUS 0x0025 +#define EVENT_MAX_ 0x0025 /* sizeof(control_connection_t.event_mask) in bits, currently a uint64_t */ #define EVENT_CAPACITY_ 0x0040 |