Simon Tatham [Mon, 4 Feb 2002 13:52:05 +0000 (13:52 +0000)]
Add a general `what ports exist?' question to the FAQ, so that the
next person who asks us whether we have a port for ${random_palmtop}
can be treated with the contempt they deserve.
Simon Tatham [Thu, 17 Jan 2002 12:22:26 +0000 (12:22 +0000)]
Experimental checkin: re-enable support for the static WM_MOUSEWHEEL
even on systems where the version number check thinks we should be
expecting a dynamically registered message number. I have a
suspicion the version check isn't accurate in all circumstances; and
in any case, in a situation like this where Windows might send you
either of two things, it's better to be ready to deal with both than
to try and second-guess which one you'll get.
Simon Tatham [Mon, 14 Jan 2002 12:16:58 +0000 (12:16 +0000)]
Update the FAQ to reflect 0.52 as being a current release rather
than a future prospect. I'm going to move the beta-0-52 tag on this
file, but that won't affect release binaries that have already been
built.
Simon Tatham [Thu, 10 Jan 2002 13:29:43 +0000 (13:29 +0000)]
Extra safety feature to avoid sending SSH2_MSG_WINDOW_ADJUST on
a nonexistent channel. I don't quite know why this was happening,
but whatever it was this ought to fix it.
Simon Tatham [Thu, 10 Jan 2002 13:06:26 +0000 (13:06 +0000)]
Plink's front-end select loop was failing to send error messages to
winnet.c. The result was that complete failures to make an SSH
connection (connection refused, for example) were causing a hang
instead of a proper error report.
Simon Tatham [Tue, 8 Jan 2002 11:57:32 +0000 (11:57 +0000)]
Add the CRC32 compensation attack detector that all other SSH
clients have had for ages and I forgot about. Of course I've got the
version with the buffer overflow fixed!
Simon Tatham [Tue, 8 Jan 2002 09:45:10 +0000 (09:45 +0000)]
Patch from RDB: invent a /DMSVC4 compile-time definition which
renames header files and symbols etc. Now if I could only _find_ my
copy of MSVC4 we might even be able to build Win32s binaries...
Simon Tatham [Mon, 31 Dec 2001 16:15:19 +0000 (16:15 +0000)]
Create the long-awaited console.c, and move the common routines out
of scp.c, psftp.c and plink.c into it. Additionally, add `batch
mode', in which all the interactive prompts (bad host key, log file
exists, insecure cipher, password prompt) are disabled and safe
responses are assumed. (The idea being that if you run PSCP, for
example, in a cron job then you'd probably rather it failed and
exited instead of leaving the cron job wedged while it waits for
user input that will never arrive.)
Simon Tatham [Sun, 30 Dec 2001 16:27:07 +0000 (16:27 +0000)]
I have no brain at all. The SSH1 auth loop was trying all Pageant
keys before _every_ other authentication; so if you tried a local
pubkey _and_ a password, for example, you'd also try Pageant twice.
Now fixed.
Simon Tatham [Sun, 30 Dec 2001 16:20:31 +0000 (16:20 +0000)]
PuTTY can now detect when one of the Pageant keys it tries matches
the private key file given in the config; if it spots this then it
avoids trying it again (and in particular avoids needing to ask for
the passphrase when it knows perfectly well it won't work).
Simon Tatham [Sun, 30 Dec 2001 15:58:17 +0000 (15:58 +0000)]
Pageant is now able to avoid asking for the passphrase when asked to
load a key that is already loaded. This makes command lines such as
`pageant mykey -c mycommand' almost infinitely more useful.
Simon Tatham [Sat, 29 Dec 2001 17:21:26 +0000 (17:21 +0000)]
Add a configurable option to make Return in Telnet send an ordinary
^M instead of the Telnet New Line code. Unix-type telnetds don't
care one way or the other; RDB claims some telnetds prefer Telnet
NL; and now someone has found one that can't deal with Telnet NL and
prefers ^M. Sigh.
Simon Tatham [Sat, 29 Dec 2001 17:00:06 +0000 (17:00 +0000)]
Add a FAQ about keyboard mapping problems: basically explaining that
we really need to know what character sequence you were _expecting_
your function key to generate before we can even think about making
PuTTY generate it.
Simon Tatham [Sat, 29 Dec 2001 15:31:42 +0000 (15:31 +0000)]
Add a new back-end function to return the exit code of the remote
process. This is functional in SSH, and vestigial (just returns 0)
in the other three protocols. Plink's Windows exit code is now
determined by the remote process exit code, which should make it
more usable in scripting applications. Tested in both SSH1 and SSH2.
Simon Tatham [Sat, 29 Dec 2001 14:47:59 +0000 (14:47 +0000)]
Jordan Russell's patch (3rd of several). We now don't call TermOut()
if the PuTTY window has the mouse capture (i.e. a drag-select is in
progress). This means you can drag-select at your leisure without
the screen contents wandering around providing you with a moving
target. Likewise dragging the scrollbar to find a piece of history
in the scrollback.
Simon Tatham [Sat, 29 Dec 2001 14:18:51 +0000 (14:18 +0000)]
Jordan Russell's patch (again): a couple of registry read operations
were using RegCreateKey instead of RegOpenKey by mistake. This also
required a fix in settings.c to deal gracefully with a NULL return
from enum_settings_start() - since the use of RCK had caused this
never to happen, the code path had never been tested.
Simon Tatham [Sat, 29 Dec 2001 14:05:07 +0000 (14:05 +0000)]
Jordan Russell's patch: only process mouse drags when we have the
mouse capture, which in turn will only occur if the initial click
was in the PuTTY client area. Prevents mouse drag events without an
initiating click, and also prevents selection occurring at
unexpected moments such as if you move the mouse before releasing
the second click after double-clicking the title bar to maximise the
window.
Simon Tatham [Sun, 16 Dec 2001 14:56:02 +0000 (14:56 +0000)]
Add two extra appendices giving the licence text and details of how
to give feedback. (I think the latter has suddenly become worthwhile
now we have the ability to distribute a help file; so people won't
have to come to the website for the feedback information.)
Simon Tatham [Sun, 16 Dec 2001 12:11:56 +0000 (12:11 +0000)]
Replace the definition of WHEEL_DELTA which was removed in rev 1.185
[r1499]. For some reason Borland builds were working perfectly OK
without it, but VC builds were failing. *shrug*
Simon Tatham [Sat, 15 Dec 2001 14:30:58 +0000 (14:30 +0000)]
A contributor tells me that WM_MOUSEWHEEL is not supported in Win95,
and offers a patch that uses RegisterMessage() to acquire the
correct dynamic message number to use instead.
Simon Tatham [Sat, 15 Dec 2001 14:09:51 +0000 (14:09 +0000)]
Improvements to the malloc debugging stuff: when MALLOC_LOG is
enabled, so that all mallocs and reallocs are tagged with a file
name and line number, this information is now shown in the `Out of
memory!' panic box.
Simon Tatham [Sat, 15 Dec 2001 12:15:24 +0000 (12:15 +0000)]
Add the remote counterpart for the `local port forwardings accept
connections from outside localhost' switch. Interestingly OpenSSH
3.0 appears to ignore this (though I know it works because ssh.com
3.0 gets it right, and the SSH packet dump agrees that I'm doing the
right thing).
Simon Tatham [Sat, 15 Dec 2001 11:49:48 +0000 (11:49 +0000)]
Reverse part of RDB's pedantic patch from rev 1.129 [r1105]: app
cursor and app keypad modes are now once again independently
switchable. The VT100 and VT102 manuals may have done it RDB's way
as he said, but xterm and rxvt disagree and at least one app depends
on the xterm way. It'll have to become a configurable option if
anyone has trouble with this.
Simon Tatham [Sat, 15 Dec 2001 11:10:19 +0000 (11:10 +0000)]
Jaeyoun Chung's mysterious patch that apparently makes Korean input
work properly: call luni_send() one character at a time rather than
all together after WM_IME_COMPOSITION.
Simon Tatham [Fri, 14 Dec 2001 14:57:50 +0000 (14:57 +0000)]
Retired the #ifdef DUMP_PACKETS stuff in ssh.c because I'm utterly
sick of recompiling to enable packet dumps. SSH packet dumping is
now provided as a logging option, and dumps to putty.log like all
the other logging options. While I'm at it I cleaned up the format
so that packet types are translated into strings for easy browsing.
POSSIBLE SIDE EFFECT: in the course of this work I had to re-enable
the SSH1 packet length checks which it turns out hadn't actually
been active for some time, so it's possible things might break as a
result. If need be I can always disable those checks for the 0.52
release and think about it more carefully later.
Simon Tatham [Thu, 13 Dec 2001 19:26:51 +0000 (19:26 +0000)]
Tidied up PSFTP batch mode. The gross hack using fxp_error_message
to report command failures is now gone; instead each sftp_cmd_*
routine returns 0 or 1 depending on success, like they should have
done right from the start. This fixes problems with `ls' prematurely
terminating PSFTP batch files.
Simon Tatham [Thu, 13 Dec 2001 18:42:34 +0000 (18:42 +0000)]
Allow PSFTP to be run with no arguments, in which case it enters the
command-line state but all commands are disallowed except `open
host.name'. The idea is to provide marginal extra niceness for
people who double-click the icon without realising it's a cmdline app.
Simon Tatham [Wed, 12 Dec 2001 18:45:56 +0000 (18:45 +0000)]
Updated the PuTTYgen section in pubkey.but so that it gives
individual documentation of the various PuTTYgen controls; also
implemented context help in PuTTYgen to go with it. Shame there
isn't space for a generic `Help' button in the PuTTYgen window.
Simon Tatham [Tue, 11 Dec 2001 21:00:01 +0000 (21:00 +0000)]
Disable username switching between SSH2 auth attempts, and add a
configurable option so users can re-enable the feature _if_ they
know they have an SSH2 server that isn't going to get shirty about
it. Inspired by a spectacular increase in OpenSSH's shirtiness.
Simon Tatham [Tue, 11 Dec 2001 18:48:29 +0000 (18:48 +0000)]
Add help support to Pageant. (For the primary - non-context - help,
we just invoke the same help file and jump to the Pageant chapter.
It would be nice to be able to bring up the contents box with the
Pageant chapter expanded, but I don't think WinHelp() allows us to
request this.)
Simon Tatham [Tue, 11 Dec 2001 18:47:55 +0000 (18:47 +0000)]
Fixes to full-screen mode. There were various problems when you went
full-screen, then selected Change Settings and then changed the
resize behaviour, ranging from the window staying FS but acquiring
borders to the window restoring its previous size and _failing_ to
acquire borders. Should now all be fixed.
Simon Tatham [Mon, 10 Dec 2001 18:12:51 +0000 (18:12 +0000)]
Apparently sending DISCONNECT on a normal SSH2 connection close is
actually _less_ polite than just closing the connection, rather than
more polite as I'd believed. So we now just close.
Simon Tatham [Mon, 10 Dec 2001 17:40:14 +0000 (17:40 +0000)]
Andrew Francis's Pageant updates: you can now multi-select key files
to add and keys to remove (in the open-file dialog and the key list
box respectively), and passphrases are cached during the process of
adding several keys at once (in case two of the keys have the same
passphrase).
Simon Tatham [Fri, 7 Dec 2001 21:21:03 +0000 (21:21 +0000)]
FIFTH ATTEMPT at getting full-screen mode right. This new attempt
(which I'll comment at some stage) should combine the believable
semantics of RDB's fullscreen-by-maximise mode with the multi-
monitor friendliness of Wez Furlong's approach while also working on
Win98. If we're lucky.
Simon Tatham [Thu, 6 Dec 2001 20:05:39 +0000 (20:05 +0000)]
Documentation: filled the last few gaps and cleaned a few things up.
PuTTY now has a complete manual. Stylistic review, content review
and indexing are yet to do, but at least there's some plausible text
in every section now.
Simon Tatham [Thu, 29 Nov 2001 21:30:59 +0000 (21:30 +0000)]
Set up kbd_codepage at the start of the program, as well as when the
input locale changes. With any luck this should sort out the Polish
Unicode problems.
Simon Tatham [Sun, 25 Nov 2001 19:22:47 +0000 (19:22 +0000)]
Further documentation work. Tidy up the Config chapter (add a few
new features - the code had got ahead of the docs), and propagate a
couple of cross-references to other files as a result.
Simon Tatham [Sun, 25 Nov 2001 18:59:12 +0000 (18:59 +0000)]
Add a new chapter full of intermediate-useful-things, somewhere
between `Getting Started' (things we can barely believe you don't
know) and the Configuration reference chapter (things you already
knew and had just forgotten). Only half-written at the moment.
Simon Tatham [Sun, 25 Nov 2001 18:39:57 +0000 (18:39 +0000)]
RDB's general resizing cleanup. He's put his favourite resize mode
back in again, but as long as it's not the default it doesn't bother
me too much :-)
Simon Tatham [Sun, 25 Nov 2001 17:32:39 +0000 (17:32 +0000)]
Editorial policy change: I've decided that it's better to use \q
than \e when describing button names and menu items: the "Foo"
button rather than the _Foo_ button. Certainly consistent use of
either is better than the mixed use of both we had before :-)
Simon Tatham [Sun, 25 Nov 2001 16:57:45 +0000 (16:57 +0000)]
Miscellaneous documentation updates. Finished a first draft of the
Pageant chapter; wrote something about passphrase lengths; added
\versionid to all chapters that didn't have it yet.
Simon Tatham [Sun, 25 Nov 2001 15:21:25 +0000 (15:21 +0000)]
Add support for most of the ESC[<low number>t sequences, which xterm
uses to manipulate the window (minimise, maximise, front, back,
move, resize) and report things about the window (is it minimised or
maximised, how big is it, what's its title). Missing are ESC[4;X;Yt
(resize to a specified pixel size; our resize code doesn't like it)
and ESC[19;X;Yt (report size of _screen_ in _characters_, which it
isn't even obvious how to do when you've got a variable font size).
Simon Tatham [Sun, 25 Nov 2001 14:31:46 +0000 (14:31 +0000)]
INCOMPATIBLE CHANGE to the SSH2 private key file format. There is
now a passphrase-keyed MAC covering _all_ important data in the
file, including the public blob and the key comment. Should
conclusively scupper any attacks based on nobbling the key file in
an attempt to sucker the machine that decrypts it. MACing the
comment field also protects against a key-substitution attack (if
someone's worked out a way past our DSA protections and can extract
the private key from a signature, swapping key files and
substituting comments might just enable them to get the signature
they need to do this. Paranoid, but might as well).
Simon Tatham [Sun, 25 Nov 2001 11:36:49 +0000 (11:36 +0000)]
Rob Wood's patch to provide standard -L and -R options for port
forwarding in Plink. Cleaned up a bit to remove segfaults and work
correctly with saved sessions.
Simon Tatham [Sun, 25 Nov 2001 10:24:29 +0000 (10:24 +0000)]
Jacob's patch to make full-screen mode available even when Alt-Enter
isn't configured to do it: we now have a sysmenu option for it. In
addition, there's a special case such that clicking the top left
pixel on the screen in full-screen mode brings up the sysmenu (so
you can still get at the sysmenu in FS mode without Alt-anything
configured to bring it up and without ghastly fiddling with the
Windows key). Also Change Settings while in full-screen mode now
adds/removes the scrollbar in response to scrollbar_in_fullscreen
rather than scrollbar (oops).
Simon Tatham [Sat, 24 Nov 2001 17:51:26 +0000 (17:51 +0000)]
Make use of the new section-relabelling in Buttress to arrange for
all the FAQ questions to be cross-referenced as `question A.1.2'
instead of `section A.1.2'.