]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
12 years agoMerge r9365 (bump version number to 0.62). branch-0.61 0.62
Simon Tatham [Sat, 10 Dec 2011 12:08:09 +0000 (12:08 +0000)]
Merge r9365 (bump version number to 0.62).

[originally from svn r9366]
[r9365 == c968d9fe8ea9a0fabc02ff7a384550ff350e819d]

12 years agoMerge r9357 (missing free_prompts).
Simon Tatham [Wed, 7 Dec 2011 19:09:29 +0000 (19:09 +0000)]
Merge r9357 (missing free_prompts).

[originally from svn r9358]
[r9357 == bb542eaeff5f7964f74c5893b7d3bec8656f0589]

12 years agoMerge r9355 (Pageant handle leak fix).
Simon Tatham [Mon, 28 Nov 2011 19:24:15 +0000 (19:24 +0000)]
Merge r9355 (Pageant handle leak fix).

[originally from svn r9356]
[r9355 == 1682b42b87f441cf1e80ec72e82eecf1726eb99b]

12 years agoMerge r9353 (missing bit of 'pre-release' version spport).
Simon Tatham [Mon, 28 Nov 2011 19:19:34 +0000 (19:19 +0000)]
Merge r9353 (missing bit of 'pre-release' version spport).

[originally from svn r9354]
[r9353 == 7d4789dccbc5431a0a7a18d10ff7ceece87f6f7a]

12 years agoMerge r9351 (release checklist update). I can easily see myself using
Simon Tatham [Sun, 27 Nov 2011 11:11:20 +0000 (11:11 +0000)]
Merge r9351 (release checklist update). I can easily see myself using
the branch copy of the checklist for 0.62 and forgetting things I only
added to the trunk version :-)

[originally from svn r9352]
[r9351 == ce5be27773518715df905459bd7edd3fcd46ae90]

12 years agoMerge r9343 (the new 'pre-release' version type).
Simon Tatham [Sat, 26 Nov 2011 17:45:51 +0000 (17:45 +0000)]
Merge r9343 (the new 'pre-release' version type).

[originally from svn r9344]
[r9343 == 1dff23a2143b7a6ce1084a6308569d14c2826240]

12 years agoMerge r9276 (the PuTTYtel session-saving assertion failure fix).
Simon Tatham [Tue, 13 Sep 2011 07:35:55 +0000 (07:35 +0000)]
Merge r9276 (the PuTTYtel session-saving assertion failure fix).

[originally from svn r9277]
[r9276 == 9da44eeb266f7c261e2f2c5787a2cb1407e55218]

12 years agoMerge r9264 (the Pageant backwards compatibility fix).
Simon Tatham [Sat, 13 Aug 2011 14:50:54 +0000 (14:50 +0000)]
Merge r9264 (the Pageant backwards compatibility fix).

[originally from svn r9265]
[r9264 == 52e5dae242e331ae34106eb3cc260067902d091d]

12 years agoMerge r9254 (the PSCP/PSFTP protocol override fix).
Simon Tatham [Wed, 27 Jul 2011 18:46:33 +0000 (18:46 +0000)]
Merge r9254 (the PSCP/PSFTP protocol override fix).

[originally from svn r9255]
[r9254 == f14953d9e94c176cfc928bb719d6f613da96717e]

12 years agoMerge r9226 and r9232 (userauth messaging cleanup, fixing spurious
Simon Tatham [Mon, 18 Jul 2011 18:10:46 +0000 (18:10 +0000)]
Merge r9226 and r9232 (userauth messaging cleanup, fixing spurious
"Access denied" from failed GSSAPI).

[originally from svn r9233]
[r9226 == 0b79fe0bcbfd4113e8ed413fe0c8e0bbd34ea5b2]
[r9232 == 363f57396f89c69f50412b7b3a3bdce37454a1d3]

12 years agoMerge r9221 (the VT100 line drawing fix).
Simon Tatham [Sat, 16 Jul 2011 11:27:05 +0000 (11:27 +0000)]
Merge r9221 (the VT100 line drawing fix).

[originally from svn r9224]
[r9221 == 4fd112e15ddcc135980547147c44ff1afe04f00e]

12 years agoMerge r9217 (Jacob's underlining fix).
Simon Tatham [Sat, 16 Jul 2011 11:26:19 +0000 (11:26 +0000)]
Merge r9217 (Jacob's underlining fix).

[originally from svn r9223]
[r9217 == 086764f5f4d0a50a87edfa1cff18b26edf36c94a]

12 years agoReadjust checklist, because actually the section on updating the
Simon Tatham [Tue, 12 Jul 2011 19:59:15 +0000 (19:59 +0000)]
Readjust checklist, because actually the section on updating the
website _wasn't_ missing - I just looked straight past it somehow.
Fold the two versions together into one more complete than either.

[originally from svn r9206]

12 years agoVarious updates to the release checklist:
Simon Tatham [Tue, 12 Jul 2011 19:56:00 +0000 (19:56 +0000)]
Various updates to the release checklist:
 - for 'ixion' read 'atreus' throughout
 - the signature-checking commands needed minor modifications to cope
   with more *sums files
 - stated a few things explicitly which were previously implied, in
   case the next inter-release gap is also long enough for me to
   forget them.

[originally from svn r9205]

12 years agoBump version number prior to tagging 0.61 release. 0.61
Simon Tatham [Tue, 12 Jul 2011 18:26:18 +0000 (18:26 +0000)]
Bump version number prior to tagging 0.61 release.

[originally from svn r9202]

12 years agoFix the _rest_ of the Windows compile warnings. (ahem)
Simon Tatham [Tue, 12 Jul 2011 18:13:33 +0000 (18:13 +0000)]
Fix the _rest_ of the Windows compile warnings. (ahem)

[originally from svn r9201]

12 years agoFix Windows compile warnings by adding explicit casts.
Simon Tatham [Tue, 12 Jul 2011 18:09:46 +0000 (18:09 +0000)]
Fix Windows compile warnings by adding explicit casts.

[originally from svn r9200]

12 years agoAdd a directory 'contrib/cygtermd', containing the source code for my
Simon Tatham [Sun, 10 Jul 2011 14:22:32 +0000 (14:22 +0000)]
Add a directory 'contrib/cygtermd', containing the source code for my
hacky helper program to let PuTTY act as a local pterm-oid on
Cygwin-enabled Windows systems.

[originally from svn r9191]

12 years agoGenerate some checksum files with more up-to-date hash functions than
Simon Tatham [Sun, 10 Jul 2011 11:45:52 +0000 (11:45 +0000)]
Generate some checksum files with more up-to-date hash functions than
MD5. Shipped (and signed) alongside the existing 'md5sums' file.

[originally from svn r9189]

12 years agoFix 'winadj-success': since at least one server (boks_sshd) blithely responds
Jacob Nevins [Fri, 1 Jul 2011 21:53:41 +0000 (21:53 +0000)]
Fix 'winadj-success': since at least one server (boks_sshd) blithely responds
to "winadj@putty.projects.tartarus.org" with SSH_MSG_CHANNEL_SUCCESS despite
probably having no idea what it means, treat this just the same as
SSH_MSG_CHANNEL_FAILURE instead of killing the connection.
Tested only as far as making sure that winadj/FAILURE with a normal server
isn't _completely_ broken.

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

12 years agoRewrite gprefs() in settings.c so that its input mapping includes
Simon Tatham [Sat, 25 Jun 2011 17:37:31 +0000 (17:37 +0000)]
Rewrite gprefs() in settings.c so that its input mapping includes
information about where to put items that aren't mentioned in the
saved configuration. So far the only nontrivial use I've made of this
facility is to default to placing KEX_RSA just above KEX_WARN in the
absence of any other information, which should fix
'ssh2-rsa-kex-pref'.

While I'm here I've rewritten wprefs() on general principles to remove
the needless length limit, since I was touching it anyway. The length
limit is still in gprefs (but I've lengthened it just in case).

[originally from svn r9181]

12 years agoMake Pageant use the same SID-selection logic as the Pageant client
Simon Tatham [Wed, 8 Jun 2011 20:47:07 +0000 (20:47 +0000)]
Make Pageant use the same SID-selection logic as the Pageant client
code (as introduced in r9043), so that it uses the user SID rather
than the default SID.

This does change the access-control model, in that a Pageant running
with administrator privilege will now serve keys to an unprivileged
PuTTY running as the same user who started Pageant. Owen and I think
this isn't a problem (in particular, it will still not serve keys to a
_different_ user).

More importantly, making the Pageant client and server code work the
same way means that PuTTY and Pageant can still talk to each other
when UAC is turned off, which we've had several reports of r9043
having broken.

[originally from svn r9178]
[r9043 == 05f22632eb45c9b8d17e8ffe7aa97e2590f8f11c]

12 years agoWhen we fail to get a response from Pageant, we should log the fact.
Simon Tatham [Wed, 8 Jun 2011 20:39:06 +0000 (20:39 +0000)]
When we fail to get a response from Pageant, we should log the fact.
Currently, if the IPC exchange goes wrong, the Event Log just prints
"Pageant is running. Requesting keys." and then goes on to the next
step without ever saying what happened.

[originally from svn r9177]

13 years agoFixes (mostly from Colin Watson, a couple redone by me) to make Unix
Simon Tatham [Sat, 7 May 2011 10:57:19 +0000 (10:57 +0000)]
Fixes (mostly from Colin Watson, a couple redone by me) to make Unix
PuTTY compile cleanly under gcc 4.6.0 without triggering any of its
new warnings.

[originally from svn r9169]

13 years agoThe documentation was still claiming that we don't support x11-auth.
Jacob Nevins [Fri, 8 Apr 2011 15:52:02 +0000 (15:52 +0000)]
The documentation was still claiming that we don't support x11-auth.

[originally from svn r9149]

13 years agoNote the possibility of a pause due to /dev/random blocking.
Jacob Nevins [Wed, 9 Mar 2011 18:10:47 +0000 (18:10 +0000)]
Note the possibility of a pause due to /dev/random blocking.

[originally from svn r9125]

13 years agoImplement zlib@openssh.com, using the rekey-after-userauth method suggested in
Jacob Nevins [Fri, 4 Mar 2011 22:34:47 +0000 (22:34 +0000)]
Implement zlib@openssh.com, using the rekey-after-userauth method suggested in
the wishlist entry.

[originally from svn r9120]
[this svn revision also touched putty-website,putty-wishlist]

13 years agoColin Watson reports that gnome-session has been known to leave
Simon Tatham [Wed, 2 Mar 2011 19:12:42 +0000 (19:12 +0000)]
Colin Watson reports that gnome-session has been known to leave
SIGPIPE ignored in its child processes, leading to unexpected
behaviour inside pterms. (The gnome-session I'm sitting in front of
doesn't seem to do this as far as I can tell, but I don't doubt there
are some that do.) Add SIGPIPE to the list of signals we reset to
default behaviour before launching pterm's child process.

[originally from svn r9117]

13 years agoSet the 'must_close_session' flag at the end of close_session(), so
Simon Tatham [Wed, 2 Mar 2011 18:52:03 +0000 (18:52 +0000)]
Set the 'must_close_session' flag at the end of close_session(), so
that we won't keep calling close_session() again the next time we go
round the message loop. Should fix unclean-close-hang. Thanks to Simon
Coleman for debugging.

[originally from svn r9115]

13 years agoFix probably-harmless type mismatch in nogss.c (and #include "putty.h" to stop
Jacob Nevins [Wed, 2 Mar 2011 00:18:03 +0000 (00:18 +0000)]
Fix probably-harmless type mismatch in nogss.c (and #include "putty.h" to stop
it happening again; this was spotted by GCC's "-flto" option).

[originally from svn r9114]

13 years agoAdd some extra validation to zlib decompression (primarily to shut up a GCC 4.6
Jacob Nevins [Tue, 1 Mar 2011 23:44:06 +0000 (23:44 +0000)]
Add some extra validation to zlib decompression (primarily to shut up a GCC 4.6
warning).

[originally from svn r9113]

13 years agoAdd some "#ifdef OPTIMISE_SCROLL" scar tissue to placate GCC 4.6
Jacob Nevins [Tue, 1 Mar 2011 23:10:16 +0000 (23:10 +0000)]
Add some "#ifdef OPTIMISE_SCROLL" scar tissue to placate GCC 4.6
-Wunused-but-set-variable.

[originally from svn r9112]

13 years agoRemove an unused variable (should shut up a warning from GCC 4.6).
Jacob Nevins [Tue, 1 Mar 2011 23:04:37 +0000 (23:04 +0000)]
Remove an unused variable (should shut up a warning from GCC 4.6).

[originally from svn r9111]

13 years agoUse pid_t more consistently. Should shut up a warning from GCC 4.6, and may
Jacob Nevins [Tue, 1 Mar 2011 23:00:32 +0000 (23:00 +0000)]
Use pid_t more consistently. Should shut up a warning from GCC 4.6, and may
conceivably help on platforms where int and pid_t aren't sufficiently similar.

[originally from svn r9110]

13 years agoRejig the bottom-level loops in internal_mul_* to use pointers instead
Simon Tatham [Tue, 22 Feb 2011 19:09:27 +0000 (19:09 +0000)]
Rejig the bottom-level loops in internal_mul_* to use pointers instead
of array indices. You'd hope that compilers could automatically turn
the one representation into the other if it was faster to do so, but
apparently not: even on gcc -O3, this source transformation gains over
15% performance.

[originally from svn r9105]

13 years agoMake bignum.py self-contained, by importing versions of the two
Simon Tatham [Tue, 22 Feb 2011 00:06:12 +0000 (00:06 +0000)]
Make bignum.py self-contained, by importing versions of the two
functions I was depending on from my personal Python maths utility
module.

[originally from svn r9104]

13 years agoMove the malloc and free of scratch space out of the internal_mul
Simon Tatham [Mon, 21 Feb 2011 19:47:28 +0000 (19:47 +0000)]
Move the malloc and free of scratch space out of the internal_mul
routines into their callers, where they'll be done once for a whole
modpow rather than many times within each multiply. Doesn't save much
time as far as I can see - perhaps a couple of percent, one second in
the minute it takes to run the new bignum test suite - but seems like
a sensible idea anyway on general principles.

[originally from svn r9103]

13 years agoA few more modpow tests, exercising the fallback option. This is
Simon Tatham [Sun, 20 Feb 2011 15:42:44 +0000 (15:42 +0000)]
A few more modpow tests, exercising the fallback option. This is
mostly so I can valgrind both and make sure they free all their
workspace - a memory leak in this code would be not merely an
inconvenience but a security hazard.

[originally from svn r9101]

13 years agoAdd tests of modpow.
Simon Tatham [Sun, 20 Feb 2011 15:27:48 +0000 (15:27 +0000)]
Add tests of modpow.

[originally from svn r9100]

13 years agoNearly forgot. Reinstate the original unoptimised modpow, as a
Simon Tatham [Sun, 20 Feb 2011 15:14:02 +0000 (15:14 +0000)]
Nearly forgot. Reinstate the original unoptimised modpow, as a
fallback for when Montgomery is inapplicable.

(I may also at some point switch to using it for small exponents, if
speed testing should reveal that there's a noticeable threshold beyond
which preparing the Montgomery setup is uneconomical.)

[originally from svn r9099]

13 years agoFix bug in Karatsuba multiplication, which affected propagation of a
Simon Tatham [Sun, 20 Feb 2011 15:06:39 +0000 (15:06 +0000)]
Fix bug in Karatsuba multiplication, which affected propagation of a
carry by more than one word. Now the current set of test cases all
pass again.

[originally from svn r9098]

13 years agoBeginnings of a test suite for the bignum code. The output of
Simon Tatham [Sun, 20 Feb 2011 14:59:00 +0000 (14:59 +0000)]
Beginnings of a test suite for the bignum code. The output of
testdata/bignum.py is twice the size of the rest of the PuTTY source
put together, so I'm not checking it in.

This reveals bugs in the new multiplication code, which I have yet to
fix.

[originally from svn r9097]

13 years agoPrompt for a remote username in rlogin connections, if one wasn't
Simon Tatham [Fri, 18 Feb 2011 19:12:20 +0000 (19:12 +0000)]
Prompt for a remote username in rlogin connections, if one wasn't
specified in the configuration. Jacob's userpass abstraction proves
its worth in making this a trivial job.

(Actually reported by a user - somebody's still using rlogin!)

[originally from svn r9096]

13 years agoImplement the Chinese Remainder Theorem optimisation for speeding up
Simon Tatham [Fri, 18 Feb 2011 08:25:39 +0000 (08:25 +0000)]
Implement the Chinese Remainder Theorem optimisation for speeding up
RSA private key operations by making use of the fact that we know the
factors of the modulus.

[originally from svn r9095]

13 years agoImplement the Montgomery technique for speeding up modular
Simon Tatham [Fri, 18 Feb 2011 08:25:38 +0000 (08:25 +0000)]
Implement the Montgomery technique for speeding up modular
exponentiation by replacing the modulo operation by a cleverly chosen
multiplication. This was not worth doing in the previous state of the
code (because my multiply was about as slow as my modulo), but now
that multiplication has been sped up by the Karatsuba optimisation,
Montgomery becomes worthwhile.

[originally from svn r9094]

13 years agoImplement the Karatsuba technique for recursive divide-and-conquer
Simon Tatham [Fri, 18 Feb 2011 08:25:37 +0000 (08:25 +0000)]
Implement the Karatsuba technique for recursive divide-and-conquer
optimisation of large multiplies.

[originally from svn r9093]

13 years agoAdd some appropriate bignum typedefs for generic 64-bit systems,
Simon Tatham [Fri, 18 Feb 2011 08:25:36 +0000 (08:25 +0000)]
Add some appropriate bignum typedefs for generic 64-bit systems,
setting BignumInt to 32 bits. gcc defines _LP64 on x86-64 and
presumably on other 64-bit architectures, so I've conditioned my
defines on that in the hope that they won't need redoing for the next
few such architectures.

I've also added a set for _LLP64, but it's untested as yet.

[originally from svn r9092]

13 years agoAllow setting the WM_CLASS X window property as a configuration option
Simon Tatham [Sat, 15 Jan 2011 11:39:44 +0000 (11:39 +0000)]
Allow setting the WM_CLASS X window property as a configuration option
in saved sessions, so that a programmable window manager can
distinguish different PuTTYs/pterms on startup and assign them
different window management properties.

[originally from svn r9078]

13 years agoTweak to r7635: when changing between protocols in the configuration dialog
Jacob Nevins [Fri, 14 Jan 2011 19:57:00 +0000 (19:57 +0000)]
Tweak to r7635: when changing between protocols in the configuration dialog
and avoiding trashing a non-default port, don't treat a port of 0 as special;
this was causing defaults to "freeze in" for sequences of clicks like SSH,
Raw, Telnet.
Arrange that a port of 0 (which in a backend indicates no default) is displayed
as a blank in the port box, to make this less jarring.

[originally from svn r9077]
[r7635 == db7cc1cba6dbd229db63d8ab1b2b86125c5d5933]

13 years agoIt's a new year.
Jacob Nevins [Wed, 5 Jan 2011 12:01:00 +0000 (12:01 +0000)]
It's a new year.

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

13 years agoRemove references to the now-dead Mac OS 9 port.
Jacob Nevins [Wed, 5 Jan 2011 11:58:52 +0000 (11:58 +0000)]
Remove references to the now-dead Mac OS 9 port.

[originally from svn r9071]

13 years agoWhen iterating over all channels for a dead SSH connection, don't miss out
Jacob Nevins [Mon, 3 Jan 2011 16:50:41 +0000 (16:50 +0000)]
When iterating over all channels for a dead SSH connection, don't miss out
those in the CHAN_SOCKDATA_DORMANT state (i.e., local-to-remote forwardings
which the SSH server had not yet acknowledged).
Marcel Kilgus has been running with the ssh_do_close() patch for nearly two
years (*cough*) and reports that it has eliminated frequent
'unclean-close-crash' symptoms for him (due to the unclosed socket generating
a pfd_closing() which accessed freed memory), although I've not reproduced
that. The patch to ssh_free() is mine and not known to fix any symptoms.

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

13 years agoStop general_textout() from trying to slice up the input clipping
Simon Tatham [Thu, 30 Dec 2010 00:06:43 +0000 (00:06 +0000)]
Stop general_textout() from trying to slice up the input clipping
rectangle into smaller ones: it doesn't work any more, since the new
variable-pitch code can now call general_textout() with a larger
clipping rectangle than the text it's meant to be displaying. Instead,
general_textout() now uses the same semantics as the next loop up in
do_text_internal(): the first piece of text it displays uses the
opacity setting passed in, which blanks the entire clipping rectangle
if necessary, and then subsequent overlays are non-opaque. And the
same clipping rectangle is used throughout.

[originally from svn r9067]

13 years agoRationalise the mechanism in do_text_internal for providing the 'lpDx'
Simon Tatham [Wed, 29 Dec 2010 23:48:54 +0000 (23:48 +0000)]
Rationalise the mechanism in do_text_internal for providing the 'lpDx'
array to ExtTextOut:
 - move it inside the new big loop (this should fix a potential bug
   whereby the DBCS handling altered some elements of it but the loop
   did not actually step along it)
 - initialise it more sensibly
 - rename it to lpDx rather than IpDx, since as far as I can tell the
   latter name was derived from a misreading of the former in the
   Windows API docs.

[originally from svn r9066]

13 years agoMove some not-compiled-in debug code somewhere more useful.
Jacob Nevins [Wed, 29 Dec 2010 22:38:36 +0000 (22:38 +0000)]
Move some not-compiled-in debug code somewhere more useful.

[originally from svn r9065]

13 years agoFix segfault in general_textout with variable-pitch fonts: we can't
Simon Tatham [Wed, 29 Dec 2010 16:00:58 +0000 (16:00 +0000)]
Fix segfault in general_textout with variable-pitch fonts: we can't
pass null lpDx, because general_textout depends on it being filled in.
Instead we null it out in the calls to subroutines _from_
general_textout.

[originally from svn r9064]

13 years agoSupport for using variable-pitch fonts for the terminal on Windows.
Simon Tatham [Wed, 29 Dec 2010 14:11:25 +0000 (14:11 +0000)]
Support for using variable-pitch fonts for the terminal on Windows.

Done in much the same way as it is in the GTK front end: the character
cell width is determined using the font's digits (which seems to give
generally not-too-offensive spacing in most cases, at the expense of
Ms and Ws typically overhanging a bit into adjacent cells) and each
character is centred in its cell. Overhangs never leave permanent
droppings on the window, because the existing work done in r5003
handles them just fine even in this stressful scenario.

There's a hacky new checkbox in the Appearance panel to make
variable-pitch fonts appear in the font selector (they still don't by
default, because I still think it's _usually_ not What You Want); the
checkbox state is not actually stored as part of a saved session, but
it should be automatically ticked when reloading a session that's got
a variable pitch font selected.

(I'm half-expecting a potential flurry of requests for this feature in
the wake of http://xkcd.com/840/ , so I thought I'd pre-empt them :-)

[originally from svn r9063]
[r5003 == ba470dec5e37ffbde05425f48e7e9a64219aec2e]

13 years agoVyacheslav Andrejev points out a heap management goof in the new jump
Simon Tatham [Wed, 29 Dec 2010 13:35:44 +0000 (13:35 +0000)]
Vyacheslav Andrejev points out a heap management goof in the new jump
list code. Free the old value of the pointer variable we just
overwrote, not the new one!

[originally from svn r9062]

13 years agoThou shalt not suffer a misplaced apostrophe to live.
Simon Tatham [Wed, 29 Dec 2010 11:57:04 +0000 (11:57 +0000)]
Thou shalt not suffer a misplaced apostrophe to live.

[originally from svn r9061]

13 years agoFix resize handling when enabling and disabling full-screen mode.
Simon Tatham [Mon, 27 Dec 2010 12:58:39 +0000 (12:58 +0000)]
Fix resize handling when enabling and disabling full-screen mode.

I'm not sure whether I broke this in the recent revamp or whether it
was always broken, but: transitions in and out of full-screen mode
work by first maximising or restoring the window, which triggers a
WM_SIZE, whose handler then fiddles with the window style to disable
or re-enable all the furniture, which in turn triggers a recursive
WM_SIZE. The trouble is, after returning from the handler for the
inner WM_SIZE, the rest of the outer handler runs, and its client area
size is now out of date.

So I've added a flag which is set when a resize is handled 'properly',
so that after returning from the inner WM_SIZE handler the outer one
knows not to try to redo badly work that's already been done well.

[originally from svn r9056]

13 years agoAdd an option to disable SSH-2 banners.
Jacob Nevins [Mon, 27 Dec 2010 01:19:13 +0000 (01:19 +0000)]
Add an option to disable SSH-2 banners.

[originally from svn r9055]

13 years agoFix up svn:eol-style and svn:keywords on new files.
Jacob Nevins [Mon, 27 Dec 2010 00:24:48 +0000 (00:24 +0000)]
Fix up svn:eol-style and svn:keywords on new files.

[originally from svn r9054]

13 years agoRemove a couple of unused variables.
Jacob Nevins [Sun, 26 Dec 2010 23:23:11 +0000 (23:23 +0000)]
Remove a couple of unused variables.

[originally from svn r9053]

13 years agoTry to delete jump lists in "-cleanup".
Jacob Nevins [Sun, 26 Dec 2010 20:00:45 +0000 (20:00 +0000)]
Try to delete jump lists in "-cleanup".

[originally from svn r9050]

13 years agoOptionally define PropVariantInit() locally to restore ability to build with
Jacob Nevins [Sun, 26 Dec 2010 18:29:53 +0000 (18:29 +0000)]
Optionally define PropVariantInit() locally to restore ability to build with
MinGW after r9046, and munge the COMPTR() macro to remove a couple of warnings
with my MinGW GCC (3.4.5).

[originally from svn r9049]
[r9046 == 1a03fa9292f2258384d037994d8e8e119ac11458]

13 years agoDocument the behaviour of Alt in the "hybrid" resizing mode alluded to in
Jacob Nevins [Thu, 23 Dec 2010 22:19:13 +0000 (22:19 +0000)]
Document the behaviour of Alt in the "hybrid" resizing mode alluded to in
r9045.

[originally from svn r9047]
[r9045 == 6cd24c839d7f9b96b375e12560b254a1a9013dbf]

13 years agoSupport for Windows 7 jump lists (right-click on a program's taskbar
Simon Tatham [Thu, 23 Dec 2010 17:32:28 +0000 (17:32 +0000)]
Support for Windows 7 jump lists (right-click on a program's taskbar
icon, even if the program isn't running at the time, to be presented
with an application-defined collection of helpful links). The current
jump list is updated every time a saved session is loaded, and shows
the last few launchable saved sessions (i.e. not those like Default
Settings) that were loaded. Also, if Pageant or PuTTYgen or both is in
the same directory as the PuTTY binary, the jump list will present
links to launch those too.

Based on a patch sent last year by Daniel B. Roy, though it's barely
recognisable any more...

[originally from svn r9046]

13 years agoThe special treatment of Alt-resize (to cause resizing to affect the
Simon Tatham [Thu, 23 Dec 2010 17:16:19 +0000 (17:16 +0000)]
The special treatment of Alt-resize (to cause resizing to affect the
font instead of the terminal size) should only be active in
RESIZE_EITHER mode - in RESIZE_TERM it is worse than useless.

[originally from svn r9045]

13 years agoAnother fix to yesterday's window-resizing revamp: when restoring from
Simon Tatham [Thu, 23 Dec 2010 15:44:20 +0000 (15:44 +0000)]
Another fix to yesterday's window-resizing revamp: when restoring from
maximised state, we must be sure to disable the window offset used to
centre the terminal in cases where the window is non-negotiably the
wrong size (e.g. maximised). Hence we must call reset_window after our
terminal resize.

[originally from svn r9044]

13 years agoMore careful owner SID selection in the Pageant client code. This
Simon Tatham [Thu, 23 Dec 2010 15:22:50 +0000 (15:22 +0000)]
More careful owner SID selection in the Pageant client code. This
should solve some of the SID-mismatch issues we've occasionally had
reported. Because it's a modification on the client side, it doesn't
affect the security of Pageant itself.

[originally from svn r9043]

13 years agoPay attention to the width and height provided in WM_SIZE even when
Simon Tatham [Wed, 22 Dec 2010 16:14:11 +0000 (16:14 +0000)]
Pay attention to the width and height provided in WM_SIZE even when
restoring a maximised window.

Failure to do this was noticeable in the following scenario (again
using Aero UI enhancements):
 1. resize window using topmost resize handle, and move pointer to top
    of screen which 'maximises' the window vertically
 2. now maximise the window properly using the maximise button in top
    right
 3. now restore. Notepad restores to its position before step 1,
    because Aero remembers that position for the purpose, but PuTTY
    thinks it knows better. Only now it doesn't any more.

[originally from svn r9041]

13 years agoReorganise handling of WM_SIZE to fix two generality problems.
Simon Tatham [Wed, 22 Dec 2010 15:49:33 +0000 (15:49 +0000)]
Reorganise handling of WM_SIZE to fix two generality problems.

Firstly, maximise and restore events were expected never to occur
during an interactive resize process (i.e. between WM_ENTERSIZEMOVE
and WM_EXITSIZEMOVE), but in fact Aero now allows this to happen if
you move the pointer to the top of the screen while dragging the
window.

Secondly, plain old WM_SIZE events were expected never to occur
_outside_ interactive resizes, but Aero permits that too (e.g.
Windows-left and Windows-right), and also third-party window
repositioning tools will send these.

[originally from svn r9040]

13 years agoProtect against a (non-security-related) buffer overrun if PuTTY is
Simon Tatham [Tue, 21 Dec 2010 10:11:32 +0000 (10:11 +0000)]
Protect against a (non-security-related) buffer overrun if PuTTY is
installed somewhere with an exceptionally long pathname.

[originally from svn r9039]

13 years agoAdd an 'XLFLAGS' make variable to Makefile.vc, permitting user-
Simon Tatham [Mon, 20 Dec 2010 13:04:34 +0000 (13:04 +0000)]
Add an 'XLFLAGS' make variable to Makefile.vc, permitting user-
supplied extra link flags. This makes it reasonably convenient to
compile for Visual Studio debugging: just build using

  nmake /f Makefile.vc XFLAGS="/Zi /Od" XLFLAGS="/debug"

then load the resulting executable into Visual Studio (using 'Open
Project' rather than 'Open File') and the debugger should be able to
access the source.

[originally from svn r9038]

13 years agoAdd more possible baud rates to the Unix serial backend. These are the
Jacob Nevins [Wed, 8 Dec 2010 14:21:35 +0000 (14:21 +0000)]
Add more possible baud rates to the Unix serial backend. These are the
union of rates found in the termios.h of Linux 2.6.24 and "SunOS 5.6
Generic_105181-29 sun4u sparc SUNW,Ultra-4" machines. After a patch by
Thomas Bechtold.

[originally from svn r9028]

13 years agoMore sensible (and also more idiomatic) bounds checking on esc_args.
Simon Tatham [Tue, 7 Dec 2010 00:21:42 +0000 (00:21 +0000)]
More sensible (and also more idiomatic) bounds checking on esc_args.

[originally from svn r9027]

13 years agoDavid Laight reports that sometimes reads on a serial port will
Simon Tatham [Sat, 6 Nov 2010 17:22:38 +0000 (17:22 +0000)]
David Laight reports that sometimes reads on a serial port will
attempt to block, and hence return EAGAIN/EWOULDBLOCK, in spite of
the port having been reported readable by select(2). Don't treat
those errors as fatal.

[originally from svn r9020]

13 years agoBah, r9008 caused an assertion failure on Windows due to a clash with the
Jacob Nevins [Mon, 27 Sep 2010 11:33:40 +0000 (11:33 +0000)]
Bah, r9008 caused an assertion failure on Windows due to a clash with the
shortcuts for the preference list buttons. That'll teach me to only test the
Gtk version.

[originally from svn r9010]
[r9008 == 5981b5e99d30effebe2ce2f7fd5a57d0eba15381]

13 years agoAdd index terms for GSSAPI stuff. Mention GSSAPI in "use system username"
Jacob Nevins [Sat, 25 Sep 2010 16:18:02 +0000 (16:18 +0000)]
Add index terms for GSSAPI stuff. Mention GSSAPI in "use system username"
section and other tweaks.

[originally from svn r9009]

13 years agoSince GSSAPI is now on its own panel, we may as well have a full set of
Jacob Nevins [Sat, 25 Sep 2010 15:51:14 +0000 (15:51 +0000)]
Since GSSAPI is now on its own panel, we may as well have a full set of
keyboard shortcuts.

[originally from svn r9008]

13 years agoOops: r9004 should have removed various pieces from the Makefile and
Simon Tatham [Sat, 25 Sep 2010 08:37:30 +0000 (08:37 +0000)]
Oops: r9004 should have removed various pieces from the Makefile and
header file setup too.

[originally from svn r9005]
[r9004 == 7ac1f17aab27c5b20d41e325841eecf388929dec]

13 years agoRetire the old Mac Classic port directory! It's been unused for
Simon Tatham [Sat, 25 Sep 2010 07:30:08 +0000 (07:30 +0000)]
Retire the old Mac Classic port directory! It's been unused for
ages, is increasingly irrelevant now that 'Mac' pretty much
universally means something running OS X, is probably bit-rotted
past usefulness already, and certainly will be after the next time
some major reengineering takes place.

[originally from svn r9004]

13 years agoCleanups of the GSSAPI support. On Windows, standard GSS libraries
Simon Tatham [Sat, 25 Sep 2010 07:16:56 +0000 (07:16 +0000)]
Cleanups of the GSSAPI support. On Windows, standard GSS libraries
are now loaded from standard locations (system32 for SSPI, the
registry-stored MIT KfW install location for KfW) rather than using
the risky default DLL search path; I've therefore also added an
option to manually specify a GSS DLL we haven't heard of (which
should in principle Just Work provided it supports proper GSS-API as
specified in the RFC). The same option exists on Unix too, because
it seemed like too useful an idea to reserve to Windows. In
addition, GSSAPI is now documented, and also (unfortunately) its GUI
configuration has been moved out into a sub-subpanel on the grounds
that it was too big to fit in Auth.

[originally from svn r9003]

13 years agoUse the same key for both saving and loading the GSSAPI implementation
Jacob Nevins [Wed, 15 Sep 2010 18:50:34 +0000 (18:50 +0000)]
Use the same key for both saving and loading the GSSAPI implementation
preference list. Spotted by Daniel Kessler.

[originally from svn r8999]

13 years agoFix obvious braino in the Windows GSSAPI library display names.
Simon Tatham [Mon, 13 Sep 2010 08:45:18 +0000 (08:45 +0000)]
Fix obvious braino in the Windows GSSAPI library display names.

[originally from svn r8994]

13 years agoCreate, and use for all loads of system DLLs, a wrapper function
Simon Tatham [Mon, 13 Sep 2010 08:29:45 +0000 (08:29 +0000)]
Create, and use for all loads of system DLLs, a wrapper function
called load_system32_dll() which constructs a full pathname for the
DLL using GetSystemDirectory.

The only DLL load not covered by this change is the one for
gssapi32.dll, because that one's not in the system32 directory.

[originally from svn r8993]

13 years agoMissing close() causing resource leak when reading from /dev/random.
Simon Tatham [Thu, 9 Sep 2010 14:36:46 +0000 (14:36 +0000)]
Missing close() causing resource leak when reading from /dev/random.

[originally from svn r8991]

13 years agoRemove redundant check for NULL in sshfwd_close(). The thing we're
Simon Tatham [Thu, 9 Sep 2010 14:35:16 +0000 (14:35 +0000)]
Remove redundant check for NULL in sshfwd_close(). The thing we're
testing against NULL has already been dereferenced by the time we
bother to test it, so it's a bit pointless - and in any case, no
null pointer can come to this function from any existing call site.

[originally from svn r8990]

13 years agoCast incoming characters to unsigned char to avoid accidental sign
Simon Tatham [Thu, 9 Sep 2010 14:32:25 +0000 (14:32 +0000)]
Cast incoming characters to unsigned char to avoid accidental sign
extension. Since ldisc_send() uses bit 8 as an internal flag, we
shouldn't be setting it except when we really want to.

[originally from svn r8989]

13 years agoWhen we disconnect because we have no supported authentication
Simon Tatham [Tue, 10 Aug 2010 18:45:51 +0000 (18:45 +0000)]
When we disconnect because we have no supported authentication
methods left to try, it's nice to have the version of that message
going to the client contain the list of methods sent by the server.
Saves a user having to pull it out of an SSH packet log.

[originally from svn r8981]

13 years agoMass correction of svn:keywords and svn:eol-style properties.
Simon Tatham [Tue, 10 Aug 2010 17:21:25 +0000 (17:21 +0000)]
Mass correction of svn:keywords and svn:eol-style properties.

[originally from svn r8980]

13 years agoCancelling a remote port forwarding that had been refused by the server caused
Jacob Nevins [Fri, 30 Jul 2010 20:47:03 +0000 (20:47 +0000)]
Cancelling a remote port forwarding that had been refused by the server caused
a double-free. Reported and diagnosed by Sven Schaepe.
Also fix a minor memory leak in ssh_free().

[originally from svn r8975]

13 years agoA comment typo fix I've had lying around for a while.
Jacob Nevins [Fri, 30 Jul 2010 19:45:40 +0000 (19:45 +0000)]
A comment typo fix I've had lying around for a while.

[originally from svn r8974]

13 years agoPatch from Alan Ning (somewhat polished by me): introduce a flag
Simon Tatham [Sun, 4 Jul 2010 22:53:53 +0000 (22:53 +0000)]
Patch from Alan Ning (somewhat polished by me): introduce a flag
called 'pending_close'. This deals with the situation in which we're
forwarding a port, have received and locally buffered some data from
the local endpoint but not yet been able to pass it down the SSH
connection due to window limitations, and then the local endpoint
closes its socket. In this situation what we've been doing until now
is to immediately send SSH2_MSG_CHANNEL_CLOSE, causing the data
still in our local buffer to be lost; now we instead set the new
flag, which will remind us to send SSH2_MSG_CHANNEL_CLOSE _after_ we
empty our bufchain.

Should fix at least one manifestation of 'portfwd-close', though I
don't know if it's the cause of all the reports we've ever seen.

[originally from svn r8971]

13 years agoSet WM_TRANSIENT_FOR appropriately on the "about" box so that fvwm doesn't
Ben Harris [Tue, 29 Jun 2010 22:00:43 +0000 (22:00 +0000)]
Set WM_TRANSIENT_FOR appropriately on the "about" box so that fvwm doesn't
insist on finding a bit of spare screen to put it in.  Still pondering whether
it's sensible to do this with the "change settings" box as well.

[originally from svn r8970]

13 years agoMove '-w' in the #! line into 'use warnings;' in the Perl code, to
Simon Tatham [Sun, 30 May 2010 22:50:18 +0000 (22:50 +0000)]
Move '-w' in the #! line into 'use warnings;' in the Perl code, to
simplify the #! line.

[originally from svn r8967]

13 years ago'perl -w' safety in mkfiles.pl.
Simon Tatham [Sat, 29 May 2010 14:04:09 +0000 (14:04 +0000)]
'perl -w' safety in mkfiles.pl.

[originally from svn r8958]

14 years agoRestore the configure check for GTK 1, which I accidentally removed
Simon Tatham [Sat, 22 May 2010 14:07:25 +0000 (14:07 +0000)]
Restore the configure check for GTK 1, which I accidentally removed
as part of r8952 (the patch submitter had done it as a temporary
measure and I forgot to undo it before checkin).

[originally from svn r8956]
[r8952 == 99fffd6ed357d25a228637be173e8187746b6b77]

14 years agoPatch from Alejandro Sedeno, somewhat modified by me, which
Simon Tatham [Wed, 19 May 2010 18:22:17 +0000 (18:22 +0000)]
Patch from Alejandro Sedeno, somewhat modified by me, which
reorganises the GSSAPI support so that it handles alternative
implementations of the GSS-API. In particular, this means PuTTY can
now talk to MIT Kerberos for Windows instead of being limited to
SSPI. I don't know for sure whether further tweaking will be needed
(to the UI, most likely, or to automatic selection of credentials),
but testing reports suggest it's now at least worth committing to
trunk to get it more widely tested.

[originally from svn r8952]

14 years agoWhen doing custom bob builds from a given SVN revision, include the
Simon Tatham [Mon, 26 Apr 2010 17:28:42 +0000 (17:28 +0000)]
When doing custom bob builds from a given SVN revision, include the
date and time in the About box.

[originally from svn r8934]