1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
putty-source/proxy
Simon Tatham 1cf4f50981 sshproxy.c: remember to call prepare_session().
prepare_session() is the function that takes a Conf in the form it was
loaded from the configuration, and normalises it into the form that
backends can make sense of easily. In particular, if CONF_host
contains something like "user@hostname", this is the place where the
"user@" is stripped off the hostname field and moved into
CONF_username where the backend will expect to find it.

Therefore, you're _always_ supposed to call prepare_session() before
launching a backend from a Conf you (potentially) got from a saved
session. But the SSH proxy code forgot to.

As a result, if you had a saved session with "user@hostname" in the
hostname field, it would work fine to launch that session directly in
PuTTY, but trying to use the same saved session as an SSH proxy would
fail mysteriously after trying to pass "user@hostname" to
getaddrinfo() and getting nothing useful back.

(On Windows, the error message is especially opaque: an invalid string
of that kind generates an error code that we weren't even tranlsating.
And even if we _do_ translate it, it wouldn't be very meaningful,
because the error in question is WSANO_RECOVERY, which FormatMessage
renders as "A non-recoverable error occurred during a database
lookup." I guess the error in question was that Windows couldn't even
figure out how to translate that string into the format of a DNS
request message!)
2022-04-29 16:41:18 +01:00
..
cproxy.c Withdraw support for SHA-512-256 in HTTP Digest. 2021-11-27 11:41:00 +00:00
cproxy.h HTTP proxy: correctly handle multiple auth headers. 2021-12-21 09:36:25 +00:00
http.c HTTP proxy: accept Digest algorithm name as a quoted string. 2022-02-19 12:51:59 +00:00
interactor.c Fix trust status when Interactor returns a seat. 2022-03-12 21:05:07 +00:00
local.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00
nocproxy.c Withdraw support for SHA-512-256 in HTTP Digest. 2021-11-27 11:41:00 +00:00
noproxy.c Pass an Interactor to new_connection(). 2021-10-30 18:19:56 +01:00
nosshproxy.c Pass an Interactor to new_connection(). 2021-10-30 18:19:56 +01:00
pproxy.c Pass an Interactor to platform_new_connection. 2021-12-22 15:24:58 +00:00
proxy.c Proxy system: ability to reconnect to the proxy server. 2022-02-19 12:51:59 +00:00
proxy.h Proxy system: ability to reconnect to the proxy server. 2022-02-19 12:51:59 +00:00
socks4.c Reorganise proxy system into coroutines. 2021-11-19 15:09:17 +00:00
socks5.c proxy_socks5_free: fix inadequate smemclr. 2022-01-29 18:24:31 +00:00
socks.h Pull out SOCKS protocol constants into a header. 2021-11-19 15:09:17 +00:00
sshproxy.c sshproxy.c: remember to call prepare_session(). 2022-04-29 16:41:18 +01:00
telnet.c Richer data type for interactive prompt results. 2021-12-28 18:08:31 +00:00