u/mdw/putty
22 years agoYikes! sftp.c wasn't using the misc.h wrappered malloc functions,
simon [Wed, 14 Nov 2001 12:58:42 +0000 (12:58 +0000)]
Yikes! sftp.c wasn't using the misc.h wrappered malloc functions,
meaning that PSFTP couldn't meaningfully be debugged using
Minefield. That's what I get for developing it under Unix and
forgetting to port it properly :-/

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

22 years agoAdd a rant to the FAQ about host key checking. I'm _sick_ of people
simon [Tue, 13 Nov 2001 23:13:07 +0000 (23:13 +0000)]
Add a rant to the FAQ about host key checking. I'm _sick_ of people
implementing a command line option to disable it and expecting us to
cheerfully accept the patch.

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

22 years agoModify a comment to try to remind myself that the &-in-session-names
simon [Tue, 13 Nov 2001 22:39:46 +0000 (22:39 +0000)]
Modify a comment to try to remind myself that the &-in-session-names
hack (to create accelerators on the System menu) should have some
official status.

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

22 years agoHandle incoming SSH2_MSG_CHANNEL_REQUEST (by refusing all requests).
simon [Tue, 13 Nov 2001 22:06:37 +0000 (22:06 +0000)]
Handle incoming SSH2_MSG_CHANNEL_REQUEST (by refusing all requests).
Should have done this ages ago; the OpenSSH 3.0 ClientAliveInterval
mechanism requires it so now it's really necessary.

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

22 years agoClarify the how-to-use-features-in-Plink question
simon [Tue, 13 Nov 2001 10:34:14 +0000 (10:34 +0000)]
Clarify the how-to-use-features-in-Plink question

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

22 years agoRemember to initialise p->nphases to zero in progress report structure.
simon [Mon, 12 Nov 2001 09:19:57 +0000 (09:19 +0000)]
Remember to initialise p->nphases to zero in progress report structure.

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

22 years agoOops - one missing set of the ssh1 throttling indicator
simon [Sat, 10 Nov 2001 17:09:17 +0000 (17:09 +0000)]
Oops - one missing set of the ssh1 throttling indicator

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

22 years agoWhoops - missed out a vital bit of RTF Unicode fallback handling
simon [Thu, 8 Nov 2001 09:20:36 +0000 (09:20 +0000)]
Whoops - missed out a vital bit of RTF Unicode fallback handling

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

22 years agoImplement writing RTF to the clipboard (off by default), so that if
simon [Wed, 7 Nov 2001 22:22:53 +0000 (22:22 +0000)]
Implement writing RTF to the clipboard (off by default), so that if
you enable it text will paste into Word et al in the same font as
PuTTY itself is displaying in. In particular, this will be a fixed-
pitch font, so tables and `ls' and the like will naturally line up.

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

22 years agoMakefile fix: we've been compiling ssh.c separately because it needs
simon [Wed, 7 Nov 2001 13:39:54 +0000 (13:39 +0000)]
Makefile fix: we've been compiling ssh.c separately because it needs
$(VER) defining, but forgetting that it also needs the rest of the
stuff!

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

22 years agoRDB's fix to full-screen mode. Apparently sorts out most of the
simon [Sun, 4 Nov 2001 16:41:26 +0000 (16:41 +0000)]
RDB's fix to full-screen mode. Apparently sorts out most of the
fullscreen/maximised confusions, by treating fullscreen as a special
case of maximised (fair enough). Removes dependency on multimon.h,
but Wez thinks (though he was unable to test) that this version
should naturally do the Right Thing on multi-monitor systems anyway.

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

22 years agoFix accelerators in Window panel
simon [Wed, 31 Oct 2001 18:51:07 +0000 (18:51 +0000)]
Fix accelerators in Window panel

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

22 years agoRectangular-block selection. Enabled by Alt+drag, unless you
simon [Wed, 31 Oct 2001 18:50:09 +0000 (18:50 +0000)]
Rectangular-block selection. Enabled by Alt+drag, unless you
configure it to be the default in which case it's _dis_abled by
Alt+drag.

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

22 years agoAdd a couple more FAQs (`where's the Tunnels panel' and `how do I do
simon [Tue, 30 Oct 2001 22:33:35 +0000 (22:33 +0000)]
Add a couple more FAQs (`where's the Tunnels panel' and `how do I do
<blah> in Plink').

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

22 years agoShrink the PuTTYgen window for 640x480 friendliness (thanks Jacob)
simon [Tue, 30 Oct 2001 22:12:49 +0000 (22:12 +0000)]
Shrink the PuTTYgen window for 640x480 friendliness (thanks Jacob)

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

22 years agoWord-by-word (double-click) selection now spans line breaks if the
simon [Tue, 30 Oct 2001 22:02:15 +0000 (22:02 +0000)]
Word-by-word (double-click) selection now spans line breaks if the
line break was created by wrapping. (Equivalently, if the selection
would _paste_ as a single word without a newline in the middle, then
it will _select_ in the same way.)

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

22 years agoThe other utilities should do the same processing of the hostname
simon [Tue, 30 Oct 2001 21:45:27 +0000 (21:45 +0000)]
The other utilities should do the same processing of the hostname
(parsing `user@' prefixes etc) that PuTTY proper does.

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

22 years agoTidy up the SERIOUS NETWORK ERROR fixes
simon [Tue, 30 Oct 2001 20:57:22 +0000 (20:57 +0000)]
Tidy up the SERIOUS NETWORK ERROR fixes

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

22 years agoTidy up SSH packet-level debugging
simon [Tue, 30 Oct 2001 20:35:29 +0000 (20:35 +0000)]
Tidy up SSH packet-level debugging

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

22 years agoAdd the `will you write an SSH server' question to the FAQ.
simon [Tue, 30 Oct 2001 15:37:09 +0000 (15:37 +0000)]
Add the `will you write an SSH server' question to the FAQ.

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

22 years agoIncrease cfg.line_codepage buffer size to cope with the explanatory
simon [Tue, 30 Oct 2001 09:50:40 +0000 (09:50 +0000)]
Increase cfg.line_codepage buffer size to cope with the explanatory
text added in a recent unicode.c patch.

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

22 years agoFix trivial UI buglets related to DSA key support.
jacob [Sun, 28 Oct 2001 15:32:33 +0000 (15:32 +0000)]
Fix trivial UI buglets related to DSA key support.

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

22 years agoAdd the FAQ about `nothing happens when I try to type my password'.
simon [Sun, 28 Oct 2001 15:11:24 +0000 (15:11 +0000)]
Add the FAQ about `nothing happens when I try to type my password'.

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

22 years agoFix character set problems. Some systems lack the ISO8859 codepages,
simon [Sun, 28 Oct 2001 10:40:11 +0000 (10:40 +0000)]
Fix character set problems. Some systems lack the ISO8859 codepages,
so we specify them explicitly to avoid this problem. Also in
particular get_unitab() no longer depends on querying Windows
codepage 28591 (ISO8859-1), so UTF-8 mode should stop failing on
such systems.

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

22 years agoFix the `SERIOUS NETWORK INTERNAL ERROR' oversight in winnet.c. See
simon [Sun, 28 Oct 2001 09:57:47 +0000 (09:57 +0000)]
Fix the `SERIOUS NETWORK INTERNAL ERROR' oversight in winnet.c. See
the comment in try_send() for details of the problem.

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

22 years agoFix silly scrolling-vs-selection bug: if you selected text on line
simon [Sun, 28 Oct 2001 09:38:43 +0000 (09:38 +0000)]
Fix silly scrolling-vs-selection bug: if you selected text on line
9, then did ANSI Delete Line on line 10, the selection highlight
would move up a line even though it wasn't over any text that
actually moved. Easy to reproduce in the likes of vi. Trivial fix.

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

22 years agoAdd remaining comments to the last checkin (gah, remember to hit
simon [Sat, 27 Oct 2001 11:06:11 +0000 (11:06 +0000)]
Add remaining comments to the last checkin (gah, remember to hit
Save in the editor _before_ running cvs commit).

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

22 years agoUpdate to password length traffic analysis: one Cisco router can
simon [Sat, 27 Oct 2001 10:39:54 +0000 (10:39 +0000)]
Update to password length traffic analysis: one Cisco router can
apparently not deal with SSH1_MSG_IGNORE _or_ padded passwords, so
we must fall back to sending an undefended password.

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

22 years agoTiny tinkerings with FAQ
simon [Thu, 25 Oct 2001 18:48:54 +0000 (18:48 +0000)]
Tiny tinkerings with FAQ

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

22 years agoFix a couple of errors in the FAQ.
simon [Thu, 25 Oct 2001 08:09:58 +0000 (08:09 +0000)]
Fix a couple of errors in the FAQ.

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

22 years agoCondense the docs into fewer HTML files. Particularly useful since
simon [Wed, 24 Oct 2001 19:05:36 +0000 (19:05 +0000)]
Condense the docs into fewer HTML files. Particularly useful since
the new-look FAQ is now one file.

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

22 years ago_Actually_ add the new-look PuTTY FAQ. When will I remember to run "cvs add"?
simon [Wed, 24 Oct 2001 18:56:52 +0000 (18:56 +0000)]
_Actually_ add the new-look PuTTY FAQ. When will I remember to run "cvs add"?

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

22 years agoAdd the new-look PuTTY FAQ
simon [Wed, 24 Oct 2001 18:56:28 +0000 (18:56 +0000)]
Add the new-look PuTTY FAQ

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

22 years agoNow that we can configure whether ^C and friends generate Telnet IP
simon [Wed, 24 Oct 2001 11:50:07 +0000 (11:50 +0000)]
Now that we can configure whether ^C and friends generate Telnet IP
and friends, we should honour the user's choice even in line editing
mode. In particular, Telnet talkers don't like us randomly spraying
Telnet IP whenever the user accidentally hits ^C, so this is not a
helpful default.

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

22 years agoAdd Jacob's patch for compiling without multimon.h.
simon [Tue, 23 Oct 2001 20:25:34 +0000 (20:25 +0000)]
Add Jacob's patch for compiling without multimon.h.

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

22 years agoBetter robustness in visual bell timeouts: handling GetTickCount
simon [Tue, 23 Oct 2001 19:51:23 +0000 (19:51 +0000)]
Better robustness in visual bell timeouts: handling GetTickCount
wraparound, not referencing vbell_timeout if in_vbell==FALSE, that
sort of thing. I doubt it'll fix the reported problems with screen
vbells, since none of the failure modes I've just prevented looked
all that probable to me, but it's nice to have extra robustness
anyway.

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

22 years agoDon't quit the plink main loop until the stdout and stderr buffers
simon [Tue, 23 Oct 2001 19:22:01 +0000 (19:22 +0000)]
Don't quit the plink main loop until the stdout and stderr buffers
are empty.

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

22 years agoWez Furlong's patch to tidy up full-screen mode: make it
simon [Wed, 17 Oct 2001 21:21:03 +0000 (21:21 +0000)]
Wez Furlong's patch to tidy up full-screen mode: make it
multi-monitor aware and make the scrollbar separately configurable
in and out of full-screen mode. Also (not Wez's patch, this bit) fix
the case where the user reconfigures _while_ the window is
full-screen, and disables full-screening. (In this case the window
should return gracefully to normal, rather than losing all its title
bars and getting confused.)

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

22 years agoFinally remove this pile of obsoleteness
simon [Wed, 17 Oct 2001 21:02:39 +0000 (21:02 +0000)]
Finally remove this pile of obsoleteness

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

22 years agoD'oh, trivial typo which was completely breaking log-all-output.
simon [Fri, 12 Oct 2001 21:39:16 +0000 (21:39 +0000)]
D'oh, trivial typo which was completely breaking log-all-output.

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

22 years agoRevamp the window-resize behaviour UI so there are only three states
simon [Fri, 12 Oct 2001 21:10:56 +0000 (21:10 +0000)]
Revamp the window-resize behaviour UI so there are only three states
rather than four. Should fix all sorts of bugs, since the fourth
(and default!) state was behaving weirdly and nobody liked it.

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

22 years agoDue to fears that an incompetent WinSock might allow localhost-
simon [Fri, 12 Oct 2001 19:32:13 +0000 (19:32 +0000)]
Due to fears that an incompetent WinSock might allow localhost-
listening sockets to be talked to by non-local hosts, reinstate the
explicit peer address check on connection acceptance.

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

22 years agoExtra line in the help text to mention you can use a saved session
simon [Wed, 26 Sep 2001 20:31:02 +0000 (20:31 +0000)]
Extra line in the help text to mention you can use a saved session
as well as a hostname.

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

22 years ago`Server got confused by' error messages now quote a packet type, so
simon [Wed, 26 Sep 2001 20:29:03 +0000 (20:29 +0000)]
`Server got confused by' error messages now quote a packet type, so
I can start debugging as soon as I get one sent to me.

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

22 years agoFiddly fixes in code page handling
simon [Tue, 25 Sep 2001 21:08:24 +0000 (21:08 +0000)]
Fiddly fixes in code page handling

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

22 years agoSpelling fix. When the user hits `Browse' next to the `Private key'
simon [Tue, 25 Sep 2001 20:12:14 +0000 (20:12 +0000)]
Spelling fix. When the user hits `Browse' next to the `Private key'
box, they should see a file chooser labelled Select _Private_ Key
File, not Public!

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

22 years agoAnother potential segfault fixed. Thanks RDB :-)
simon [Tue, 25 Sep 2001 20:07:55 +0000 (20:07 +0000)]
Another potential segfault fixed. Thanks RDB :-)

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

22 years agoTidy up a comment.
simon [Tue, 25 Sep 2001 20:07:12 +0000 (20:07 +0000)]
Tidy up a comment.

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

22 years agoJohn Sullivan's patch to recreate the Pageant systray icon if
simon [Tue, 25 Sep 2001 20:05:06 +0000 (20:05 +0000)]
John Sullivan's patch to recreate the Pageant systray icon if
Explorer crashes and restarts while Pageant is running.

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

22 years agoFix various fiddly little warnings.
simon [Tue, 25 Sep 2001 19:59:14 +0000 (19:59 +0000)]
Fix various fiddly little warnings.

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

22 years agoRestore Lars Gunnarsson's old link for iXplorer.
simon [Mon, 24 Sep 2001 22:00:46 +0000 (22:00 +0000)]
Restore Lars Gunnarsson's old link for iXplorer.

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

22 years agoDestroy DOS line endings and unnecessary redefinition of uint32.
simon [Sun, 23 Sep 2001 16:45:36 +0000 (16:45 +0000)]
Destroy DOS line endings and unnecessary redefinition of uint32.

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

22 years agoOops - another missing file :-/
simon [Sun, 23 Sep 2001 11:57:10 +0000 (11:57 +0000)]
Oops - another missing file :-/

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

22 years agoArrgh, there's always one. Actually check in the extra file :-)
simon [Sat, 22 Sep 2001 21:00:53 +0000 (21:00 +0000)]
Arrgh, there's always one. Actually check in the extra file :-)

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

22 years agoAdd extra explanatory comment about the DSA k generation.
simon [Sat, 22 Sep 2001 21:00:16 +0000 (21:00 +0000)]
Add extra explanatory comment about the DSA k generation.

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

22 years agoAdd support for DSA authentication in SSH2, following clever ideas
simon [Sat, 22 Sep 2001 20:52:21 +0000 (20:52 +0000)]
Add support for DSA authentication in SSH2, following clever ideas
on how to get round the problem of generating a good k.

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

22 years agoPretty much finished writing the Config chapter.
simon [Sat, 22 Sep 2001 17:34:10 +0000 (17:34 +0000)]
Pretty much finished writing the Config chapter.

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

22 years agoOops - that tweak had bad Buttress syntax. D'oh!
simon [Sat, 22 Sep 2001 15:37:51 +0000 (15:37 +0000)]
Oops - that tweak had bad Buttress syntax. D'oh!

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

22 years agoMiscellaneous small documentation tweaks.
simon [Sat, 22 Sep 2001 15:36:44 +0000 (15:36 +0000)]
Miscellaneous small documentation tweaks.

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

22 years agoCorrect capitalisation in one config option (Cyrillic Caps Lock).
simon [Sat, 22 Sep 2001 15:19:43 +0000 (15:19 +0000)]
Correct capitalisation in one config option (Cyrillic Caps Lock).

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

22 years agoOngoing pastes were being abandoned on any key-down event. Quite
simon [Fri, 21 Sep 2001 17:54:29 +0000 (17:54 +0000)]
Ongoing pastes were being abandoned on any key-down event. Quite
apart from the debatable semantic sanity of abandoning mid-paste,
this was breaking Shift-paste (theoretically valid in any case,
actually necessary with xterm mouse reporting enabled) because when
you hold down Shift the window receives a steady stream of KEYDOWN
messages as the key auto-repeats. One of those is likely to show up
in mid-paste and scupper you. For the moment, this has been changed
so that only a key press that actually _generates session data_
aborts a paste. In future I plan to review just why we're doing this
anyway (it may be that paste-little-by-little was a response to
rubbish socket buffering, in which case we can dispense with it
completely now).

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

22 years agoFix pasting of newlines in local line editing mode. Possibly not a
simon [Wed, 19 Sep 2001 20:07:15 +0000 (20:07 +0000)]
Fix pasting of newlines in local line editing mode. Possibly not a
very _good_ fix; something might want doing after the release.

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

22 years agoterminal.c's from_backend() no longer calls term_out(), because
simon [Tue, 18 Sep 2001 19:41:07 +0000 (19:41 +0000)]
terminal.c's from_backend() no longer calls term_out(), because
term_out() can in turn call ldisc_send() which calls back to
from_backend() when local echo is enabled. This was giving rise to
crazy re-entrancy stuff and stack overflows. Instead from_backend()
deposits its data in a bufchain which term_out() empties the next
time it's called.

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

22 years agoFix flaky scrollbar update when scrollback was reset to bottom.
simon [Tue, 18 Sep 2001 19:04:21 +0000 (19:04 +0000)]
Fix flaky scrollbar update when scrollback was reset to bottom.

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

22 years agoSelection point movement on scroll should move selanchor as well as
simon [Tue, 18 Sep 2001 18:59:37 +0000 (18:59 +0000)]
Selection point movement on scroll should move selanchor as well as
selstart and selend, otherwise all those worthy ideals go *foom*
while the mouse buttons are held down.

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

22 years agoReintroduce Cyrillic Caps Lock mode, which was in 0.51 but got
simon [Tue, 18 Sep 2001 18:51:10 +0000 (18:51 +0000)]
Reintroduce Cyrillic Caps Lock mode, which was in 0.51 but got
kicked out by the Unicode patch. It's not very good - only works
sanely on US keyboards - but it's no worse than it was in 0.51.
After 0.52 maybe I should fix it properly.

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

22 years agoFix the licence again. (Despite the copyright holders being more
simon [Tue, 18 Sep 2001 18:40:00 +0000 (18:40 +0000)]
Fix the licence again. (Despite the copyright holders being more
numerous, it still only said _I_ would not be liable rather than
_everybody_ not being liable; also the resource file versions
weren't up to date.)

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

22 years agoSSH back end should now be tolerant of garbage appearing in the data
simon [Tue, 18 Sep 2001 18:16:56 +0000 (18:16 +0000)]
SSH back end should now be tolerant of garbage appearing in the data
stream after the actual SSH connection is finished. Some firewalls
add this for no good reason.

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

22 years agoThree more patches from RDB: one to make Atomica work right, one to
simon [Sat, 15 Sep 2001 15:54:24 +0000 (15:54 +0000)]
Three more patches from RDB: one to make Atomica work right, one to
fiddle with the widths of characters in DBCS screen fonts, and (the
big one) one to enable a mode in which resizing the window locks the
terminal size and lets the font change, instead of vice versa. That
should shut up a few feature requests!

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

22 years agoCygwin build fixes: update the dependencies, add -DNO_SECURITY to
simon [Sat, 15 Sep 2001 14:58:26 +0000 (14:58 +0000)]
Cygwin build fixes: update the dependencies, add -DNO_SECURITY to
the Cygwin CFLAGS, and declare `struct ssh_channel' in ssh.h to
prevent gcc warning about scope-confined-to-parameter-list.

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

22 years agoChristopher Allene's patch for going full-screen on Alt-Enter.
simon [Thu, 13 Sep 2001 18:24:51 +0000 (18:24 +0000)]
Christopher Allene's patch for going full-screen on Alt-Enter.

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

22 years agoScrollback viewing position, and selection endpoints, now keep pace
simon [Wed, 12 Sep 2001 20:38:40 +0000 (20:38 +0000)]
Scrollback viewing position, and selection endpoints, now keep pace
with the scrollback movement. (The former is of course only
detectable when reset-scrollback-on-activity is disabled.)

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

22 years agoPSFTP: when choosing a default destination filename for `get' and
simon [Wed, 12 Sep 2001 20:16:45 +0000 (20:16 +0000)]
PSFTP: when choosing a default destination filename for `get' and
`put', it makes more sense to pick the _basename_ of the source
rather than use the whole path - particularly when the latter might
cause us to try to use a DOS pathname like `f:\stuff' in a Unix (or
worse, such as VMS!) file system.

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

22 years agopsftp and pscp should disable all forwarding (ports, X, agent).
simon [Wed, 12 Sep 2001 20:11:48 +0000 (20:11 +0000)]
psftp and pscp should disable all forwarding (ports, X, agent).
Partly because that's a good idea _anyway_, and partly because it
seems to be causing trouble. (Specifically, their pathetic attempt
to emulate plink's proper select handling seems to get confused when
the back end tries to open a local listening socket.)

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

22 years agoClarify the comment at the top of scp.c to make the licensing
simon [Mon, 10 Sep 2001 08:39:37 +0000 (08:39 +0000)]
Clarify the comment at the top of scp.c to make the licensing
situation more explicit.

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

22 years agoAdd the `pwd' command in PSFTP.
simon [Sun, 9 Sep 2001 16:31:26 +0000 (16:31 +0000)]
Add the `pwd' command in PSFTP.

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

22 years agoAdd online help in PSFTP.
simon [Sun, 9 Sep 2001 16:29:51 +0000 (16:29 +0000)]
Add online help in PSFTP.

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

22 years agoModify the FIXME into a calculated risk. I don't like this, but I
simon [Sun, 9 Sep 2001 15:41:58 +0000 (15:41 +0000)]
Modify the FIXME into a calculated risk. I don't like this, but I
don't like the thought of having to try to fix it either,
particularly when I can't tell whether it'll work or not without
reproducing the (probably phantom) problem. Gah. I wish WinSock
would give better documentation of possible error returns.

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

22 years agoBe more careful of bombouts at the s_rdpkt level: if these happen
simon [Sun, 9 Sep 2001 14:47:29 +0000 (14:47 +0000)]
Be more careful of bombouts at the s_rdpkt level: if these happen
(for example SSH_MSG_DISCONNECT) we should avoid even calling
ssh_protocol.

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

22 years agoAdd the names of major contributors to the copyright statement. I've
simon [Sun, 9 Sep 2001 13:54:00 +0000 (13:54 +0000)]
Add the names of major contributors to the copyright statement. I've
been meaning to do this for _years_.

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

22 years agopsftp is an interactive program and the ssh.c flags should reflect
simon [Sun, 9 Sep 2001 10:41:42 +0000 (10:41 +0000)]
psftp is an interactive program and the ssh.c flags should reflect
this (so we get login banners and a little more verbosity during
authentication).

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

22 years agoOops - changing the prototype of statictext() affected puttygen.c too
simon [Sun, 9 Sep 2001 10:35:56 +0000 (10:35 +0000)]
Oops - changing the prototype of statictext() affected puttygen.c too

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

22 years agoRoman Pompejus's patch (heavily hacked) for parametric log file
simon [Sun, 9 Sep 2001 09:58:20 +0000 (09:58 +0000)]
Roman Pompejus's patch (heavily hacked) for parametric log file
names with date, time and hostname automatically embedded.

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

22 years agoFix potential float screwup in scp percentage indicator. (Don't
simon [Sat, 8 Sep 2001 15:16:30 +0000 (15:16 +0000)]
Fix potential float screwup in scp percentage indicator. (Don't
compute (100*a)/b. Instead compute 100*(a/b), because that way
there's no chance that 100*a will become inexact enough to fail to
yield 100 when a==b.)

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

22 years agoJacob's TIS / CCard authentication tweaks.
simon [Sat, 8 Sep 2001 12:50:15 +0000 (12:50 +0000)]
Jacob's TIS / CCard authentication tweaks.

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

22 years agoJan Holmen Holsten's patch for drag-selects to scroll the scrollback.
simon [Sat, 8 Sep 2001 12:37:48 +0000 (12:37 +0000)]
Jan Holmen Holsten's patch for drag-selects to scroll the scrollback.

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

22 years agoFix error message: couldn't load _private_ key, not public.
simon [Sat, 8 Sep 2001 11:57:00 +0000 (11:57 +0000)]
Fix error message: couldn't load _private_ key, not public.

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

22 years agoWhen we receive SSH_MSG_DISCONNECT, say so in an error box because
simon [Sat, 8 Sep 2001 10:33:56 +0000 (10:33 +0000)]
When we receive SSH_MSG_DISCONNECT, say so in an error box because
it's likely to be more helpful than `Strange packet received' or
whatever.

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

22 years agoFix to link_font() from RDB. I must get him to comment some of this :-)
simon [Fri, 7 Sep 2001 23:02:07 +0000 (23:02 +0000)]
Fix to link_font() from RDB. I must get him to comment some of this :-)

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

22 years agoRDB also points out we don't need the CJK `not recommended for
simon [Fri, 7 Sep 2001 23:00:37 +0000 (23:00 +0000)]
RDB also points out we don't need the CJK `not recommended for
general use' wcwidth function, so we condition it out to save space.

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

22 years agoPatch from RDB: Markus Kuhn has issued an updated version of his
simon [Fri, 7 Sep 2001 22:59:07 +0000 (22:59 +0000)]
Patch from RDB: Markus Kuhn has issued an updated version of his
wcwidth function.

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

22 years agoAnother patch from RDB: prevent luni_send from sending a particular
simon [Fri, 7 Sep 2001 22:58:00 +0000 (22:58 +0000)]
Another patch from RDB: prevent luni_send from sending a particular
range of Unicode characters. Not entirely sure I understand this one
but I trust that RDB knows what he's talking about with Unicode.

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

22 years agoRDB points out that when you memset a newly allocated structure to
simon [Fri, 7 Sep 2001 22:52:51 +0000 (22:52 +0000)]
RDB points out that when you memset a newly allocated structure to
zero, covering the size of the _structure_ rather than the size of
the pointer to it might help :-)

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

22 years agoRDB's session logging patch: due to some ghastly special case, UTF-8
simon [Fri, 7 Sep 2001 22:51:52 +0000 (22:51 +0000)]
RDB's session logging patch: due to some ghastly special case, UTF-8
characters that failed the UTF-8 canonicality rules were being sent
to the session log twice. Sounds trivial, but I bet it'd have
confused anyone who turned on session logging precisely to track
down a canonicality bug :-)

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

22 years agoPedantry patch from RDB: sanitise header use, correct one comment
simon [Fri, 7 Sep 2001 22:49:17 +0000 (22:49 +0000)]
Pedantry patch from RDB: sanitise header use, correct one comment
and remove an unused variable.

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

22 years agoPatch from RDB: in the case where the protocol read from the
simon [Fri, 7 Sep 2001 22:45:05 +0000 (22:45 +0000)]
Patch from RDB: in the case where the protocol read from the
settings file is unrecognised (i.e. PuTTYtel reading PuTTY's
registry), fall back to the default _port_ as well as the default
protocol.

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

22 years agoPatch from RDB: fix the failure to display window-resize pointers
simon [Fri, 7 Sep 2001 22:43:31 +0000 (22:43 +0000)]
Patch from RDB: fix the failure to display window-resize pointers
when in raw mouse mode.

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

22 years agoPatch from RDB: rename ISO-8859-12 to -13, add ISO-8859-16, and
simon [Fri, 7 Sep 2001 22:41:38 +0000 (22:41 +0000)]
Patch from RDB: rename ISO-8859-12 to -13, add ISO-8859-16, and
update the year specifications on some of the ISO-8859 names.

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

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