simon-git: putty (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Feb 9 21:20:14 GMT 2026
TL;DR:
f4a99c58 Move Telnet proxy command formatting into utils.
503d6139 New feature: a pre-connection command hook.
Repository: https://git.tartarus.org/simon/putty.git
On the web: https://git.tartarus.org/?p=simon/putty.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2026-02-09 21:20:14
commit f4a99c58a162094501219232a1d1b53edc75d48a
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=f4a99c58a162094501219232a1d1b53edc75d48a;hp=5b6e89cb66d9c8f74bcc741b304cc5206699d4f6
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Feb 8 15:22:17 2026 +0000
Move Telnet proxy command formatting into utils.
The 'utils' version of the function takes the format string as a
parameter rather than extracting it from CONF_proxy_telnet_command, so
that it can be reused to format things not kept in that slot.
misc.h | 10 ++
proxy/proxy.h | 6 +-
proxy/telnet.c | 173 +-----------------------------
utils/CMakeLists.txt | 1 +
utils/format_connection_setup_command.c | 184 ++++++++++++++++++++++++++++++++
5 files changed, 201 insertions(+), 173 deletions(-)
commit 503d6139d5e1a7c727343e7c06c39778f18dfb25
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=503d6139d5e1a7c727343e7c06c39778f18dfb25;hp=f4a99c58a162094501219232a1d1b53edc75d48a
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Jan 10 09:25:18 2026 +0000
New feature: a pre-connection command hook.
Patch due to Jonathan Senkerik. This adds a new config feature to spawn
a subprocess, on both of Windows and Unix, just before making the main
outgoing network connection of the session. The idea is that you'd use
it to run a tool that temporarily opens the network port you plan to
connect to, such as a port knocker or similar.
The subprocess is run synchronously: PuTTY waits for it to terminate
before continuing with the session. Its output and exit status are
logged in the Event Log, although if it fails, PuTTY will proceed with
the connection attempt anyway. (You could imagine that a port knocker
might leave the port open for long enough that a second connection
shortly afterwards might succeed even if the knock command failed for
some reason.)
cmdline.c | 5 ++
conf.h | 5 ++
config.c | 6 ++
doc/config.but | 22 +++++++
doc/index.but | 4 ++
misc.h | 4 ++
otherbackends/raw.c | 5 ++
otherbackends/rlogin.c | 5 ++
otherbackends/supdup.c | 5 ++
otherbackends/telnet.c | 5 ++
ssh/ssh.c | 5 ++
unix/CMakeLists.txt | 1 +
unix/utils/command_hook.c | 130 ++++++++++++++++++++++++++++++++++++++++
windows/CMakeLists.txt | 1 +
windows/help.h | 1 +
windows/utils/command_hook.c | 140 +++++++++++++++++++++++++++++++++++++++++++
16 files changed, 344 insertions(+)
More information about the tartarus-commits
mailing list