]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/uxproxy.c
Log the setup of proxied network connections.
authorSimon Tatham <anakin@pobox.com>
Sun, 22 Nov 2015 12:15:52 +0000 (12:15 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 22 Nov 2015 15:11:00 +0000 (15:11 +0000)
commit3d4d4004e83f19310d90e6341dbf363a47382ec2
tree809c834d99bf757aa38d83adbbcc2a39be3512a1
parenta6e76ae453e51e0ed86831e9cb1b883f3c443b2a
Log the setup of proxied network connections.

I've defined a new value for the 'int type' parameter passed to
plug_log(), which proxy sockets will use to pass their backend
information on how the setup of their proxied connections are going.
I've implemented support for the new type code in all _nontrivial_
plug log functions (which, conveniently, are precisely the ones I just
refactored into backend_socket_log); the ones which just throw all
their log data away anyway will do that to the new code as well.

We use the new type code to log the DNS lookup and connection setup
for connecting to a networked proxy, and also to log the exact command
string sent down Telnet proxy connections (so the user can easily
debug mistakes in the configured format string) and the exact command
executed when spawning a local proxy process. (The latter was already
supported on Windows by a bodgy logging call taking advantage of
Windows in particular having no front end pointer; I've converted that
into a sensible use of the new plug_log facility, and done the same
thing on Unix.)
be_misc.c
network.h
proxy.c
unix/uxproxy.c
windows/winproxy.c