]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
19 years agoVersion number and other tweakings prior to the 0.58 release. 0.58
Simon Tatham [Tue, 5 Apr 2005 19:36:25 +0000 (19:36 +0000)]
Version number and other tweakings prior to the 0.58 release.

[originally from svn r5598]

19 years agotweak wording in "pscp -ls"
Jacob Nevins [Tue, 5 Apr 2005 18:38:26 +0000 (18:38 +0000)]
tweak wording in "pscp -ls"

[originally from svn r5597]

19 years agoadd XXX-REMOVE-BEFORE-RELEASE re uninstaller
Jacob Nevins [Tue, 5 Apr 2005 18:15:41 +0000 (18:15 +0000)]
add XXX-REMOVE-BEFORE-RELEASE re uninstaller

[originally from svn r5596]

19 years agoAdd target to build `info' file.
Jacob Nevins [Tue, 5 Apr 2005 18:11:31 +0000 (18:11 +0000)]
Add target to build `info' file.
We probably already require a new enough version of Halibut that this isn't
a problem; nevertheless, I've put it in a separate target for now.

[originally from svn r5595]

19 years agoAdd versionid for index.
Jacob Nevins [Tue, 5 Apr 2005 18:03:13 +0000 (18:03 +0000)]
Add versionid for index.
Also plumb in pgpkeys.but versionid.

[originally from svn r5594]

19 years agoIndex the complete PuTTY manual.
Jacob Nevins [Tue, 5 Apr 2005 18:01:32 +0000 (18:01 +0000)]
Index the complete PuTTY manual.
This was a bit rushed, and could doubtless be improved.
Also fix a couple of things I noted on the way, including:
 - "pscp -ls" wasn't documented
 - Windows XP wasn't mentioned enough

[originally from svn r5593]

19 years agoNULL needs to be cast to void * when passed to a variadic function like
Ben Harris [Mon, 4 Apr 2005 13:44:45 +0000 (13:44 +0000)]
NULL needs to be cast to void * when passed to a variadic function like
execl().  Spotted by Damien Miller.

[originally from svn r5592]

19 years ago#ifdef out expensive combining-character/scrollback diagnostics (for now).
Jacob Nevins [Fri, 1 Apr 2005 13:25:13 +0000 (13:25 +0000)]
#ifdef out expensive combining-character/scrollback diagnostics (for now).

[originally from svn r5589]

19 years agosk_address_is_local() was ignoring the possibility that a SockAddr
Simon Tatham [Fri, 1 Apr 2005 08:46:26 +0000 (08:46 +0000)]
sk_address_is_local() was ignoring the possibility that a SockAddr
might have an IPv4 address in `ai' rather than in `addresses'.
Thanks to Martin Prikryl for pointing this out.

[originally from svn r5587]

19 years agoAdd text to the troubleshooting chapter about the errors that can be
Simon Tatham [Thu, 31 Mar 2005 18:52:21 +0000 (18:52 +0000)]
Add text to the troubleshooting chapter about the errors that can be
caused when an active connection times out due to outgoing data
exceeding its maximum number of retries, and mention that this can
occur even when you didn't think you'd sent anything due to rekeys
and/or keepalives.

Unix generates ETIMEDOUT in this situation. Windows, it turns out
after doing an actual experiment by disabling my firewall, generates
ECONNABORTED! So _that's_ what it means under Windows. I wish I'd
done this experiment years ago now.

[originally from svn r5585]

19 years agoFAQ entry on rekeys: Jacob would like to pre-emptively try to avoid
Simon Tatham [Thu, 31 Mar 2005 13:45:41 +0000 (13:45 +0000)]
FAQ entry on rekeys: Jacob would like to pre-emptively try to avoid
the possibility of people falling back to SSH-1 just because it gets
rid of the irritating delays.

[originally from svn r5584]

19 years agoBeef up the `unfinished and experimental' warnings for the two Mac
Simon Tatham [Thu, 31 Mar 2005 12:25:48 +0000 (12:25 +0000)]
Beef up the `unfinished and experimental' warnings for the two Mac
ports, mentioning in particular that even if you downloaded a
_release_ source archive these particular ports are not considered
to be of release quality.

[originally from svn r5583]

19 years agoXXX-REMOVE-BEFORE-RELEASE: check docs too
Jacob Nevins [Thu, 31 Mar 2005 09:02:07 +0000 (09:02 +0000)]
XXX-REMOVE-BEFORE-RELEASE: check docs too

[originally from svn r5574]

19 years agoFurther fix for lcc-win32. The PuTTY suite now compiles fine for me
Simon Tatham [Wed, 30 Mar 2005 19:33:24 +0000 (19:33 +0000)]
Further fix for lcc-win32. The PuTTY suite now compiles fine for me
using lcc-win32 v3.8 (compilation date Mar 2 2005 18:40:17) provided
I pass COMPAT="-DNO_IPV6 -DNO_MULTIMON" on the command line.

[originally from svn r5573]

19 years agofaq-timeout: update for XP
Jacob Nevins [Wed, 30 Mar 2005 10:20:31 +0000 (10:20 +0000)]
faq-timeout: update for XP

[originally from svn r5565]

19 years ago<1112163342.018492.101240@f14g2000cwb.googlegroups.com> on
Simon Tatham [Wed, 30 Mar 2005 08:27:54 +0000 (08:27 +0000)]
<1112163342.018492.101240@f14g2000cwb.googlegroups.com> on
comp.security.ssh contains a Dr Watson log which looks to me as if
`unclean-close-crash' occurred due to a rekey timer going off after
the session had closed. Hence, ssh2_timer() now avoids doing
anything if the session is already closed, and also ssh_do_close()
proactively calls expire_timer_context(). Between those I think they
ought to solve the problem.

[originally from svn r5564]

19 years agoSmall markup fixes I just noticed, mostly use of literal double
Simon Tatham [Tue, 29 Mar 2005 14:24:14 +0000 (14:24 +0000)]
Small markup fixes I just noticed, mostly use of literal double
quotes where \q{} would be better.

[originally from svn r5562]

19 years agoAfter we receive EOF on stdin, we should clear ssh->send_ok so that
Simon Tatham [Tue, 29 Mar 2005 13:10:33 +0000 (13:10 +0000)]
After we receive EOF on stdin, we should clear ssh->send_ok so that
we stop trying to read anything further from stdin. Otherwise we
send a continuous stream of SSH2_MSG_CHANNEL_EOF.

[originally from svn r5561]

19 years agoRender timing.c robust in the face of strangeness. The strangenesses
Simon Tatham [Mon, 28 Mar 2005 17:48:24 +0000 (17:48 +0000)]
Render timing.c robust in the face of strangeness. The strangenesses
in question vary per OS: on Windows the problem is that WM_TIMER
sometimes goes off too early, so that GetTickCount() is right and
the callback time is wrong, whereas on Unix the problem is that my
GETTICKCOUNT implementation comes from the system clock which means
it can change suddenly and non-monotonically if the sysadmin is
messing about (meaning that the timing of callbacks from GTK or
select timeouts is _more_ likely to be right than GETTICKCOUNT).
This checkin provides band-aid workarounds for both problems, which
aren't pretty but ought to at least prevent catastrophic assertion
failure.

[originally from svn r5556]

19 years agoIn fact, I'll document the wrinkle with "plink -load", rather than just
Jacob Nevins [Thu, 24 Mar 2005 02:22:21 +0000 (02:22 +0000)]
In fact, I'll document the wrinkle with "plink -load", rather than just
wittering about it on a mailing list.

[originally from svn r5550]

19 years agoFix comment re dmemdumpl()
Jacob Nevins [Thu, 24 Mar 2005 01:01:24 +0000 (01:01 +0000)]
Fix comment re dmemdumpl()

[originally from svn r5549]

19 years agoSince Markus Kuhn no longer explicitly places wcwidth.c in the public domain,
Jacob Nevins [Wed, 23 Mar 2005 20:23:07 +0000 (20:23 +0000)]
Since Markus Kuhn no longer explicitly places wcwidth.c in the public domain,
it'd probably be generous to list him in the copyrights.

[originally from svn r5548]
[this svn revision also touched putty-website]

19 years ago`wcwidth-upgrade': upgrade to latest wcwidth.c from Markus Kuhn
Jacob Nevins [Wed, 23 Mar 2005 20:04:08 +0000 (20:04 +0000)]
`wcwidth-upgrade': upgrade to latest wcwidth.c from Markus Kuhn
<http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c>.
This is identified both internally and in HTTP headers as 2003-05-20,
for Unicode 4.0.

Only changes from upstream are to make mk_wcwidth_cjk() non-static and to
#include "putty.h" for prototypes.

The status of some code points has changed; see the wishlist item. We've
had some feedback from the CJK and Arabic communities that upgrading is
probably the right thing to do.

[originally from svn r5547]
[this svn revision also touched putty-wishlist]

19 years agoAnother fix from Hung-Te Lin; apparently in some IMEs (such as
Jacob Nevins [Wed, 23 Mar 2005 01:08:18 +0000 (01:08 +0000)]
Another fix from Hung-Te Lin; apparently in some IMEs (such as
"MS NewPhonetics"), move events (arrow keys) were being doubled up,
apparently because we turned both KEYDOWN and KEYUP events into new
KEYDOWN events.

I don't claim to understand the precise effect of this patch :( but
I'm reasonably confident that it only affects IME users, and experimentally
it doesn't seem to break anything obvious, so if piaip says it makes
things better that's good enough for me :)

[originally from svn r5545]

19 years agoFix my fix (r5539) to the `multi-changesettings-crash' fix. Ahem.
Jacob Nevins [Tue, 22 Mar 2005 23:25:21 +0000 (23:25 +0000)]
Fix my fix (r5539) to the `multi-changesettings-crash' fix. Ahem.

[originally from svn r5543]
[r5539 == 5b695d81ade64effdbe36d0516fc72362bff78e6]

19 years agoAdd an option to use wcwidth_cjk() instead of wcwidth(), as several people
Jacob Nevins [Tue, 22 Mar 2005 23:20:23 +0000 (23:20 +0000)]
Add an option to use wcwidth_cjk() instead of wcwidth(), as several people
have asked for it.

[originally from svn r5542]

19 years agoHung-Te Lin spotted that the `multi-changesettings-crash' workaround for Windows
Jacob Nevins [Mon, 21 Mar 2005 22:20:22 +0000 (22:20 +0000)]
Hung-Te Lin spotted that the `multi-changesettings-crash' workaround for Windows
would prevent a user opening Change Settings if they'd cancelled a previous
Change Settings.

[originally from svn r5539]

19 years agoMention PUTTY.RND by name
Jacob Nevins [Mon, 21 Mar 2005 17:43:59 +0000 (17:43 +0000)]
Mention PUTTY.RND by name

[originally from svn r5538]

19 years agoMartin Trautmann spotted a bare char being passed to isspace.
Simon Tatham [Mon, 21 Mar 2005 13:46:16 +0000 (13:46 +0000)]
Martin Trautmann spotted a bare char being passed to isspace.

[originally from svn r5536]

19 years agoTrim application manifests as much as MS' documentation and Owen's experiments
Jacob Nevins [Mon, 21 Mar 2005 01:51:22 +0000 (01:51 +0000)]
Trim application manifests as much as MS' documentation and Owen's experiments
on XP allow while still having the desired effect -- this allows removal of
some fibs.
Also, change version number to 0.0.0.0 in preparation for `win-versioninfo'
(not that we found anything that took any notice of the version number
declared here).

[originally from svn r5534]

19 years agoImprovement for IME font display from Hung-Te Lin.
Jacob Nevins [Mon, 21 Mar 2005 01:05:38 +0000 (01:05 +0000)]
Improvement for IME font display from Hung-Te Lin.
Not tested, but it appears only to affect Glenn Maynard's r1406 code from
<20011006170741.A23470@zewt.org> and nothing else, so seems harmless enough.

[originally from svn r5533]
[r1406 == d9f7fc44bc177da552a14b879c199cc99f991e19]

19 years agoAdd comments about default processing in DialogProc/WindowProc, since I
Jacob Nevins [Sun, 20 Mar 2005 22:28:13 +0000 (22:28 +0000)]
Add comments about default processing in DialogProc/WindowProc, since I
often forget the rules.

[originally from svn r5532]

19 years agoRevert last change: Some versions of the GNU C Library (notably SUSE
Ben Harris [Sat, 19 Mar 2005 19:23:49 +0000 (19:23 +0000)]
Revert last change: Some versions of the GNU C Library (notably SUSE
glibc-2.3.3-118 and Debian libc6 2.3.2.ds1-20) have clock_gettime() and
CLOCK_MONOTONIC in their headers, but not in libc itself, which we can't
detect easily.

[originally from svn r5529]

19 years agoIf it's available, try to use clock_gettime(CLOCK_MONOTONIC) rather than
Ben Harris [Sat, 19 Mar 2005 19:02:53 +0000 (19:02 +0000)]
If it's available, try to use clock_gettime(CLOCK_MONOTONIC) rather than
gettimeofday(), since the former shouldn't warp when the user resets the clock.

[originally from svn r5528]

19 years agoWork around lcc's annoying (but, even more annoyingly, legitimate)
Simon Tatham [Sat, 19 Mar 2005 16:34:58 +0000 (16:34 +0000)]
Work around lcc's annoying (but, even more annoyingly, legitimate)
refusal to allow comparison of function pointers. Unfortunately this
still doesn't cause PuTTY to compile on my lcc installation, because
the GetCharacterPlacement stuff in exact_textout() is missing from
its header files. This may have been fixed in a future version (I'm
using lcc-win32 version 3.8 from December 2003), but I haven't
checked.

[originally from svn r5527]

19 years agoMore compact display for the key links/fingerprints. Still not ideal, but
Jacob Nevins [Sat, 19 Mar 2005 03:05:44 +0000 (03:05 +0000)]
More compact display for the key links/fingerprints. Still not ideal, but
it'll probably do.

[originally from svn r5526]

19 years agoTry to make our PGP signing more useful:
Jacob Nevins [Sat, 19 Mar 2005 02:26:58 +0000 (02:26 +0000)]
Try to make our PGP signing more useful:

 * All the PuTTY tools for Windows and Unix now contain the fingerprints of
   the Master Keys. The method for accessing them is crude but universal:
   a new "-pgpfp" command-line option. (Except Unix PuTTYgen, which takes
   "--pgpfp" just to be awkward.)

 * Move the key policy discussion from putty-website/keys.html to
   putty/doc/pgpkeys.but, and autogenerate the former from the latter.
   Also tweak the text somewhat and include the fingerprints of the
   Master Keys themselves.
   (I've merged the existing autogeneration scripts into a single new
   one; I've left the old scripts and keys.html around until such time
   as the webmonster reviews the changes and plumbs in the new script;
   he should remove the old files then.)

[originally from svn r5524]
[this svn revision also touched putty-website]

19 years agoAfter we thaw a frozen socket, we apparently need to restart the
Simon Tatham [Fri, 18 Mar 2005 19:47:21 +0000 (19:47 +0000)]
After we thaw a frozen socket, we apparently need to restart the
WSAAsyncSelect or else Windows loses read events.

[originally from svn r5521]

19 years agoI believe MAC/CRC errors can be caused by network corruption, in principle.
Jacob Nevins [Fri, 18 Mar 2005 12:58:39 +0000 (12:58 +0000)]
I believe MAC/CRC errors can be caused by network corruption, in principle.

[originally from svn r5520]

19 years agoHung-Te Lin's fix for intermittent WM_PAINT problems.
Simon Tatham [Thu, 17 Mar 2005 20:01:28 +0000 (20:01 +0000)]
Hung-Te Lin's fix for intermittent WM_PAINT problems.

[originally from svn r5518]

19 years agoThe structural reorganisation of ssh.c (r4909) caused
Simon Tatham [Thu, 17 Mar 2005 19:49:51 +0000 (19:49 +0000)]
The structural reorganisation of ssh.c (r4909) caused
ssh2_try_send() to no longer be run after receiving WINDOW_ADJUSTs.
I believe this is likely to have been the cause of recent PSCP
hanging issues.

[originally from svn r5517]
[r4909 == 02b0474f578ec550552989bd6461fd7151609006]

19 years agofaq-savedsettings: mention Default Settings
Jacob Nevins [Wed, 16 Mar 2005 16:09:44 +0000 (16:09 +0000)]
faq-savedsettings: mention Default Settings

[originally from svn r5514]

19 years agoFix `telnet-option-loop', I think. (Untested except to check it
Simon Tatham [Wed, 16 Mar 2005 13:20:02 +0000 (13:20 +0000)]
Fix `telnet-option-loop', I think. (Untested except to check it
compiles, since I don't have a suitably awkward server to run it
against; but Ben reviewed the patch before checkin so we can share
the blame if it doesn't work.)

[originally from svn r5512]
[this svn revision also touched putty-wishlist]

19 years agoAdd protection against multiple Change Settings dialogues.
Owen Dunn [Tue, 15 Mar 2005 20:34:08 +0000 (20:34 +0000)]
Add protection against multiple Change Settings dialogues.

[originally from svn r5508]

19 years agoFix pterm-logtype-crash
Owen Dunn [Tue, 15 Mar 2005 10:43:29 +0000 (10:43 +0000)]
Fix pterm-logtype-crash

[originally from svn r5505]

19 years agoConsistent indenting in option specs
Jacob Nevins [Mon, 14 Mar 2005 01:56:39 +0000 (01:56 +0000)]
Consistent indenting in option specs

[originally from svn r5502]

19 years agopunctuation nit
Jacob Nevins [Fri, 11 Mar 2005 21:05:12 +0000 (21:05 +0000)]
punctuation nit

[originally from svn r5495]

19 years agoRetire MINGW32_FIX. It was a fix for a blatant bug in MinGW's windres, which
Jacob Nevins [Fri, 11 Mar 2005 15:52:59 +0000 (15:52 +0000)]
Retire MINGW32_FIX. It was a fix for a blatant bug in MinGW's windres, which
was fixed in CVS in 2000 (I think); and we now depend on MinGW much more
recent than that for various other reasons. I've tested with my current
MinGW (around 2.0.0 vintage) and the original symptoms (dodgy characters in
edit boxes) don't appear to show up.

[originally from svn r5491]

19 years agoMake it clearer which protocol version various bugs apply to.
Jacob Nevins [Fri, 11 Mar 2005 15:24:09 +0000 (15:24 +0000)]
Make it clearer which protocol version various bugs apply to.

[originally from svn r5490]

19 years agoFiddle with source archive for new OS X files.
Simon Tatham [Fri, 11 Mar 2005 09:07:37 +0000 (09:07 +0000)]
Fiddle with source archive for new OS X files.

[originally from svn r5489]

19 years agoThanks to D H Becker for sending in an icon. I'd have liked to have
Simon Tatham [Thu, 10 Mar 2005 20:11:27 +0000 (20:11 +0000)]
Thanks to D H Becker for sending in an icon. I'd have liked to have
written a script which would generate the various graphical
components of the PuTTY icon suite at any given resolution and then
used that to generate the OS X icon as well as all the others, but I
can always do that later; this'll do for now.

[originally from svn r5487]

19 years agoExpand "v" to "version" when discussing SSH protocol versions.
Ben Harris [Thu, 10 Mar 2005 17:08:37 +0000 (17:08 +0000)]
Expand "v" to "version" when discussing SSH protocol versions.

[originally from svn r5486]

19 years agoWhen we're quoting user-interface text from PuTTY 0.51, we probably shouldn't
Ben Harris [Thu, 10 Mar 2005 17:08:00 +0000 (17:08 +0000)]
When we're quoting user-interface text from PuTTY 0.51, we probably shouldn't
correct its spelling of "SSH-2".

[originally from svn r5485]

19 years agoFix an "SSH v1" that Jacob missed (because it spanned a line break).
Ben Harris [Thu, 10 Mar 2005 17:06:29 +0000 (17:06 +0000)]
Fix an "SSH v1" that Jacob missed (because it spanned a line break).

[originally from svn r5484]

19 years agoMake it clear that even when using SSH 2, you only need the SSH-2 pubkey format
Ben Harris [Thu, 10 Mar 2005 17:04:26 +0000 (17:04 +0000)]
Make it clear that even when using SSH 2, you only need the SSH-2 pubkey format
if you're actually using the SSH-2 protocol.

[originally from svn r5483]

19 years agoConsistently use a single notation to refer to SSH protocol versions, as
Jacob Nevins [Thu, 10 Mar 2005 16:36:05 +0000 (16:36 +0000)]
Consistently use a single notation to refer to SSH protocol versions, as
discussed. Use Barrett and Silverman's convention of "SSH-1" for SSH protocol
version 1 and "SSH-2" for protocol 2 ("SSH1"/"SSH2" refer to ssh.com
implementations in this scheme). <http://www.snailbook.com/terms.html>

[originally from svn r5480]

19 years agoSupport multiple anchor name types now that Jacob has enhanced
Simon Tatham [Thu, 10 Mar 2005 16:18:51 +0000 (16:18 +0000)]
Support multiple anchor name types now that Jacob has enhanced
Halibut to be able to do so.

[originally from svn r5479]

19 years agoProtect against multiple Change Settings dialogues. We should probably also
Owen Dunn [Thu, 10 Mar 2005 10:07:27 +0000 (10:07 +0000)]
Protect against multiple Change Settings dialogues.  We should probably also
arrange to switch to an existing Change Settings if the user selects the
menu item and we already have a Change Settings.

[originally from svn r5475]

19 years agoBen Hutchings reports that new PuTTY instances created from the saved
Jacob Nevins [Tue, 8 Mar 2005 23:06:15 +0000 (23:06 +0000)]
Ben Hutchings reports that new PuTTY instances created from the saved
sessions menu (etc) can inherit listening sockets, and that this sometimes
causes trouble. Can't reproduce any problems myself, but let's only allow
inheritance when absolutely necessary -- Duplicate Session -- in which
case there's already going to be trouble with two processes trying to
listen on the same port.

[originally from svn r5468]

19 years agoMiscellaneous tweaks.
Jacob Nevins [Tue, 8 Mar 2005 14:20:38 +0000 (14:20 +0000)]
Miscellaneous tweaks.

[originally from svn r5461]

19 years agoCharlie at work points out that the screen FAQ contains a different
Simon Tatham [Mon, 7 Mar 2005 16:40:11 +0000 (16:40 +0000)]
Charlie at work points out that the screen FAQ contains a different
- and probably better - solution to the screen-vs-alt-screen issue.
Reference it and describe the fix.

[originally from svn r5452]

19 years ago`What commands can I type into my PuTTY session' is probably the
Simon Tatham [Mon, 7 Mar 2005 14:07:19 +0000 (14:07 +0000)]
`What commands can I type into my PuTTY session' is probably the
single most frequently asked thing which isn't in the FAQ (it's in
feedback.but instead), so let's add it. I'm uncertain that the
people who mail us asking things like `how do I read my email' and
`how do I access $database' will successfully recognise this more
general question as one which includes their specific one, but it's
worth a try.

[originally from svn r5451]

19 years agoAdd notification when using the various auth methods with server-supplied
Jacob Nevins [Sun, 6 Mar 2005 16:38:19 +0000 (16:38 +0000)]
Add notification when using the various auth methods with server-supplied
prompts, to make it more obvious if a server is attempting to spoof a local
passphrase prompt.

I believe an alert user could have spotted this in all cases in SSH-2,
although perhaps not in SSH-1. (But they'd have to have enabled
TIS/CryptoCard.)

[originally from svn r5450]

19 years agoFix sense of test in previous checkin :)
Jacob Nevins [Sun, 6 Mar 2005 15:00:45 +0000 (15:00 +0000)]
Fix sense of test in previous checkin :)

[originally from svn r5448]

19 years agoI'm sick and tired of the persistent reports of lineptr() failing
Simon Tatham [Sun, 6 Mar 2005 14:48:22 +0000 (14:48 +0000)]
I'm sick and tired of the persistent reports of lineptr() failing
its `line != NULL' assertion, so I've replaced the assertion with a
call to fatalbox() giving oodles of information. I may still not be
able to reproduce it, but at least next time it happens we should
see a decent amount of debugging data!

[originally from svn r5447]

19 years agoOver-enthusiastic assertions in the port forwarding code removed.
Simon Tatham [Sat, 5 Mar 2005 18:14:57 +0000 (18:14 +0000)]
Over-enthusiastic assertions in the port forwarding code removed.
Port forwardings are set up before initialising the last few details
of the main shell session, so ssh->state can reasonably hold values
other than SSH_STATE_SESSION and SSH_STATE_CLOSED during calls to
sshfwd_*.

[originally from svn r5446]

19 years agoMake sure we do notify_remote_exit(ssh->frontend) _before_
Simon Tatham [Sat, 5 Mar 2005 17:56:28 +0000 (17:56 +0000)]
Make sure we do notify_remote_exit(ssh->frontend) _before_
connection_fatal(), since the latter is entitled to destroy the
backend so `ssh' may no longer be valid once it returns.

For the Unix port, switch exit(0) to gtk_main_quit() in
notify_remote_exit(), so that we don't exit before the subsequent
connection_fatal()!

[originally from svn r5445]

19 years agoPlatform-independent fixes for NO_IPV6 compilation (prevent
Simon Tatham [Sat, 5 Mar 2005 15:05:18 +0000 (15:05 +0000)]
Platform-independent fixes for NO_IPV6 compilation (prevent
segfaults on trying to access pfd->addressfamily which doesn't exist).

[originally from svn r5444]

19 years agoFixes for NO_IPV6 compilation under Unix.
Simon Tatham [Sat, 5 Mar 2005 15:04:48 +0000 (15:04 +0000)]
Fixes for NO_IPV6 compilation under Unix.

[originally from svn r5443]

19 years agoFix potential fault where -L/-R/-D could accept a string too long for our
Jacob Nevins [Fri, 4 Mar 2005 01:54:56 +0000 (01:54 +0000)]
Fix potential fault where -L/-R/-D could accept a string too long for our
portfwd[] array. (Not sure what would happen in this case, mind.)
Also modify -L/-R/-D code to cope with IPv4/IPv6 tunnels in saved settings.

[originally from svn r5440]

19 years agorm some magic numbers in ssh_setup_portfwd()
Jacob Nevins [Fri, 4 Mar 2005 01:20:20 +0000 (01:20 +0000)]
rm some magic numbers in ssh_setup_portfwd()

[originally from svn r5439]

19 years agoFix minor imprecisions in cfg->portfwd[] bounds checking (which erred on the
Jacob Nevins [Fri, 4 Mar 2005 01:02:53 +0000 (01:02 +0000)]
Fix minor imprecisions in cfg->portfwd[] bounds checking (which erred on the
side of rejecting input, not buffer overflow).

[originally from svn r5438]

19 years agoExplicitly set MIN and TIME when in raw mode to request single characters
Ben Harris [Thu, 3 Mar 2005 13:07:25 +0000 (13:07 +0000)]
Explicitly set MIN and TIME when in raw mode to request single characters
with no timeout.  This seems to make Plink work better on Solaris.

[originally from svn r5436]

19 years agoDraglists, implemented as up-down preference lists as in GTK.
Owen Dunn [Wed, 2 Mar 2005 23:33:59 +0000 (23:33 +0000)]
Draglists, implemented as up-down preference lists as in GTK.

[originally from svn r5434]

19 years agoMore confusing "(BYTE *) & val" style punctuation.
Jacob Nevins [Wed, 2 Mar 2005 15:53:50 +0000 (15:53 +0000)]
More confusing "(BYTE *) & val" style punctuation.
I blame GNU indent, although its confusion is understandable.

[originally from svn r5432]

19 years agonit: confusing punctuation
Jacob Nevins [Wed, 2 Mar 2005 00:46:22 +0000 (00:46 +0000)]
nit: confusing punctuation

[originally from svn r5430]

19 years agorm incorrect comment
Jacob Nevins [Wed, 2 Mar 2005 00:31:33 +0000 (00:31 +0000)]
rm incorrect comment

[originally from svn r5429]

19 years agoFix off-by-one in memory management of PPK reading routine, which could cause
Jacob Nevins [Tue, 1 Mar 2005 23:48:45 +0000 (23:48 +0000)]
Fix off-by-one in memory management of PPK reading routine, which could cause
1-byte buffer overflow when reading .PPK files with long lines (>=128 bytes
in header value -- probably only happened in practice in the comment field).

[originally from svn r5427]

19 years agoClose on exit. I'm not entirely happy with the distribution of this
Owen Dunn [Tue, 1 Mar 2005 21:38:06 +0000 (21:38 +0000)]
Close on exit.  I'm not entirely happy with the distribution of this
across mac_closeterm() and notify_remote_exit() but it will do for now.
Also, "PuTTY (inactive)" looks strange as a Mac window title in a way it
doesn't on Unix or Windows.  Perhaps we should find another way of
indicating that a window contains a dead session?

[originally from svn r5424]

19 years agoUpdate Inno Setup script. Tested with IS 5.0.8 on Win98SE; I think there are
Jacob Nevins [Tue, 1 Mar 2005 21:34:21 +0000 (21:34 +0000)]
Update Inno Setup script. Tested with IS 5.0.8 on Win98SE; I think there are
a few things that will faze whatever we're using currently (2.0.19 or
thereabouts?), but nothing desperately modern. (NB, the 0.57 putty.iss works
fine with 5.0.8 and the installer is even 40k smaller.)

Notable changes:
 - Uninstallation now runs a variant of `putty -cleanup'. The variance is
   only in the text displayed; the user is still prompted, and the default
   action is (now) "keep" in both cases.
 - Optionally add an icon in the Quick Launch bar.
 - Make desktop item optionally for all users. (not tested)
 - "Create a Start Menu group" now handled via IS' own mechanism.

[originally from svn r5423]

19 years agoMention `-cleanup' caveats on multi-user systems.
Jacob Nevins [Tue, 1 Mar 2005 15:18:34 +0000 (15:18 +0000)]
Mention `-cleanup' caveats on multi-user systems.
Mention installer in faq-cleanup.
Fix indexing snafu.

[originally from svn r5422]

19 years agoVC didn't like PATH_MAX. Use MAX_PATH instead. (This macro is mentioned in
Jacob Nevins [Tue, 1 Mar 2005 12:19:58 +0000 (12:19 +0000)]
VC didn't like PATH_MAX. Use MAX_PATH instead. (This macro is mentioned in
MSDN's SetCurrentDirectory() documentation, although I haven't found a
statement of where it's supposed to be defined.)

[originally from svn r5420]

19 years agoAdd context help to a couple of message boxes. Unfortunately the ones
Jacob Nevins [Tue, 1 Mar 2005 01:16:57 +0000 (01:16 +0000)]
Add context help to a couple of message boxes. Unfortunately the ones
I wanted to get to -- "software caused connection abort" and friends --
are going to be more involved (probably requiring some cross-platform
notion of help contexts), and these ones hardly seem worth the effort.
Still, I've done it now.

Side-effect: Pageant now uses the same `hinst' and `hwnd' globals as
everything else. Tested basic functionality.

[originally from svn r5417]

19 years agoMake it clearer that `-m' is only usable with SSH.
Jacob Nevins [Tue, 1 Mar 2005 00:33:18 +0000 (00:33 +0000)]
Make it clearer that `-m' is only usable with SSH.

[originally from svn r5416]

19 years agoMove the MessageBox-with-help function out into winutils.c, although it's
Jacob Nevins [Tue, 1 Mar 2005 00:00:09 +0000 (00:00 +0000)]
Move the MessageBox-with-help function out into winutils.c, although it's
still only used for the host key popups. Side-effects:
 - requested_help is a winstuff.h global
 - Pageant now defines winstuff.h globals

(Also, my previous fix to my improved host-key dialogs only got the "changed"
case, not the "unknown" case. Some days I shouldn't be let near a keyboard.)

[originally from svn r5415]

19 years agoMake things other than Pageant use request_file(), why not, although all of
Jacob Nevins [Mon, 28 Feb 2005 02:51:51 +0000 (02:51 +0000)]
Make things other than Pageant use request_file(), why not, although all of
its funkiness is switched off so the behaviour is the same as before.

[originally from svn r5414]

19 years agoFix for `pageant-dirhandle': a new wrapper functions `request_file()' maintains
Jacob Nevins [Mon, 28 Feb 2005 02:40:43 +0000 (02:40 +0000)]
Fix for `pageant-dirhandle': a new wrapper functions `request_file()' maintains
a separate CWD for the file requester, so that when the Open File box is not
open Pageant should stay where it was started.
(Also some other minor cleanups in this area of Pageant.)

[originally from svn r5413]
[this svn revision also touched putty-wishlist]

19 years agoPSFTP now needs wildcard.o, and was only getting it by luck. Make it explicit.
Jacob Nevins [Mon, 28 Feb 2005 00:17:09 +0000 (00:17 +0000)]
PSFTP now needs wildcard.o, and was only getting it by luck. Make it explicit.

[originally from svn r5411]

19 years agoMove SaneDialogBox()/SaneEndDialog() from winmisc.c to windlg.c, since they
Jacob Nevins [Sun, 27 Feb 2005 23:57:17 +0000 (23:57 +0000)]
Move SaneDialogBox()/SaneEndDialog() from winmisc.c to windlg.c, since they
seem to be PuTTY(tel)-specific (at least at the moment). Might save a bit
of space in the other binaries.

[originally from svn r5410]

19 years agoImprove Pageant's error reporting for private key load failures.
Jacob Nevins [Sun, 27 Feb 2005 23:15:22 +0000 (23:15 +0000)]
Improve Pageant's error reporting for private key load failures.

[originally from svn r5409]

19 years agoImprovements to PuTTYgen error reporting:
Jacob Nevins [Sun, 27 Feb 2005 23:01:11 +0000 (23:01 +0000)]
Improvements to PuTTYgen error reporting:
 - will now display a reason when it fails to load a key
 - uses existing error return from native keys
 - import.c had a lot of error descriptions which weren't going anywhere;
   since the strings are probably taking up space in the binary, we
   may as well use them

[originally from svn r5408]

19 years agoWarn on close. Also warn before use.
Owen Dunn [Sun, 27 Feb 2005 13:53:08 +0000 (13:53 +0000)]
Warn on close.  Also warn before use.

[originally from svn r5407]

19 years agoPull out the common compiler-specific workarounds and so on from individual
Jacob Nevins [Sat, 26 Feb 2005 17:43:47 +0000 (17:43 +0000)]
Pull out the common compiler-specific workarounds and so on from individual
resource files into windows/rcstuff.h.

[originally from svn r5405]

19 years agoAllow mkfiles.pl to put multiple verbatim sections in a Makefile, and use
Jacob Nevins [Sat, 26 Feb 2005 17:30:41 +0000 (17:30 +0000)]
Allow mkfiles.pl to put multiple verbatim sections in a Makefile, and use
one of these for the MacOSX CFLAGS tweak.

[originally from svn r5404]

19 years agoThe comment that Private-Hash: was not allowed in DSS PuTTY-User-Key-File-1
Jacob Nevins [Sat, 26 Feb 2005 15:50:29 +0000 (15:50 +0000)]
The comment that Private-Hash: was not allowed in DSS PuTTY-User-Key-File-1
keys was apparently incorrect; prior to r1413, it was both allowed, and
generated for passphraseless keys. Remove it and associated validation so that
people are able to load such keys into PuTTYgen to upgrade them, as suggested.

[originally from svn r5403]
[r1413 == 6608016fc28d97e9fd5f53cfc671f9e7ccafd8ce]

19 years agoFix segfault on forcible window closure.
Simon Tatham [Sat, 26 Feb 2005 15:13:13 +0000 (15:13 +0000)]
Fix segfault on forcible window closure.

[originally from svn r5402]

19 years agoSort out close-on-exit, connection_fatal(), fatalbox(), and
Simon Tatham [Sat, 26 Feb 2005 13:37:07 +0000 (13:37 +0000)]
Sort out close-on-exit, connection_fatal(), fatalbox(), and
[SessionWindow dealloc] (which was required in order to avoid
segfaulting when a redraw timer fired for a closed session window!).

[originally from svn r5400]

19 years agoWe weren't correctly discounting "." and ".." when they came from
Jacob Nevins [Sat, 26 Feb 2005 00:41:36 +0000 (00:41 +0000)]
We weren't correctly discounting "." and ".." when they came from
FindFirstFile(), with hilarious consequences for recursive transfers in
PSFTP. (PSCP appears to behave fine; it does its own "."/".." removal.)

[originally from svn r5398]

19 years agoMakefile.lcc mentions version.o instead of .obj (not that it matters, probably)
Jacob Nevins [Fri, 25 Feb 2005 21:26:30 +0000 (21:26 +0000)]
Makefile.lcc mentions version.o instead of .obj (not that it matters, probably)

[originally from svn r5397]

19 years agoPer Gunnar Floe spotted a reversed test in sftp_cleanup_requests().
Simon Tatham [Fri, 25 Feb 2005 09:59:24 +0000 (09:59 +0000)]
Per Gunnar Floe spotted a reversed test in sftp_cleanup_requests().

[originally from svn r5394]