u/mdw/putty
22 years agoCompletely revamped mkfiles.pl which incorporates dependency
simon [Sat, 16 Mar 2002 15:49:28 +0000 (15:49 +0000)]
Completely revamped mkfiles.pl which incorporates dependency
analysis (for both .c and .rc files). Generates the VC++ makefile as
well as the other two; the authoritative source is now the new file
`Recipe' rather than any particular Makefile. Note that `Makefile'
is still here as a relic of the old way until we stop the nightly
builds using it, but it'll be gone soon.

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

22 years agoFix multi-monitor / full-screen problems and clean up the code a
simon [Wed, 13 Mar 2002 22:15:14 +0000 (22:15 +0000)]
Fix multi-monitor / full-screen problems and clean up the code a
little. Thanks to Wez Furlong for the patch.

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

22 years agoRev 1.189 [r1517] of this file introduced a bug. While it is correct
simon [Wed, 13 Mar 2002 19:55:01 +0000 (19:55 +0000)]
Rev 1.189 [r1517] of this file introduced a bug. While it is correct
to avoid calling term_out() during a drag-select, it's false to
assume that all drags are selects - some are xterm mouse-reported
drags, and term_out absolutely _should_ be called in those so that
the application can show the dragged object moving. Should now be
fixed.

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

22 years agoNetwork printers weren't showing up on at least NT4. This version
simon [Tue, 12 Mar 2002 18:27:10 +0000 (18:27 +0000)]
Network printers weren't showing up on at least NT4. This version
appears to be better, but Jacob has found that it still isn't
perfect. Bah.

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

22 years agoAvoid needless memory management error if EnumPrinters returns no
simon [Tue, 12 Mar 2002 09:55:02 +0000 (09:55 +0000)]
Avoid needless memory management error if EnumPrinters returns no
printers.

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

22 years agoBah. Add winspool.lib to libraries list. Maybe _now_ the nightly
simon [Mon, 11 Mar 2002 10:38:30 +0000 (10:38 +0000)]
Bah. Add winspool.lib to libraries list. Maybe _now_ the nightly
builds will start working again :-/

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

22 years agoSlightly less grotty script to convert OpenSSH known_hosts and known_hosts2
jacob [Sun, 10 Mar 2002 22:00:06 +0000 (22:00 +0000)]
Slightly less grotty script to convert OpenSSH known_hosts and known_hosts2
host key files to .REG files for Windows.
(renamed from 'hosts2reg' because of 8.3 considerations)

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

22 years agoGrotty script to sanity-check the accelerator keys in windlg.c.
jacob [Sun, 10 Mar 2002 21:56:55 +0000 (21:56 +0000)]
Grotty script to sanity-check the accelerator keys in windlg.c.
(private RCS rev 1.4)

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

22 years agoArrgh! Forgot yet another fiddly Makefile bit. Perhaps it's really
simon [Sun, 10 Mar 2002 09:28:32 +0000 (09:28 +0000)]
Arrgh! Forgot yet another fiddly Makefile bit. Perhaps it's really
time I did something about my Makefile generator...

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

22 years ago... and add its dependencies to the Makefile too.
simon [Sat, 9 Mar 2002 19:07:21 +0000 (19:07 +0000)]
... and add its dependencies to the Makefile too.

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

22 years agoAs ever, There's Always One. Check in the extra source file. *blush*
simon [Sat, 9 Mar 2002 19:06:58 +0000 (19:06 +0000)]
As ever, There's Always One. Check in the extra source file. *blush*

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

22 years agoANSI remote printer support. Raw mode only.
simon [Sat, 9 Mar 2002 17:59:15 +0000 (17:59 +0000)]
ANSI remote printer support. Raw mode only.

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

22 years agoFix Makefile dependencies.
simon [Sat, 9 Mar 2002 12:03:49 +0000 (12:03 +0000)]
Fix Makefile dependencies.

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

22 years agoWell, there was bound to be one I'd forgotten: the new Features
simon [Sat, 9 Mar 2002 11:47:39 +0000 (11:47 +0000)]
Well, there was bound to be one I'd forgotten: the new Features
panel should include an option to disable xterm mouse reporting. So
now it does. Woo.

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

22 years agoFix accelerator clash on Features panel, plus a couple of accelerator comments.
jacob [Thu, 7 Mar 2002 22:17:11 +0000 (22:17 +0000)]
Fix accelerator clash on Features panel, plus a couple of accelerator comments.
(not tested)

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

22 years agoOops. I wrote in the docs that no-remote-resize also included
simon [Wed, 6 Mar 2002 23:06:07 +0000 (23:06 +0000)]
Oops. I wrote in the docs that no-remote-resize also included
no-remote-move-window, so I'd better live up to that...

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

22 years agoAdd the Features panel, allowing you to disable a bunch of the more
simon [Wed, 6 Mar 2002 23:04:20 +0000 (23:04 +0000)]
Add the Features panel, allowing you to disable a bunch of the more
controversial terminal features.

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

22 years agoEnsure our network layer is properly cleaned up before PuTTY exits.
simon [Wed, 6 Mar 2002 20:13:22 +0000 (20:13 +0000)]
Ensure our network layer is properly cleaned up before PuTTY exits.
Specifically, we explicitly closesocket() all open sockets, which
appears to be necessary since otherwise Windows sends RST rather
than FIN. I'm _sure_ that's a Windows bug, but there we go.

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

22 years agoAdd an extra example to the Plink-with-WinCVS section.
simon [Tue, 5 Mar 2002 20:39:27 +0000 (20:39 +0000)]
Add an extra example to the Plink-with-WinCVS section.

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

22 years agoThe `wrapnext' flag should be saved and restored with the cursor
simon [Sat, 2 Mar 2002 17:37:48 +0000 (17:37 +0000)]
The `wrapnext' flag should be saved and restored with the cursor
position. Failure to do this can give wrapnext==TRUE even with the
cursor not in the rightmost column.

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

22 years agofrom_backend() should always be called with len > 0. Only rlogin
simon [Fri, 1 Mar 2002 13:17:45 +0000 (13:17 +0000)]
from_backend() should always be called with len > 0. Only rlogin
mode ever failed to do this, and only Plink actually had a problem
with it, so this didn't become obvious for a while. rlogin mode is
fixed, and all implementations of from_backend() now contain an
assertion so that we should spot errors of this type more quickly in
future.

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

22 years agoMemory leak fix: repair endemic failure to call sftp_pkt_free().
simon [Fri, 1 Mar 2002 13:16:25 +0000 (13:16 +0000)]
Memory leak fix: repair endemic failure to call sftp_pkt_free().

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

22 years agoSet SSH socket variable to NULL if connect() fails. Failure to do
simon [Wed, 27 Feb 2002 22:45:52 +0000 (22:45 +0000)]
Set SSH socket variable to NULL if connect() fails. Failure to do
this was causing PSCP to hang indefinitely after reporting
Connection Refused.

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

22 years agoCisco routers apparently have yet another bug: they can't handle RSA
simon [Wed, 27 Feb 2002 22:41:31 +0000 (22:41 +0000)]
Cisco routers apparently have yet another bug: they can't handle RSA
auth attempts at all without panicking and bombing out. Workaround
added.

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

22 years agoPatch to enable >512-character command lines. Thanks to Thomas Halling.
simon [Wed, 27 Feb 2002 22:31:23 +0000 (22:31 +0000)]
Patch to enable >512-character command lines. Thanks to Thomas Halling.

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

22 years agoOops - get the forward declaration right in that hack
simon [Wed, 27 Feb 2002 22:30:57 +0000 (22:30 +0000)]
Oops - get the forward declaration right in that hack

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

22 years agoFix silly segfault due to PSFTP thinking connection is fine even if
simon [Wed, 27 Feb 2002 22:20:30 +0000 (22:20 +0000)]
Fix silly segfault due to PSFTP thinking connection is fine even if
fxp_init() fails to get initial packet.

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

22 years agoMake sure out-of-memory errors are logged to malloc.log when we're
simon [Wed, 27 Feb 2002 22:20:03 +0000 (22:20 +0000)]
Make sure out-of-memory errors are logged to malloc.log when we're
logging mallocs.

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

22 years agoDocument the fact that character classes are a default-only
simon [Sun, 24 Feb 2002 15:25:19 +0000 (15:25 +0000)]
Document the fact that character classes are a default-only
configuration option (and so you must reset the terminal if you
change them in mid-session).

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

22 years agoIt's 2002. Update copyright statements :-)
simon [Sun, 24 Feb 2002 15:17:10 +0000 (15:17 +0000)]
It's 2002. Update copyright statements :-)

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

22 years agoWork around surreal use of WM_COMMAND in radio button sets. Prevents
simon [Wed, 20 Feb 2002 22:28:11 +0000 (22:28 +0000)]
Work around surreal use of WM_COMMAND in radio button sets. Prevents
port number field resetting unnecessarily when protocol is set to
Raw using the arrow keys.

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

22 years agoModify the donations bit in the FAQ. (We now don't need a copy of
simon [Tue, 12 Feb 2002 11:07:07 +0000 (11:07 +0000)]
Modify the donations bit in the FAQ. (We now don't need a copy of
Win2k since we already have two, but XP might be nice; also added
PayPal to the donation methods.)

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

22 years agoAdd a general `what ports exist?' question to the FAQ, so that the
simon [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.

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

22 years ago-pw in Plink doesn't work in Telnet. Mention this.
simon [Mon, 4 Feb 2002 13:29:04 +0000 (13:29 +0000)]
-pw in Plink doesn't work in Telnet. Mention this.

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

22 years agoMake the section on terminal answerback mention that this is _not_
simon [Mon, 4 Feb 2002 13:18:54 +0000 (13:18 +0000)]
Make the section on terminal answerback mention that this is _not_
the same thing as sending the terminal type in the proper way.

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

22 years agoAdd `can PSCP and PSFTP do ASCII mode?' to the FAQ.
simon [Wed, 23 Jan 2002 09:43:10 +0000 (09:43 +0000)]
Add `can PSCP and PSFTP do ASCII mode?' to the FAQ.

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

22 years agoVarious accelerator clashes (due to the addition of the global Help
simon [Thu, 17 Jan 2002 13:47:29 +0000 (13:47 +0000)]
Various accelerator clashes (due to the addition of the global Help
button, which accel.pl wasn't prepared for) fixed.

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

22 years agoExperimental checkin: re-enable support for the static WM_MOUSEWHEEL
simon [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.

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

22 years agoUpdate the FAQ to reflect 0.52 as being a current release rather
simon [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.

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

22 years agoUpdate an accelerator comment.
simon [Sat, 12 Jan 2002 16:02:50 +0000 (16:02 +0000)]
Update an accelerator comment.

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

22 years agoAdd support for sending SSH2_MSG_UNIMPLEMENTED for unrecognised
simon [Thu, 10 Jan 2002 19:50:53 +0000 (19:50 +0000)]
Add support for sending SSH2_MSG_UNIMPLEMENTED for unrecognised
messages; also do something with the debugging messages sent as
SSH2_MSG_DEBUG.

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

22 years agoFlush the log file after logging each packet (so that if we're going
simon [Thu, 10 Jan 2002 19:50:07 +0000 (19:50 +0000)]
Flush the log file after logging each packet (so that if we're going
to crash, we get an up-to-the-minute log of what happened just
before then).

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

22 years agoSupport SSH2_MSG_GLOBAL_REQUEST (just return failure)
simon [Thu, 10 Jan 2002 16:42:17 +0000 (16:42 +0000)]
Support SSH2_MSG_GLOBAL_REQUEST (just return failure)

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

22 years agoExtra safety feature to avoid sending SSH2_MSG_WINDOW_ADJUST on
simon [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.

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

22 years agoPlink's front-end select loop was failing to send error messages to
simon [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.

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

22 years agoAdd the CRC32 compensation attack detector that all other SSH
simon [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!

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

22 years agoPatch from RDB: the ESC[8...t resize sequence and the ESC[18t size
simon [Tue, 8 Jan 2002 09:56:31 +0000 (09:56 +0000)]
Patch from RDB: the ESC[8...t resize sequence and the ESC[18t size
report should both quote rows before columns, not vice versa.

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

22 years agoPatch from RDB: the xterm move-window sequences now don't screw up
simon [Tue, 8 Jan 2002 09:56:06 +0000 (09:56 +0000)]
Patch from RDB: the xterm move-window sequences now don't screw up
when the window is e.g. maximised.

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

22 years agoPatch from RDB: invent a /DMSVC4 compile-time definition which
simon [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...

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

22 years agoPatch from RDB: make /DNO_MULTIMON (mentioned as a possible
simon [Tue, 8 Jan 2002 09:44:23 +0000 (09:44 +0000)]
Patch from RDB: make /DNO_MULTIMON (mentioned as a possible
compile-time definition in the Makefile) actually work. D'oh.

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

22 years agoAdd weird XML manifest resources, to enable WinXP skins to work
simon [Tue, 8 Jan 2002 09:32:50 +0000 (09:32 +0000)]
Add weird XML manifest resources, to enable WinXP skins to work
within PuTTY's dialog boxen.

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

22 years agoAdd `where can I buy silly putty' as a FAQ, pointing to Crazy
simon [Wed, 2 Jan 2002 15:44:06 +0000 (15:44 +0000)]
Add `where can I buy silly putty' as a FAQ, pointing to Crazy
Aaron's site :-)

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

22 years agosshrsa.c should include misc.h in case I need to do debugging :-)
simon [Tue, 1 Jan 2002 16:51:03 +0000 (16:51 +0000)]
sshrsa.c should include misc.h in case I need to do debugging :-)

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

22 years agoCreate the long-awaited console.c, and move the common routines out
simon [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.)

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

22 years agoI have no brain at all. The SSH1 auth loop was trying all Pageant
simon [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.

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

22 years agoPuTTY can now detect when one of the Pageant keys it tries matches
simon [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).

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

22 years agoPageant is now able to avoid asking for the passphrase when asked to
simon [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.

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

22 years agoOops - the help for the new Telnet NL option wasn't quite there.
simon [Sat, 29 Dec 2001 17:25:07 +0000 (17:25 +0000)]
Oops - the help for the new Telnet NL option wasn't quite there.

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

22 years agoAdd a configurable option to make Return in Telnet send an ordinary
simon [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.

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

22 years agoAdd a FAQ about keyboard mapping problems: basically explaining that
simon [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.

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

22 years agoAdd a new back-end function to return the exit code of the remote
simon [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.

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

22 years agoJordan Russell's patch (3rd of several). We now don't call TermOut()
simon [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.

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

22 years agoJordan Russell's patch (again): a couple of registry read operations
simon [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.

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

22 years agoJordan Russell's patch: only process mouse drags when we have the
simon [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.

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

22 years agoDocument the Pageant command line.
simon [Thu, 20 Dec 2001 15:27:40 +0000 (15:27 +0000)]
Document the Pageant command line.

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

22 years agoOops - fputs takes the file pointer second, not first!
simon [Thu, 20 Dec 2001 14:19:10 +0000 (14:19 +0000)]
Oops - fputs takes the file pointer second, not first!

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

22 years agoThis should fix the busy-wait problem with the IME.
simon [Thu, 20 Dec 2001 14:18:01 +0000 (14:18 +0000)]
This should fix the busy-wait problem with the IME.

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

22 years agoThe alphabetical ordering in the psftp command list was broken. D'oh!
simon [Wed, 19 Dec 2001 18:49:32 +0000 (18:49 +0000)]
The alphabetical ordering in the psftp command list was broken. D'oh!

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

22 years agoAdd the `can we run under win3.1' question to the FAQ.
simon [Sun, 16 Dec 2001 15:30:03 +0000 (15:30 +0000)]
Add the `can we run under win3.1' question to the FAQ.

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

22 years agoFiddle the header of the new feedback section to make it carefully
simon [Sun, 16 Dec 2001 15:14:36 +0000 (15:14 +0000)]
Fiddle the header of the new feedback section to make it carefully
ambiguous about whether it thinks it's on the website or in the manual.

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

22 years agoAdd two extra appendices giving the licence text and details of how
simon [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.)

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

22 years agoAdd the `local' command set to PSFTP: lcd, lpwd, and ! to spawn a
simon [Sun, 16 Dec 2001 13:33:04 +0000 (13:33 +0000)]
Add the `local' command set to PSFTP: lcd, lpwd, and ! to spawn a
Windows command.

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

22 years agoReplace the definition of WHEEL_DELTA which was removed in rev 1.185
simon [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*

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

22 years agoA contributor tells me that WM_MOUSEWHEEL is not supported in Win95,
simon [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.

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

22 years ago`make clean' in the Borland makefile should ignore error returns
simon [Sat, 15 Dec 2001 14:29:03 +0000 (14:29 +0000)]
`make clean' in the Borland makefile should ignore error returns
from the delete commands in case nothing of a particular type needs
to be cleaned up.

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

22 years agoImprovements to the malloc debugging stuff: when MALLOC_LOG is
simon [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.

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

22 years agoAdd the remote counterpart for the `local port forwardings accept
simon [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).

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

22 years agoReverse part of RDB's pedantic patch from rev 1.129 [r1105]: app
simon [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.

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

22 years agoJaeyoun Chung's mysterious patch that apparently makes Korean input
simon [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.

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

22 years agoRetired the #ifdef DUMP_PACKETS stuff in ssh.c because I'm utterly
simon [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.

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

22 years agoNow that Buttress can spot duplicate section keywords, it turns out
simon [Fri, 14 Dec 2001 12:48:24 +0000 (12:48 +0000)]
Now that Buttress can spot duplicate section keywords, it turns out
there are several of them I hadn't noticed! All fixed.

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

22 years agoAdd the missing psftp-pubkey section, shamelessly cribbed from the
simon [Fri, 14 Dec 2001 12:22:09 +0000 (12:22 +0000)]
Add the missing psftp-pubkey section, shamelessly cribbed from the
corresponding section in the PSCP chapter.

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

22 years agoRename a clashing section keyword (why wasn't Buttress catching
simon [Fri, 14 Dec 2001 12:19:14 +0000 (12:19 +0000)]
Rename a clashing section keyword (why wasn't Buttress catching
this? Oops).

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

22 years agoAdd a chapter to the manual describing PSFTP.
simon [Fri, 14 Dec 2001 12:15:43 +0000 (12:15 +0000)]
Add a chapter to the manual describing PSFTP.

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

22 years agoRemove ghastly hack involving fxp_error_message.
simon [Fri, 14 Dec 2001 10:12:53 +0000 (10:12 +0000)]
Remove ghastly hack involving fxp_error_message.

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

22 years agoFix trivial problems with PSFTP batch mode
simon [Fri, 14 Dec 2001 10:06:09 +0000 (10:06 +0000)]
Fix trivial problems with PSFTP batch mode

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

22 years agoAargh, an Americanism crept in. Now corrected: favorite -> favourite.
simon [Fri, 14 Dec 2001 09:58:07 +0000 (09:58 +0000)]
Aargh, an Americanism crept in. Now corrected: favorite -> favourite.

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

22 years agoTidied up PSFTP batch mode. The gross hack using fxp_error_message
simon [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.

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

22 years agoAllow PSFTP to be run with no arguments, in which case it enters the
simon [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.

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

22 years agoClarify that port forwarding will not be enabled until the user has
simon [Thu, 13 Dec 2001 17:38:59 +0000 (17:38 +0000)]
Clarify that port forwarding will not be enabled until the user has
authenticated.

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

22 years agoUpdated the PuTTYgen section in pubkey.but so that it gives
simon [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.

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

22 years agoDisable username switching between SSH2 auth attempts, and add a
simon [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.

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

22 years agoFix error handling in sftp (the sftp_recv return value was being
simon [Tue, 11 Dec 2001 20:08:12 +0000 (20:08 +0000)]
Fix error handling in sftp (the sftp_recv return value was being
checked for NULL almost nowhere).

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

22 years agoAdd help support to Pageant. (For the primary - non-context - help,
simon [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.)

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

22 years agoFixes to full-screen mode. There were various problems when you went
simon [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.

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

22 years agoFix compiler warnings
simon [Tue, 11 Dec 2001 18:47:35 +0000 (18:47 +0000)]
Fix compiler warnings

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

22 years agoApparently sending DISCONNECT on a normal SSH2 connection close is
simon [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.

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

22 years agoRDB's patch to allow the `-c' option to Pageant to take a command
simon [Mon, 10 Dec 2001 17:50:03 +0000 (17:50 +0000)]
RDB's patch to allow the `-c' option to Pageant to take a command
_with arguments_. Duh, should have thought of that myself.

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

22 years agoAndrew Francis's Pageant updates: you can now multi-select key files
simon [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).

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

22 years agoFIFTH ATTEMPT at getting full-screen mode right. This new attempt
simon [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.

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