aboutsummaryrefslogtreecommitdiff
path: root/src/feature/client/transports.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2024-06-18 15:19:12 -0400
committerDavid Goulet <dgoulet@torproject.org>2024-06-18 15:19:12 -0400
commitf32b39236da40571955702bf95ac9925833af18f (patch)
tree3ac3d4d5117016fdda4cd87d8fe08d0be3c89d19 /src/feature/client/transports.h
parent43b8689ac74f24fee590eef2ff0e355323c2556d (diff)
parentd587ba01a70b81e8c15f6e53e72c133ebe977719 (diff)
downloadtor-f32b39236da40571955702bf95ac9925833af18f.tar.gz
tor-f32b39236da40571955702bf95ac9925833af18f.zip
Merge branch 'maint-0.4.8' into release-0.4.8
Diffstat (limited to 'src/feature/client/transports.h')
-rw-r--r--src/feature/client/transports.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/feature/client/transports.h b/src/feature/client/transports.h
index 535689537c..71e7feea37 100644
--- a/src/feature/client/transports.h
+++ b/src/feature/client/transports.h
@@ -114,11 +114,19 @@ typedef struct {
/* transports to-be-launched by this proxy */
smartlist_t *transports_to_launch;
+ /** Version as set by STATUS TYPE=version messages. */
+ char *version;
+
+ /** Implementation as set by the STATUS TYPE=version messages. */
+ char *implementation;
+
/* The 'transports' list contains all the transports this proxy has
launched. */
smartlist_t *transports;
} managed_proxy_t;
+struct config_line_t;
+
STATIC transport_t *transport_new(const tor_addr_t *addr, uint16_t port,
const char *name, int socks_ver,
const char *extra_info_args);
@@ -131,6 +139,8 @@ STATIC void parse_proxy_error(const char *line);
STATIC void handle_proxy_line(const char *line, managed_proxy_t *mp);
STATIC void parse_log_line(const char *line, managed_proxy_t *mp);
STATIC void parse_status_line(const char *line, managed_proxy_t *mp);
+STATIC void handle_status_message(const struct config_line_t *values,
+ managed_proxy_t *mp);
STATIC char *get_transport_options_for_server_proxy(const managed_proxy_t *mp);
STATIC void managed_proxy_destroy(managed_proxy_t *mp,