summaryrefslogtreecommitdiff
path: root/src/feature/client/transports.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2018-12-20 02:10:42 +0100
committerAlexander Færøy <ahf@torproject.org>2018-12-20 03:41:28 +0100
commit426c52b377057dc5f4428c664ee56ca77d648c9e (patch)
treea222bd78e1f148adb8f52117dc38bc7c0ecb3367 /src/feature/client/transports.h
parented0bc85ed0ac765c91def249afa1390bd03cfe85 (diff)
downloadtor-426c52b377057dc5f4428c664ee56ca77d648c9e.tar.gz
tor-426c52b377057dc5f4428c664ee56ca77d648c9e.zip
Use K/V parser to handle LOG messages for pluggable transports.
This patch changes the LOG pluggable transport message to use the recent K/V parser that landed in Tor. This allows PT's to specify the log severity level as well as the message. A mapping between the PT log severity levels and Tor's log serverity level is provided. See: https://bugs.torproject.org/28846
Diffstat (limited to 'src/feature/client/transports.h')
-rw-r--r--src/feature/client/transports.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/client/transports.h b/src/feature/client/transports.h
index a3994a0099..b8d1bb0081 100644
--- a/src/feature/client/transports.h
+++ b/src/feature/client/transports.h
@@ -147,6 +147,8 @@ STATIC void managed_proxy_stdout_callback(process_t *, const char *, size_t);
STATIC void managed_proxy_stderr_callback(process_t *, const char *, size_t);
STATIC bool managed_proxy_exit_callback(process_t *, process_exit_code_t);
+STATIC int managed_proxy_severity_parse(const char *);
+
#endif /* defined(PT_PRIVATE) */
#endif /* !defined(TOR_TRANSPORTS_H) */