u/mdw/putty
22 years agoRobert de Bath's asynchronous-connect patch. Helps a lot in port
simon [Fri, 7 Sep 2001 22:39:01 +0000 (22:39 +0000)]
Robert de Bath's asynchronous-connect patch. Helps a lot in port
forwarding; improves Event Log; and causes the PuTTY window to
appear earlier in the setup process.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1239 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix gratuitous assertion failure in Plink (ssh1_throttle_count was
simon [Fri, 7 Sep 2001 22:04:44 +0000 (22:04 +0000)]
Fix gratuitous assertion failure in Plink (ssh1_throttle_count was
being decremented far too many times).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1238 cda61777-01e9-0310-a592-d414129be87e

22 years agoRobert de Bath's `Patch.a_alt_key': clean up the handling of
simon [Fri, 7 Sep 2001 21:39:03 +0000 (21:39 +0000)]
Robert de Bath's `Patch.a_alt_key': clean up the handling of
Alt-Space, Alt-only and the System menu. It lets Windows do more of
the work, and also saves a static variable, so it must be good :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1237 cda61777-01e9-0310-a592-d414129be87e

22 years agoUse WM_SETREDRAW to disable incremental updates while the config box
simon [Fri, 7 Sep 2001 21:07:15 +0000 (21:07 +0000)]
Use WM_SETREDRAW to disable incremental updates while the config box
is switching panels. Speeds things up hugely on slow systems.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1236 cda61777-01e9-0310-a592-d414129be87e

22 years agoJacob's patch to cause Shift to return to copy-and-paste when xterm
simon [Fri, 7 Sep 2001 20:35:38 +0000 (20:35 +0000)]
Jacob's patch to cause Shift to return to copy-and-paste when xterm
mouse tracking is enabled. (This can be turned off if your app
really wants Shift+mouse, but it defaults to on for general
usefulness.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1235 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops, fix that fix. TranslateKey can return <0 and it needs to be
simon [Fri, 7 Sep 2001 20:32:33 +0000 (20:32 +0000)]
Oops, fix that fix. TranslateKey can return <0 and it needs to be
dealt with. I don't recall being told that; I should comment it at
some stage.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1234 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix mouse hiding on keypresses, which was failing due to the Unicode
simon [Fri, 7 Sep 2001 20:18:55 +0000 (20:18 +0000)]
Fix mouse hiding on keypresses, which was failing due to the Unicode
patch having done something bizarre to the semantics of TranslateKey.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1233 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix the intermittent fault in the socket layer that was occasionally
simon [Wed, 5 Sep 2001 22:04:19 +0000 (22:04 +0000)]
Fix the intermittent fault in the socket layer that was occasionally
bombing out X forwarding. It turns out to be a workaround for YET
ANOTHER useless WinSock implementation. Arrgh!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1232 cda61777-01e9-0310-a592-d414129be87e

22 years agoSwap round the contents of the Translation panel. The codepage box
simon [Wed, 5 Sep 2001 21:02:27 +0000 (21:02 +0000)]
Swap round the contents of the Translation panel. The codepage box
should be at the top because it's by _far_ the most important.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1231 cda61777-01e9-0310-a592-d414129be87e

22 years agoUnicode cleanup phase 2: we now reintroduce the ability to enter a
simon [Wed, 5 Sep 2001 21:01:04 +0000 (21:01 +0000)]
Unicode cleanup phase 2: we now reintroduce the ability to enter a
numeric code page, and also reinstate the direct-to-font zero
translation mode (but now under an actual _name_ rather than blank).
Also add CP437 to the list since at least one expatriate DOS user
wanted it; also select a sensible ISO or KOI codepage based on the
system locale.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1230 cda61777-01e9-0310-a592-d414129be87e

22 years agoBetter yet, look for sftp-server on the user's PATH as well, which
simon [Wed, 5 Sep 2001 19:58:25 +0000 (19:58 +0000)]
Better yet, look for sftp-server on the user's PATH as well, which
allows individual users with shell access to install it without
reference to the admin.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1229 cda61777-01e9-0310-a592-d414129be87e

22 years agoPSFTP will now attempt to find /usr/[local]/lib/sftp-server if it
simon [Wed, 5 Sep 2001 19:48:52 +0000 (19:48 +0000)]
PSFTP will now attempt to find /usr/[local]/lib/sftp-server if it
can't start the sftp subsystem. This should enable convenient sftp
access to SSH1-only systems: all the admin needs is to install
sftp-server in the right place.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1228 cda61777-01e9-0310-a592-d414129be87e

22 years agoWhen pscp in SFTP mode does client-side matching of a server-side
simon [Wed, 5 Sep 2001 19:33:12 +0000 (19:33 +0000)]
When pscp in SFTP mode does client-side matching of a server-side
wildcard, it's polite to let the user know if the wildcard didn't
match any file names.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1227 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix segfault (should free act.buf not act.name, because the latter
simon [Wed, 29 Aug 2001 08:56:26 +0000 (08:56 +0000)]
Fix segfault (should free act.buf not act.name, because the latter
might not point at the start of the former). Cheers Minefield :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1224 cda61777-01e9-0310-a592-d414129be87e

22 years agostripslashes() should have been dealing with colons as well. I don't
simon [Tue, 28 Aug 2001 12:26:16 +0000 (12:26 +0000)]
stripslashes() should have been dealing with colons as well. I don't
_think_ there was an exploit (even if the server sends "c:foobar",
the client will not attempt to create "c:foobar"; instead it will
try to create ".\c:foobar" which will fail), but it's as well to be
sure.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1223 cda61777-01e9-0310-a592-d414129be87e

22 years agoSemantic fix in the X11 `authentication failed' error packet
simon [Tue, 28 Aug 2001 12:24:50 +0000 (12:24 +0000)]
Semantic fix in the X11 `authentication failed' error packet
construction. Doesn't actually affect anything right now, since the
bug was a failure to round a length up to the next multiple of 4 and
it so happens that our current message was exactly 40 bytes anyway
:-) But if we start giving a wider variety of messages one day then
it might be handy to be able to do them without gratuitous crashes.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1222 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd documentation of the new PSCP `-unsafe' option and the
simon [Tue, 28 Aug 2001 09:53:51 +0000 (09:53 +0000)]
Add documentation of the new PSCP `-unsafe' option and the
associated warning message.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1221 cda61777-01e9-0310-a592-d414129be87e

22 years agoD'oh! Putting keyboard-interactive authentication _before_ publickey
simon [Tue, 28 Aug 2001 08:43:33 +0000 (08:43 +0000)]
D'oh! Putting keyboard-interactive authentication _before_ publickey
causes password login to occur on a server that supports password-
through-k-i. Of course when we use the new preference list mechanism
for selecting the order of authentications this will all become much
more sane, but for the moment I've put publickey back up to the top
and things seem to be happier.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1220 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix externally added SSH1 keys in Pageant. I have no idea how this
simon [Tue, 28 Aug 2001 08:36:27 +0000 (08:36 +0000)]
Fix externally added SSH1 keys in Pageant. I have no idea how this
code _ever_ worked before! But it's been like this for four months
and nobody has noticed, including me. That's quite spooky.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1219 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix various small compiler warnings, mostly unused local variables
simon [Tue, 28 Aug 2001 08:08:43 +0000 (08:08 +0000)]
Fix various small compiler warnings, mostly unused local variables

git-svn-id: svn://svn.tartarus.org/sgt/putty@1218 cda61777-01e9-0310-a592-d414129be87e

22 years agoPuTTYgen: add an extra button to save a public key into a file
simon [Mon, 27 Aug 2001 17:40:03 +0000 (17:40 +0000)]
PuTTYgen: add an extra button to save a public key into a file
(as well as showing it for cut and paste). For SSH1, this feature is
largely cosmetic and added for orthogonality; it comes into its own
in SSH2, where it saves the Official One True Public Key Format as
specified in the draft spec, and more particularly as used by
ssh.com's product for authentication. Now that ssh-3.0.1 supports
RSA user keys, this is suddenly actually useful.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1217 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix handling of SSH2_MSG_CHANNEL_CLOSE, which was breaking in port
simon [Mon, 27 Aug 2001 16:58:47 +0000 (16:58 +0000)]
Fix handling of SSH2_MSG_CHANNEL_CLOSE, which was breaking in port
forwarding talking to ssh.com's ssh-3.0.1.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1216 cda61777-01e9-0310-a592-d414129be87e

22 years agoPort forwarding update: local-host-only listening sockets are now
simon [Mon, 27 Aug 2001 15:59:37 +0000 (15:59 +0000)]
Port forwarding update: local-host-only listening sockets are now
done properly (by binding to INADDR_LOOPBACK) instead of hackishly
(by binding to INADDR_ANY, looking at the peer address when a
connection is accepted, and slamming the connection shut at that
point).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1215 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd a couple of missing return values
simon [Mon, 27 Aug 2001 15:55:44 +0000 (15:55 +0000)]
Add a couple of missing return values

git-svn-id: svn://svn.tartarus.org/sgt/putty@1214 cda61777-01e9-0310-a592-d414129be87e

22 years agoPort forwarding bug fix: we were unable to handle receiving
simon [Mon, 27 Aug 2001 15:13:14 +0000 (15:13 +0000)]
Port forwarding bug fix: we were unable to handle receiving
CHANNEL_OPEN_FAILURE messages, which occur when the remote side is
unable to open a forwarded network connection we have requested. (It
seems they _don't_ show up if you get something mundane like
Connection Refused - the channel is cheerfully opened and
immediately slammed shut - but they do if you try to connect to a
host that doesn't even exist. Try forwarding a port to
frogwibbler:4800 and see what you get.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1213 cda61777-01e9-0310-a592-d414129be87e

22 years agoFinally tighten up the server-side wildcard security hole, the
simon [Mon, 27 Aug 2001 15:02:52 +0000 (15:02 +0000)]
Finally tighten up the server-side wildcard security hole, the
_right_ way. (SSWs are disabled by default and can be re-enabled
using `-unsafe', meaning that pscp will _never_ do anything
unexpected to your local file system unless you explicitly give
consent. The sftp-based variant will work fine because the
corresponding mechanism is _not_ unsafe.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1212 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix tiny bug in new sftp-mode wildcards: when there wasn't a leading
simon [Mon, 27 Aug 2001 14:51:31 +0000 (14:51 +0000)]
Fix tiny bug in new sftp-mode wildcards: when there wasn't a leading
path component (just `host:*' rather than `host:directory/*') there
was trouble.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1211 cda61777-01e9-0310-a592-d414129be87e

22 years agoMinor modification: in remote->local non-recursive mode matching a
simon [Mon, 27 Aug 2001 10:24:55 +0000 (10:24 +0000)]
Minor modification: in remote->local non-recursive mode matching a
wildcard, we don't abandon ship completely if the wildcard matches a
directory; we just warn and carry on with the rest.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1210 cda61777-01e9-0310-a592-d414129be87e

22 years agoImplemented a simple wildcard matching engine, and used it to
simon [Mon, 27 Aug 2001 10:17:41 +0000 (10:17 +0000)]
Implemented a simple wildcard matching engine, and used it to
restore remote wildcard capability in sftp-style PSCP.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1209 cda61777-01e9-0310-a592-d414129be87e

22 years agoPSCP now uses the modern SFTP protocol if it can, and falls back to
simon [Sun, 26 Aug 2001 18:32:28 +0000 (18:32 +0000)]
PSCP now uses the modern SFTP protocol if it can, and falls back to
scp1 if it can't. Currently not very tested - I checked it in as
soon as it completed a successful recursive copy in both directions.
Also, one known bug: you can't specify a remote wildcard, because by
the nature of SFTP we'll need to implement the wildcard engine on
the client side. I do intend to do this (and use the same wildcard
engine in PSFTP as well) but I haven't got round to it yet.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1208 cda61777-01e9-0310-a592-d414129be87e

22 years agoArrgh; yet again I make my security checking too draconian to
simon [Sun, 26 Aug 2001 15:45:55 +0000 (15:45 +0000)]
Arrgh; yet again I make my security checking too draconian to
actually get things done. I'm sure this is the second time I've
checked in this mistake :-/ Still, this time I've got right to the
bottom of the cause, and commented it clearly. Phew.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1207 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops. ^X^S comes _before_ `cvs commit'. Two more diagnostics gone :-)
simon [Sun, 26 Aug 2001 15:32:51 +0000 (15:32 +0000)]
Oops. ^X^S comes _before_ `cvs commit'. Two more diagnostics gone :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1206 cda61777-01e9-0310-a592-d414129be87e

22 years agoFurther tightening up in PSCP. Fixed a couple more holes whereby a
simon [Sun, 26 Aug 2001 15:31:29 +0000 (15:31 +0000)]
Further tightening up in PSCP. Fixed a couple more holes whereby a
malicious SCP server could have written to areas other than the ones
the user requested; cleared up buffer overruns everywhere. Hopefully
we now do not use arbitrary buffer limits _anywhere_.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1205 cda61777-01e9-0310-a592-d414129be87e

22 years agoPreparatory work for allowing PSCP to work over SFTP as well as old-
simon [Sun, 26 Aug 2001 14:53:51 +0000 (14:53 +0000)]
Preparatory work for allowing PSCP to work over SFTP as well as old-
style scp1. I've built a layer of abstraction covering all the gory
details of the old scp network protocol.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1204 cda61777-01e9-0310-a592-d414129be87e

22 years agoMore upgrades to psftp: it now supports mv, chmod, reget and reput.
simon [Sun, 26 Aug 2001 11:35:11 +0000 (11:35 +0000)]
More upgrades to psftp: it now supports mv, chmod, reget and reput.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1203 cda61777-01e9-0310-a592-d414129be87e

22 years agoD'oh, remove two rogue diagnostics
simon [Sun, 26 Aug 2001 10:01:45 +0000 (10:01 +0000)]
D'oh, remove two rogue diagnostics

git-svn-id: svn://svn.tartarus.org/sgt/putty@1202 cda61777-01e9-0310-a592-d414129be87e

22 years agoRemove gratuitous FIXME entries in cipher list. Oops, didn't mean to
simon [Sat, 25 Aug 2001 20:02:02 +0000 (20:02 +0000)]
Remove gratuitous FIXME entries in cipher list. Oops, didn't mean to
check those in :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1201 cda61777-01e9-0310-a592-d414129be87e

22 years agoFiddle with the registry format so that backwards compatibility is
simon [Sat, 25 Aug 2001 20:01:36 +0000 (20:01 +0000)]
Fiddle with the registry format so that backwards compatibility is
natural and defaults are sensible.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1200 cda61777-01e9-0310-a592-d414129be87e

22 years agoJacob's patch for a drag-list to select SSH ciphers. Heavily hacked
simon [Sat, 25 Aug 2001 19:33:33 +0000 (19:33 +0000)]
Jacob's patch for a drag-list to select SSH ciphers. Heavily hacked
by me to make the drag list behaviour slightly more intuitive.
WARNING: DO NOT LOOK AT pl_itemfrompt() IF YOU ARE SQUEAMISH.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1199 cda61777-01e9-0310-a592-d414129be87e

22 years agoExtensive changes that _should_ fix the socket buffering problems,
simon [Sat, 25 Aug 2001 17:09:23 +0000 (17:09 +0000)]
Extensive changes that _should_ fix the socket buffering problems,
by ceasing to listen on input channels if the corresponding output
channel isn't accepting data. Has had basic check-I-didn't-actually-
break-anything-too-badly testing, but hasn't been genuinely tested
in stress conditions (because concocting stress conditions is non-
trivial).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1198 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - fix that fix :-/
simon [Wed, 22 Aug 2001 20:23:49 +0000 (20:23 +0000)]
Oops - fix that fix :-/

git-svn-id: svn://svn.tartarus.org/sgt/putty@1197 cda61777-01e9-0310-a592-d414129be87e

22 years agoWording change: make it explicit that you can enter an IP address as
simon [Wed, 22 Aug 2001 19:56:41 +0000 (19:56 +0000)]
Wording change: make it explicit that you can enter an IP address as
well as a hostname.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1196 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix to allow more than one challenge/response pair during
simon [Wed, 22 Aug 2001 19:47:05 +0000 (19:47 +0000)]
Fix to allow more than one challenge/response pair during
keyboard-interactive authentication. UNTESTED except that I checked
it compiles. Will ask for testing from the user who complained.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1195 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd a comment about Dragon NaturallySpeaking: it apparently requires
simon [Thu, 16 Aug 2001 11:09:25 +0000 (11:09 +0000)]
Add a comment about Dragon NaturallySpeaking: it apparently requires
Alt+Space to work the Windows way.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1188 cda61777-01e9-0310-a592-d414129be87e

22 years agoDocument /DNO_SECURITY compile option.
jacob [Wed, 15 Aug 2001 19:47:00 +0000 (19:47 +0000)]
Document /DNO_SECURITY compile option.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1187 cda61777-01e9-0310-a592-d414129be87e

22 years agoUpdated Makefile.cyg for Glenn Maynard's IME patch.
jacob [Wed, 15 Aug 2001 19:41:14 +0000 (19:41 +0000)]
Updated Makefile.cyg for Glenn Maynard's IME patch.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1186 cda61777-01e9-0310-a592-d414129be87e

22 years agoTrivial port forwarding fixes from Jacob
simon [Wed, 15 Aug 2001 18:23:50 +0000 (18:23 +0000)]
Trivial port forwarding fixes from Jacob

git-svn-id: svn://svn.tartarus.org/sgt/putty@1185 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix potential segfault in port forwarding code
simon [Mon, 13 Aug 2001 12:43:29 +0000 (12:43 +0000)]
Fix potential segfault in port forwarding code

git-svn-id: svn://svn.tartarus.org/sgt/putty@1184 cda61777-01e9-0310-a592-d414129be87e

22 years agoFirst phase of Unicode polishing: replace the edit box with a combo
simon [Sun, 12 Aug 2001 19:25:21 +0000 (19:25 +0000)]
First phase of Unicode polishing: replace the edit box with a combo
box. Also default to ISO8859-1 so that CSI works in the default
mode; this is ridiculously Western-centric but I can't honestly
think of a better option.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1183 cda61777-01e9-0310-a592-d414129be87e

22 years agoStop yelling about Access Denied if the server refuses even to
simon [Thu, 9 Aug 2001 21:22:38 +0000 (21:22 +0000)]
Stop yelling about Access Denied if the server refuses even to
attempt keyboard-interactive authentication. We can yell about it if
we make a creditable attempt and are rejected, but if the server
just refuses to even consider it then the user won't really want to
know (and if they do there's the Event Log).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1180 cda61777-01e9-0310-a592-d414129be87e

22 years agoPort forwarding now works in SSH 2 as well as SSH 1.
simon [Thu, 9 Aug 2001 21:17:05 +0000 (21:17 +0000)]
Port forwarding now works in SSH 2 as well as SSH 1.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1179 cda61777-01e9-0310-a592-d414129be87e

22 years agoKeyboard-interactive authentication, thanks to Paul Sokolovsky.
simon [Thu, 9 Aug 2001 20:13:17 +0000 (20:13 +0000)]
Keyboard-interactive authentication, thanks to Paul Sokolovsky.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1178 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - actually check in portfwd.c itself! (Makefile also modified
simon [Wed, 8 Aug 2001 20:53:27 +0000 (20:53 +0000)]
Oops - actually check in portfwd.c itself! (Makefile also modified
because it's been renamed to fit in 8.3, just in case.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1177 cda61777-01e9-0310-a592-d414129be87e

22 years agoSSH port forwarding! How cool is that?
simon [Wed, 8 Aug 2001 20:44:35 +0000 (20:44 +0000)]
SSH port forwarding! How cool is that?
Only currently works on SSH1; SSH2 should be doable but it's late
and I have other things to do tonight. The Cool Guy award for this
one goes to Nicolas Barry, for doing most of the work and actually
understanding the code he was adding to.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1176 cda61777-01e9-0310-a592-d414129be87e

22 years agoRemove the OSVERSIONINFOEX code because there's no obvious way to
simon [Tue, 7 Aug 2001 08:42:17 +0000 (08:42 +0000)]
Remove the OSVERSIONINFOEX code because there's no obvious way to
determine whether it'll compile before receiving the compile error.
Gah.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1175 cda61777-01e9-0310-a592-d414129be87e

22 years agoGlenn Maynard's patch completely disabled PuTTY{,tel} on any system
simon [Sat, 4 Aug 2001 15:45:25 +0000 (15:45 +0000)]
Glenn Maynard's patch completely disabled PuTTY{,tel} on any system
that didn't support OSVERSIONINFOEX. For example, such wildly out of
date things as NT4. Now fixed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1174 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - IDC not IDV. Typo.
simon [Sat, 4 Aug 2001 15:22:52 +0000 (15:22 +0000)]
Oops - IDC not IDV. Typo.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1173 cda61777-01e9-0310-a592-d414129be87e

22 years agoGlenn Maynard's IME patch
simon [Sat, 4 Aug 2001 15:15:07 +0000 (15:15 +0000)]
Glenn Maynard's IME patch

git-svn-id: svn://svn.tartarus.org/sgt/putty@1172 cda61777-01e9-0310-a592-d414129be87e

22 years agoRainer Loritz noticed that the Telnet environment box is not cleared
simon [Sat, 4 Aug 2001 15:04:10 +0000 (15:04 +0000)]
Rainer Loritz noticed that the Telnet environment box is not cleared
when loading a new session. Oops!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1171 cda61777-01e9-0310-a592-d414129be87e

22 years agoPrevent recursive weirdnesses happening when the user selects a
simon [Sat, 4 Aug 2001 14:59:56 +0000 (14:59 +0000)]
Prevent recursive weirdnesses happening when the user selects a
system-tray menu option while a passphrase prompt is active.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1170 cda61777-01e9-0310-a592-d414129be87e

22 years agoSCO function key mode now affects the small keypad (Ins, Del, etc)
simon [Sat, 4 Aug 2001 14:35:58 +0000 (14:35 +0000)]
SCO function key mode now affects the small keypad (Ins, Del, etc)
in accordance with the keymap dump sent by Len Christiansen.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1169 cda61777-01e9-0310-a592-d414129be87e

22 years agoPatch to PSFTP: implement mkdir, rmdir, rm and scripting. Still to
simon [Sat, 4 Aug 2001 14:19:51 +0000 (14:19 +0000)]
Patch to PSFTP: implement mkdir, rmdir, rm and scripting. Still to
do: wildcards, chmod, mv, probably other things.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1168 cda61777-01e9-0310-a592-d414129be87e

22 years agoMention PLINK_PROTOCOL in the Plink chapter.
simon [Sat, 4 Aug 2001 13:06:08 +0000 (13:06 +0000)]
Mention PLINK_PROTOCOL in the Plink chapter.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1167 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd description of the keepalives option
simon [Sat, 4 Aug 2001 13:05:54 +0000 (13:05 +0000)]
Add description of the keepalives option

git-svn-id: svn://svn.tartarus.org/sgt/putty@1166 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix segfault if the server maliciously sends the wrong type of key
simon [Sat, 4 Aug 2001 12:37:43 +0000 (12:37 +0000)]
Fix segfault if the server maliciously sends the wrong type of key
after a different type has been agreed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1165 cda61777-01e9-0310-a592-d414129be87e

22 years agoYet another possible segfault path in the backends fixed. I don't
simon [Tue, 31 Jul 2001 14:23:21 +0000 (14:23 +0000)]
Yet another possible segfault path in the backends fixed. I don't
_believe_ I'm still finding these. I have no idea what I was
thinking when I wrote this stuff.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1162 cda61777-01e9-0310-a592-d414129be87e

22 years agoMinor wording clarification: somebody took the word `sessionname:'
simon [Sun, 1 Jul 2001 09:21:01 +0000 (09:21 +0000)]
Minor wording clarification: somebody took the word `sessionname:'
literally.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1158 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdded = to instructions for setting PATH
owen [Thu, 28 Jun 2001 13:36:14 +0000 (13:36 +0000)]
Added = to instructions for setting PATH

git-svn-id: svn://svn.tartarus.org/sgt/putty@1157 cda61777-01e9-0310-a592-d414129be87e

22 years agoRobert de Bath's implementation of ESC [ Z (backtab)
simon [Sat, 23 Jun 2001 16:59:00 +0000 (16:59 +0000)]
Robert de Bath's implementation of ESC [ Z (backtab)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1155 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd some extra documentation: filled in the Getting Started chapter,
simon [Fri, 15 Jun 2001 19:31:10 +0000 (19:31 +0000)]
Add some extra documentation: filled in the Getting Started chapter,
added an introduction to public key authentication, and made a
couple of changes in intro.but. Transatlantic flights have some uses
after all.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1146 cda61777-01e9-0310-a592-d414129be87e

22 years agoBell panel docs.
owen [Sun, 3 Jun 2001 11:46:49 +0000 (11:46 +0000)]
Bell panel docs.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1144 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdded mention of rlogin, and a few words on VT100+ and SCO function
owen [Sun, 3 Jun 2001 11:10:20 +0000 (11:10 +0000)]
Added mention of rlogin, and a few words on VT100+ and SCO function
key settings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1143 cda61777-01e9-0310-a592-d414129be87e

22 years agoDisable the most irritating compiler warnings in the Borland makefile.
simon [Mon, 28 May 2001 10:26:10 +0000 (10:26 +0000)]
Disable the most irritating compiler warnings in the Borland makefile.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1142 cda61777-01e9-0310-a592-d414129be87e

22 years agoOops - fixing the line-resizing segfault introduced a new
simon [Mon, 21 May 2001 13:33:12 +0000 (13:33 +0000)]
Oops - fixing the line-resizing segfault introduced a new
line-resizing segfault! Remind me to test under Minefield next time.
Should now be fine, as I've just done so.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1141 cda61777-01e9-0310-a592-d414129be87e

22 years agoMake sure the default protocol doesn't ever end up undefined in Plink.
simon [Sat, 19 May 2001 15:59:02 +0000 (15:59 +0000)]
Make sure the default protocol doesn't ever end up undefined in Plink.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1140 cda61777-01e9-0310-a592-d414129be87e

22 years agoAdd some spare SetForegroundWindow and SetActiveWindow calls to try
simon [Sat, 19 May 2001 15:23:12 +0000 (15:23 +0000)]
Add some spare SetForegroundWindow and SetActiveWindow calls to try
to improve window behaviour. Also make the About box a subdialog of
the config box instead of a separate child of the root.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1139 cda61777-01e9-0310-a592-d414129be87e

22 years agoRDB: fix various UTF-8 glitches.
simon [Sat, 19 May 2001 15:21:05 +0000 (15:21 +0000)]
RDB: fix various UTF-8 glitches.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1138 cda61777-01e9-0310-a592-d414129be87e

22 years agoSCO ACS patch from RDB. Apparently required for the Linux console
simon [Sat, 19 May 2001 14:12:41 +0000 (14:12 +0000)]
SCO ACS patch from RDB. Apparently required for the Linux console
terminfo.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1137 cda61777-01e9-0310-a592-d414129be87e

22 years agoUpdate the two commented-out CFLAGS to include the same
simon [Sat, 19 May 2001 13:56:39 +0000 (13:56 +0000)]
Update the two commented-out CFLAGS to include the same
_WIN32_WINDOWS definition as the uncommented one.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1136 cda61777-01e9-0310-a592-d414129be87e

22 years agoBe prepared to print spaces at the end of a statistics line in case
simon [Sat, 19 May 2001 13:41:18 +0000 (13:41 +0000)]
Be prepared to print spaces at the end of a statistics line in case
the previously printed line was longer. Avoids multiple trailing
percents.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1135 cda61777-01e9-0310-a592-d414129be87e

22 years agoFix from RDB: patch up mis-aimed fallthroughs in a terminal
simon [Sat, 19 May 2001 11:34:20 +0000 (11:34 +0000)]
Fix from RDB: patch up mis-aimed fallthroughs in a terminal
emulation switch. (Bug was introduced in mouse reporting.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1134 cda61777-01e9-0310-a592-d414129be87e

22 years agoTerminal fix from RDB: probably didn't mean to compare a Y value
simon [Sat, 19 May 2001 11:33:03 +0000 (11:33 +0000)]
Terminal fix from RDB: probably didn't mean to compare a Y value
with a column count!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1133 cda61777-01e9-0310-a592-d414129be87e

22 years agoSmall terminal fix from RDB: CSI 1 K should erase the cursor
simon [Sat, 19 May 2001 11:32:38 +0000 (11:32 +0000)]
Small terminal fix from RDB: CSI 1 K should erase the cursor
position itself, as well as everything to the left of it.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1132 cda61777-01e9-0310-a592-d414129be87e

23 years agoReinstate the Shift-Ins paste behaviour, which was accidentally
simon [Thu, 17 May 2001 10:06:54 +0000 (10:06 +0000)]
Reinstate the Shift-Ins paste behaviour, which was accidentally
broken by the mouse button redesignation that came with xterm mouse
reporting.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1130 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the line-resizing bug in scroll(). (Thanks to RDB for pointing
simon [Thu, 17 May 2001 08:53:13 +0000 (08:53 +0000)]
Fix the line-resizing bug in scroll(). (Thanks to RDB for pointing
it out. A line was removed from the scrollback, cleared, and placed
at the bottom of the screen. Fine, except that the clearing process
assumed the line was the right length already, and thanks to lazy
resizing this wasn't necessarily the case. Segfaults and memory
corruption ensued.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1129 cda61777-01e9-0310-a592-d414129be87e

23 years agoSpecify a few things that were unsepcified.
ben [Mon, 14 May 2001 22:20:20 +0000 (22:20 +0000)]
Specify a few things that were unsepcified.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1127 cda61777-01e9-0310-a592-d414129be87e

23 years agoScrollbar was failing to update when no scrollback-reset event had happened
simon [Mon, 14 May 2001 13:31:14 +0000 (13:31 +0000)]
Scrollbar was failing to update when no scrollback-reset event had happened

git-svn-id: svn://svn.tartarus.org/sgt/putty@1126 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the sense of posdiff(), causing the extend-selection mouse
simon [Sun, 13 May 2001 16:13:39 +0000 (16:13 +0000)]
Fix the sense of posdiff(), causing the extend-selection mouse
action to work correctly again.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1125 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix wrong button codes in WM_MOUSEMOVE.
simon [Sun, 13 May 2001 15:01:36 +0000 (15:01 +0000)]
Fix wrong button codes in WM_MOUSEMOVE.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1124 cda61777-01e9-0310-a592-d414129be87e

23 years agoGlenn Maynard's patch (as adapted by Jacob) for taskbar flashing
simon [Sun, 13 May 2001 14:42:17 +0000 (14:42 +0000)]
Glenn Maynard's patch (as adapted by Jacob) for taskbar flashing
when a bell occurs and the window is minimised.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1123 cda61777-01e9-0310-a592-d414129be87e

23 years agoThe host-key-unknown prompt now offers the same three options as the
simon [Sun, 13 May 2001 14:11:49 +0000 (14:11 +0000)]
The host-key-unknown prompt now offers the same three options as the
host-key-changed prompt: update-cache-and-connect, connect-without-
updating-cache, and abandon-connection. (Previously the middle one
was missing.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1122 cda61777-01e9-0310-a592-d414129be87e

23 years agoPlacate gcc's `-Wall' warnings.
simon [Sun, 13 May 2001 14:02:28 +0000 (14:02 +0000)]
Placate gcc's `-Wall' warnings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1121 cda61777-01e9-0310-a592-d414129be87e

23 years agoTrim leading whitespace off the hostname if it's there.
simon [Sun, 13 May 2001 13:23:12 +0000 (13:23 +0000)]
Trim leading whitespace off the hostname if it's there.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1120 cda61777-01e9-0310-a592-d414129be87e

23 years agoOops - initialise sesslist_has_focus.
simon [Sun, 13 May 2001 13:11:53 +0000 (13:11 +0000)]
Oops - initialise sesslist_has_focus.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1119 cda61777-01e9-0310-a592-d414129be87e

23 years agoJacob's patch to make pressing Return on a selected saved session
simon [Sun, 13 May 2001 11:58:36 +0000 (11:58 +0000)]
Jacob's patch to make pressing Return on a selected saved session
load it and go, and simultaneously allow Alt-L on a selected saved
session not to change the focus.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1118 cda61777-01e9-0310-a592-d414129be87e

23 years agoBorland and Cygwin makefiles now support XFLAGS.
simon [Sun, 13 May 2001 11:46:00 +0000 (11:46 +0000)]
Borland and Cygwin makefiles now support XFLAGS.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1117 cda61777-01e9-0310-a592-d414129be87e

23 years agoControl characters are now allowed as part of the password, if
simon [Sun, 13 May 2001 11:44:57 +0000 (11:44 +0000)]
Control characters are now allowed as part of the password, if
they're not special control characters processed by the line input
routines.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1116 cda61777-01e9-0310-a592-d414129be87e

23 years agoDefine WM_MOUSEWHEEL (to 0x20A) if it's not defined by windows.h.
simon [Sun, 13 May 2001 11:19:20 +0000 (11:19 +0000)]
Define WM_MOUSEWHEEL (to 0x20A) if it's not defined by windows.h.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1115 cda61777-01e9-0310-a592-d414129be87e

23 years agoAttempt to report the error condition right when an SCP connection
simon [Sun, 13 May 2001 11:15:16 +0000 (11:15 +0000)]
Attempt to report the error condition right when an SCP connection
with a pre-supplied password fails to authenticate.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1114 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the SCO function keys, which weren't quite right.
simon [Sun, 13 May 2001 10:58:51 +0000 (10:58 +0000)]
Fix the SCO function keys, which weren't quite right.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1113 cda61777-01e9-0310-a592-d414129be87e