]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
16 years agostdout and stderr should be made O_NONBLOCK so that we don't end up blocking
Ben Harris [Mon, 24 Sep 2007 19:26:08 +0000 (19:26 +0000)]
stdout and stderr should be made O_NONBLOCK so that we don't end up blocking
the entire process because stdout is busy.

Arguably, this shouldn't apply to stderr when we're printing our own error
messages to it, but I'll leave that fix for another time.

[originally from svn r7738]

16 years agoAdd support for automatically tuning the SSH-2 window size for decent
Ben Harris [Mon, 24 Sep 2007 15:18:11 +0000 (15:18 +0000)]
Add support for automatically tuning the SSH-2 window size for decent
performance.  The theory behind this is fairly simple, though the
implementation turns out to be a little trickier than it looks.

The basic idea is that when the connection isn't being limited by our ability
to process data, we want to ensure that the window size _as seen by the server_
never drops to zero.  Measuring the server's view of the window size is done
by arranging for it to acknowledge every SSH_MSG_CHANNEL_WINDOW_ADJUST, or
rather an SSH_MSG_CHANNEL_REQUEST sent just before it.  That way we can tell
when it its outgoing data stream it received the window adjustment, and
thus how small the server's view of the window got.

At present, we only ever increase the window size.  In theory, we could
arrange to reduce it again if the server's view of it seemed to be persistently
too large, but my experiments suggest that getting this right will be tricky.

[originally from svn r7735]

16 years agoDocument "No supported authentication methods available", and make it clear
Ben Harris [Sat, 22 Sep 2007 13:55:25 +0000 (13:55 +0000)]
Document "No supported authentication methods available", and make it clear
that TIS/CryptoCard auth can be used for simple passwords too.

[originally from svn r7730]

16 years agoHarvey Kwok observes that EnumPrinters() can sometimes fail to fill
Simon Tatham [Fri, 21 Sep 2007 18:04:08 +0000 (18:04 +0000)]
Harvey Kwok observes that EnumPrinters() can sometimes fail to fill
in its output parameters. Hence, we initialise them before calling
it.

[originally from svn r7729]

16 years agoDon't try SSH-1 RSA authentication unless the server has advertised support
Ben Harris [Thu, 20 Sep 2007 21:33:21 +0000 (21:33 +0000)]
Don't try SSH-1 RSA authentication unless the server has advertised support
for it.  It's possible that this obsoletes BUG_CHOKES_ON_RSA.  Certainly
the one SSH-1.5-Cisco-1.25 server I found was correctly not advertising RSA
auth.  For now, leave it in, because I'm not feeling entirely confident.

[originally from svn r7726]

16 years agoIn SSH-1, don't attempt password authentication unless the server has
Ben Harris [Thu, 20 Sep 2007 21:07:24 +0000 (21:07 +0000)]
In SSH-1, don't attempt password authentication unless the server has
announced support for it.  Instead exit with a fatal error (since password
auth is our last resort).

[originally from svn r7724]

16 years agoAvoid "unused variable" warning when NO_IPV6 defined.
Ben Harris [Mon, 3 Sep 2007 20:52:56 +0000 (20:52 +0000)]
Avoid "unused variable" warning when NO_IPV6 defined.

[originally from svn r7710]

16 years agoSuggest another ttymode we could usefully set automatically.
Ben Harris [Mon, 3 Sep 2007 20:33:40 +0000 (20:33 +0000)]
Suggest another ttymode we could usefully set automatically.

[originally from svn r7709]

16 years agossh->mainchan can be NULL; try not to segfault in that situation.
Simon Tatham [Mon, 3 Sep 2007 19:09:56 +0000 (19:09 +0000)]
ssh->mainchan can be NULL; try not to segfault in that situation.

[originally from svn r7705]

16 years agoCorrectly terminate nc target hostname when copying it.
Ben Harris [Tue, 7 Aug 2007 22:02:03 +0000 (22:02 +0000)]
Correctly terminate nc target hostname when copying it.
While we're here, use memcpy rather than strncpy when we've already worked
out how much we're going to copy.

[originally from svn r7685]

16 years agoUse "int" rather than "unsigned" as the argument to ssh2_set_window, not
Ben Harris [Mon, 6 Aug 2007 20:56:52 +0000 (20:56 +0000)]
Use "int" rather than "unsigned" as the argument to ssh2_set_window, not
because it can ever be negative, but because we'll be comparing it with
another int.  This way, C's promotion rules don't bite us and we should
stand slightly more chance of coping with broken servers that overrun our
window.

[originally from svn r7683]

16 years agoMay as well reference an RFC rather than an Internet Draft where we can.
Ben Harris [Sun, 5 Aug 2007 22:18:59 +0000 (22:18 +0000)]
May as well reference an RFC rather than an Internet Draft where we can.

[originally from svn r7682]

16 years agoSmall window-handling tweaks. Set the default big window to 0x7fffffff bytes,
Ben Harris [Sun, 5 Aug 2007 14:18:43 +0000 (14:18 +0000)]
Small window-handling tweaks.  Set the default big window to 0x7fffffff bytes,
and tweak ssh2_set_window() so it can cope with that.  Also arrange to send
a private channel message in simple mode to tell the server that it can safely
use a large window too.

[originally from svn r7679]

16 years agoRemember to clear ssh_simple when initialising config.
Ben Harris [Sat, 4 Aug 2007 22:19:12 +0000 (22:19 +0000)]
Remember to clear ssh_simple when initialising config.

[originally from svn r7674]

16 years agoIn the file-transfer applications, which only ever use the main
Ben Harris [Sat, 4 Aug 2007 22:14:19 +0000 (22:14 +0000)]
In the file-transfer applications, which only ever use the main
channel, arrange to set the SSH-2 window size to something very
large.  This prevents the connection stalling when the window fills
up, and means that PSCP receives data _much_ faster.

[originally from svn r7672]

16 years ago"CR implies LF" patch, based on one from Paul Coldrey.
Ben Harris [Sat, 4 Aug 2007 19:16:46 +0000 (19:16 +0000)]
"CR implies LF" patch, based on one from Paul Coldrey.

[originally from svn r7669]

16 years agoTweak window handling so that we send a window adjust if the window is half
Ben Harris [Sat, 4 Aug 2007 16:04:08 +0000 (16:04 +0000)]
Tweak window handling so that we send a window adjust if the window is half
used up, rather than over half.  That this increases the throughput of PSCP
by 50% indicates just how broken our window handling is.

[originally from svn r7667]

16 years agoWhen omitting session data from logs, don't omit the length of the session
Ben Harris [Sat, 4 Aug 2007 15:48:52 +0000 (15:48 +0000)]
When omitting session data from logs, don't omit the length of the session
data string.  This isn't strictly necessary, but it makes the logs easier to
use.

[originally from svn r7666]

16 years agoTweak to window handling: Keep the local window in a signed integer, and
Ben Harris [Sat, 4 Aug 2007 14:32:06 +0000 (14:32 +0000)]
Tweak to window handling:  Keep the local window in a signed integer, and
arrange to handle usefully the case where the server sends us more data
than it's allowed to.  There's no danger of overflow, since the maximum is
OUR_V2_WINSIZE and the minimum is -OUR_V2_MAXPKT (at least if the server is
nice).

[originally from svn r7661]

16 years agoDon't throw away data that we receive before we're ready for it. Just save
Ben Harris [Sun, 29 Jul 2007 14:02:00 +0000 (14:02 +0000)]
Don't throw away data that we receive before we're ready for it.  Just save
it up for later.  This should prevent hangs when talking to particularly
enthusiastic servers.

Thanks to JCA for tracking this bug down.

[originally from svn r7651]

16 years agoNote lack of proxy auto-detection.
Jacob Nevins [Sun, 22 Jul 2007 14:34:27 +0000 (14:34 +0000)]
Note lack of proxy auto-detection.

[originally from svn r7648]

16 years agoSplit pkt_ctx into a separate enumeration for each of kex and userauth
Ben Harris [Sat, 21 Jul 2007 21:39:36 +0000 (21:39 +0000)]
Split pkt_ctx into a separate enumeration for each of kex and userauth
instead of a bitfield for both.  This doesn't gain much here, but it should
make it easier to make things other than logging use the context.

[originally from svn r7647]

16 years agoArrange that log_packet() isn't called for raw data logging if logctx is null.
Ben Harris [Sat, 21 Jul 2007 13:43:57 +0000 (13:43 +0000)]
Arrange that log_packet() isn't called for raw data logging if logctx is null.
This allows us to send data in ssh_init(), albeit at the expense of its not
being properly logged, so arrange to send the version string then if that's
sensible, which should reduce the number of round-trips required to bring
up an SSH-2 connection.

[originally from svn r7646]

16 years agoSeparate out the code for creating and sending SSH version strings so that in
Ben Harris [Thu, 19 Jul 2007 23:53:02 +0000 (23:53 +0000)]
Separate out the code for creating and sending SSH version strings so that in
the SSH-2-only case, we can send it as soon as we connect rather than waiting
for the server's one.  Unfortunately, actually doing so will take a little
more effort -- there are subtleties to do with having a working log context
at the right moment that need to be sorted out.

[originally from svn r7645]

16 years agoUpdate an outdated comment.
Ben Harris [Wed, 18 Jul 2007 22:54:31 +0000 (22:54 +0000)]
Update an outdated comment.

[originally from svn r7642]

17 years agoImplement Marcin Bulandra's suggestion of only automatically updating the
Jacob Nevins [Sun, 1 Jul 2007 15:47:31 +0000 (15:47 +0000)]
Implement Marcin Bulandra's suggestion of only automatically updating the
port number in the GUI when the connection type is changed if the current
port number is the standard one for the current protocol.
It's not perfect, but it should make the common case of tabbing through the
Session panel easier when starting non-SSH connections on odd ports.

[originally from svn r7635]

17 years agoRemove port number validation from Windows PuTTY -- it could cause unnecessary
Jacob Nevins [Sun, 1 Jul 2007 15:41:09 +0000 (15:41 +0000)]
Remove port number validation from Windows PuTTY -- it could cause unnecessary
trouble with serial connections, and a port number of zero gets caught later
anyway.

[originally from svn r7634]

17 years agoRationalise access to, and content of, backends[] array.
Jacob Nevins [Sat, 30 Jun 2007 21:56:44 +0000 (21:56 +0000)]
Rationalise access to, and content of, backends[] array.
Should be no significant change in behaviour.
(Well, entering usernames containing commas on Plink's command line will be
a little harder now.)

[originally from svn r7628]

17 years agoFix a couple of signedness compiler warnings, presumably due to me
Simon Tatham [Sat, 30 Jun 2007 18:18:20 +0000 (18:18 +0000)]
Fix a couple of signedness compiler warnings, presumably due to me
using a different version of gcc from before.

[originally from svn r7627]

17 years agoTong Ho points out a missing ssh_pkt_ensure().
Simon Tatham [Sat, 30 Jun 2007 18:17:12 +0000 (18:17 +0000)]
Tong Ho points out a missing ssh_pkt_ensure().

[originally from svn r7626]

17 years agoIndex "MAC" a bit more thoroughly.
Jacob Nevins [Tue, 29 May 2007 20:06:45 +0000 (20:06 +0000)]
Index "MAC" a bit more thoroughly.

[originally from svn r7610]

17 years agoExplicitly spell out that "incorrect MAC" type errors can be caused by
Jacob Nevins [Tue, 29 May 2007 20:01:32 +0000 (20:01 +0000)]
Explicitly spell out that "incorrect MAC" type errors can be caused by
data corruption in the network.

[originally from svn r7609]

17 years agoRetire the e-gold link. Nobody's used it in years; I honestly don't
Simon Tatham [Tue, 22 May 2007 18:37:17 +0000 (18:37 +0000)]
Retire the e-gold link. Nobody's used it in years; I honestly don't
know how I'd go about retrieving money from them any more because my
last exchange transaction went through a company who subsequently
turned out to be dodgy; and a user points out that e-gold is in
legal trouble, which suggests that avoiding it is probably wise.

[originally from svn r7604]

17 years agoThese days, you _can_ save a host name in Default Settings.
Ben Harris [Wed, 9 May 2007 21:35:24 +0000 (21:35 +0000)]
These days, you _can_ save a host name in Default Settings.

[originally from svn r7566]

17 years agoMake bounds of automatic array constant.
Ben Harris [Tue, 1 May 2007 20:29:11 +0000 (20:29 +0000)]
Make bounds of automatic array constant.

[originally from svn r7503]

17 years agoSince r7496, Pageant needs sshsh256 to build (although it doesn't need
Jacob Nevins [Tue, 1 May 2007 13:14:23 +0000 (13:14 +0000)]
Since r7496, Pageant needs sshsh256 to build (although it doesn't need
SHA-256 to actually do its job).

[originally from svn r7500]
[r7496 == dad558a1e59c059b7f3436a4865b5e4e17c59539]

17 years agoReindent the section that was marked `XXX The lines below should be
Simon Tatham [Tue, 1 May 2007 12:26:44 +0000 (12:26 +0000)]
Reindent the section that was marked `XXX The lines below should be
reindented before this is committed'. Unfortunately not before it
was committed, but you can't have everything :-)

[originally from svn r7499]

17 years agoAdd support for RFC 4432 RSA key exchange, the patch for which has been
Ben Harris [Mon, 30 Apr 2007 22:09:26 +0000 (22:09 +0000)]
Add support for RFC 4432 RSA key exchange, the patch for which has been
lying around in my home directory for _years_.

[originally from svn r7496]

17 years agoCreate installations directories before installing into them, like GNU
Ben Harris [Mon, 30 Apr 2007 20:09:58 +0000 (20:09 +0000)]
Create installations directories before installing into them, like GNU
packages do.

Problem reported by Manfred Pausch.

[originally from svn r7494]

17 years agoUpdate version numbers for 0.60 release. 0.60
Simon Tatham [Sun, 29 Apr 2007 11:28:54 +0000 (11:28 +0000)]
Update version numbers for 0.60 release.

[originally from svn r7488]

17 years agoAvoid creating the Session/hostport control set in mid-session.
Simon Tatham [Sun, 22 Apr 2007 14:39:01 +0000 (14:39 +0000)]
Avoid creating the Session/hostport control set in mid-session.

[originally from svn r7477]

17 years agoCapitalisation error.
Simon Tatham [Sun, 22 Apr 2007 08:56:31 +0000 (08:56 +0000)]
Capitalisation error.

[originally from svn r7476]

17 years agoWhen we get an error writing to a local file, stop the download rather than
Ben Harris [Tue, 10 Apr 2007 21:46:44 +0000 (21:46 +0000)]
When we get an error writing to a local file, stop the download rather than
pretending we just got -1 bytes.  Not actually tested, but it looks pretty
obvious.
Bug reported by dking wang.

[originally from svn r7459]

17 years agoWhen the comments say `if we're in restart mode', the code in
Simon Tatham [Mon, 2 Apr 2007 08:44:00 +0000 (08:44 +0000)]
When the comments say `if we're in restart mode', the code in
question should actually be conditional on restart mode!

[originally from svn r7438]

17 years agoIn the wake of r7415, let's have some better error reporting.
Simon Tatham [Tue, 27 Mar 2007 19:10:10 +0000 (19:10 +0000)]
In the wake of r7415, let's have some better error reporting.
Instead of passing -1 to its gotdata and sentdata callbacks on
error, winhandl.c will now pass the negation of the Windows error
number; and the Plink front end will now format that into an error
message and pass it on to the user.

[originally from svn r7416]
[r7415 == 702a92ceb848394f722292cd4a54c414d4e0be67]

17 years agoWindows apparently sends ERROR_BROKEN_PIPE when a pipe we're reading
Simon Tatham [Tue, 27 Mar 2007 18:49:59 +0000 (18:49 +0000)]
Windows apparently sends ERROR_BROKEN_PIPE when a pipe we're reading
from is closed normally from the writing end. This is ludicrous; if
that situation isn't a natural EOF, _nothing_ is. So if we get that
particular error, we pretend it's EOF.

[originally from svn r7415]

17 years agoPatch from John Sullivan: process double-clicks in the session list
Simon Tatham [Tue, 27 Mar 2007 18:16:36 +0000 (18:16 +0000)]
Patch from John Sullivan: process double-clicks in the session list
box on button-up rather than button-down. The effect of this is that
if a saved session is already selected in the list box and then you
double-click it, it will open rather than beeping annoyingly.

[originally from svn r7414]

17 years agoFix a stupid one-character typo that was breaking 256-colour support on GTK.
Ben Harris [Mon, 19 Mar 2007 12:05:34 +0000 (12:05 +0000)]
Fix a stupid one-character typo that was breaking 256-colour support on GTK.

[originally from svn r7403]

17 years agoget_random_data() can return NULL (for instance, if we can't open /dev/random
Jacob Nevins [Tue, 13 Mar 2007 14:43:14 +0000 (14:43 +0000)]
get_random_data() can return NULL (for instance, if we can't open /dev/random
on Unix), yet cmdgen failed to deal with this. Spotted by Darren Tucker.

[originally from svn r7396]

17 years agoProcess -t/-T later than -m, so that they can override -m's default behaviour
Jacob Nevins [Wed, 28 Feb 2007 23:31:49 +0000 (23:31 +0000)]
Process -t/-T later than -m, so that they can override -m's default behaviour
of no pty.

[originally from svn r7348]

17 years agoPrepend \\.\ to configured serial line string, to allow easy access to ports
Jacob Nevins [Wed, 28 Feb 2007 21:30:06 +0000 (21:30 +0000)]
Prepend \\.\ to configured serial line string, to allow easy access to ports
above COM9.

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

17 years agoAttempt to scrub -pw's argument in argv[], to make it less obvious.
Jacob Nevins [Sun, 25 Feb 2007 02:15:20 +0000 (02:15 +0000)]
Attempt to scrub -pw's argument in argv[], to make it less obvious.

[originally from svn r7323]

17 years agoDelay evaluating the "-pw" option, so we can criticise the user's choice of
Jacob Nevins [Sun, 25 Feb 2007 00:51:38 +0000 (00:51 +0000)]
Delay evaluating the "-pw" option, so we can criticise the user's choice of
backend, bailing out if anything other than SSH is in use.

[originally from svn r7322]

17 years agoSince r7265, a user could not launch a PuTTY session to a specific host by
Jacob Nevins [Sun, 25 Feb 2007 00:50:24 +0000 (00:50 +0000)]
Since r7265, a user could not launch a PuTTY session to a specific host by
simply specifying a hostname on the command line -- this would bring up the
config dialog. Use a slightly more sophisticated notion of whether the user
meant to launch a session.

[originally from svn r7321]
[r7265 == 5d76e00dac9220e8798e4d0f17a4069a58ae1667]

17 years ago"-noagent" and friends should be marked SAVEABLE, to ensure they're not
Jacob Nevins [Sat, 24 Feb 2007 22:43:57 +0000 (22:43 +0000)]
"-noagent" and friends should be marked SAVEABLE, to ensure they're not
clobbered by "-load".

[originally from svn r7320]

17 years agoGareth pointed out yesterday that the Unix terminal front end treats
Simon Tatham [Sat, 24 Feb 2007 13:36:11 +0000 (13:36 +0000)]
Gareth pointed out yesterday that the Unix terminal front end treats
BELL_DISABLED as BELL_DEFAULT. How embarrassing.

[originally from svn r7316]

17 years agoThis reordering of the Unix Makefiles (requested by Michael Shigorin) allows
Jacob Nevins [Sun, 18 Feb 2007 22:05:45 +0000 (22:05 +0000)]
This reordering of the Unix Makefiles (requested by Michael Shigorin) allows
use of -Wl,--as-needed.

[originally from svn r7299]

17 years agoIn controls where a list of entries is manipulated by Add/Remove buttons
Jacob Nevins [Sun, 18 Feb 2007 19:56:16 +0000 (19:56 +0000)]
In controls where a list of entries is manipulated by Add/Remove buttons
(SSH tunnels, TTY modes, and environment variables), when the Remove button is
pressed, populate the edit controls from the entry that has just been deleted.

Several users have requested this, as it makes editing an entry easier (read-
modify-write) in the cases where order is unimportant, and also provides a
degree of undo-ability.

[originally from svn r7298]

17 years agoAllow dlg_listbox_index() to be called on multi-selection list boxes.
Jacob Nevins [Sun, 18 Feb 2007 19:50:41 +0000 (19:50 +0000)]
Allow dlg_listbox_index() to be called on multi-selection list boxes.

[originally from svn r7297]

17 years agoBring the OS X front end up to date with recent changes to the main
Simon Tatham [Sun, 18 Feb 2007 15:59:38 +0000 (15:59 +0000)]
Bring the OS X front end up to date with recent changes to the main
code base.

[originally from svn r7296]

17 years agoCtrl-Break now sends a Break signal (previously it was equivalent to Ctrl-C).
Jacob Nevins [Sun, 18 Feb 2007 14:02:39 +0000 (14:02 +0000)]
Ctrl-Break now sends a Break signal (previously it was equivalent to Ctrl-C).

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

17 years agoUse preprocessor trickery to make the signal translation mechanism a little
Ben Harris [Sat, 17 Feb 2007 22:33:11 +0000 (22:33 +0000)]
Use preprocessor trickery to make the signal translation mechanism a little
less hideous.  The output of the preprocessor should be basically unchanged.

[originally from svn r7294]

17 years agossh2_set_window checks whether the channel is being closed, so there's no
Ben Harris [Sat, 17 Feb 2007 22:15:57 +0000 (22:15 +0000)]
ssh2_set_window checks whether the channel is being closed, so there's no
need to check that before calling it.

[originally from svn r7293]

17 years agoUnbreak "Duplicate session" on Windows, in a similar way to r7291.
Jacob Nevins [Sat, 17 Feb 2007 17:44:24 +0000 (17:44 +0000)]
Unbreak "Duplicate session" on Windows, in a similar way to r7291.

[originally from svn r7292]
[r7291 == 062b5ab3e412435b9c452b371b51beeaa026608e]

17 years agor7265 broke the legacy `putty @sessionname' construction, which I
Simon Tatham [Fri, 16 Feb 2007 18:44:07 +0000 (18:44 +0000)]
r7265 broke the legacy `putty @sessionname' construction, which I
wouldn't care about except for the fact that it's still used to
implement the Saved Sessions menu item in PuTTY and Pageant.

[originally from svn r7291]
[r7265 == 5d76e00dac9220e8798e4d0f17a4069a58ae1667]

17 years agoLICENCE in the installer should have CP/M line endings.
Jacob Nevins [Thu, 15 Feb 2007 23:27:29 +0000 (23:27 +0000)]
LICENCE in the installer should have CP/M line endings.

[originally from svn r7290]

17 years agoIt turns out that HH_INITIALIZE and HH_UNINITIALIZE are optional, and are for
Jacob Nevins [Tue, 13 Feb 2007 22:57:19 +0000 (22:57 +0000)]
It turns out that HH_INITIALIZE and HH_UNINITIALIZE are optional, and are for
putting HTML Help into "single-threaded" mode. Furthermore, this requires
extra work from the application (message pumping via HH_PRETRANSLATEMESSAGE).

Thus, remove them and run Help in a secondary thread. This means that keyboard
input into the Index and Search tabs now works.

[originally from svn r7285]

17 years agoNote that htmlhelp.h from HTML Help Workshop works perfectly well with Cygwin.
Jacob Nevins [Sun, 11 Feb 2007 20:27:05 +0000 (20:27 +0000)]
Note that htmlhelp.h from HTML Help Workshop works perfectly well with Cygwin.

[originally from svn r7273]

17 years agoTypo.
Jacob Nevins [Sun, 11 Feb 2007 18:09:03 +0000 (18:09 +0000)]
Typo.

[originally from svn r7271]

17 years agoSince we're now able to cope with Default Settings describing a
Simon Tatham [Sat, 10 Feb 2007 17:12:06 +0000 (17:12 +0000)]
Since we're now able to cope with Default Settings describing a
launchable session without getting confused by it, we can relax the
restriction on storing a host name in DS, which has attracted a
steady stream of complaints over the past six or seven years.

[originally from svn r7266]

17 years agoAvoid launching a session from the Default Settings, even if they do
Simon Tatham [Sat, 10 Feb 2007 17:02:41 +0000 (17:02 +0000)]
Avoid launching a session from the Default Settings, even if they do
represent a launchable session, unless the user can be construed to
have really meant it. This means:
 - starting up PuTTY when the Default Settings are launchable still
   brings up the config box, and you have to hit Open to actually
   launch that session
 - double-clicking on Default Settings from the config box will load
   them but not launch them.
On the other hand:
 - explicitly loading the Default Settings on the command line using
   `-load' _does_ still launch them.

[originally from svn r7265]

17 years agoI've changed my mind about the PuTTY build script. It now delivers
Simon Tatham [Thu, 8 Feb 2007 18:53:11 +0000 (18:53 +0000)]
I've changed my mind about the PuTTY build script. It now delivers
the release directory into a _subdirectory_ of the main build.out,
and delivers the link maps and sign.sh alongside it. That simplifies
both the nightly snapshot cron job (which now doesn't have to
carefully move the maps out of the release directory or go looking
in strange places for sign.sh) and my release procedure (for much
the same reasons).

[originally from svn r7258]

17 years agoThe big payoff from bob (from my POV at least): the PuTTY release
Simon Tatham [Thu, 8 Feb 2007 09:24:08 +0000 (09:24 +0000)]
The big payoff from bob (from my POV at least): the PuTTY release
procedure is now a huge amount less painful.

[originally from svn r7249]

17 years ago`installer.ico' doesn't fit into 8.3, so gets truncated to INSTALLE.ICO in
Jacob Nevins [Tue, 6 Feb 2007 22:39:15 +0000 (22:39 +0000)]
`installer.ico' doesn't fit into 8.3, so gets truncated to INSTALLE.ICO in
the Windows source Zips. Rename to `puttyins.ico'.

[originally from svn r7241]

17 years agoWhen emitting SSH_MSG_IGNORE to protect against known-IV attacks on CBC,
Ben Harris [Tue, 6 Feb 2007 13:57:27 +0000 (13:57 +0000)]
When emitting SSH_MSG_IGNORE to protect against known-IV attacks on CBC,
remember to put an empty string in it rather than sending a completely
empty packet.  This should help with those servers (notably RomSShell)
that actually check the contents of SSH_MSG_IGNORE.

[originally from svn r7236]

17 years agoAhem; other half of r7232...
Simon Tatham [Mon, 5 Feb 2007 20:14:17 +0000 (20:14 +0000)]
Ahem; other half of r7232...

[originally from svn r7233]
[r7232 == 6ee6a4d37926062f5b610de4cef2a6ce4fe63345]

17 years agoWhen calling TIOCSCTTY, it helps to pass it an fd that's still open,
Simon Tatham [Mon, 5 Feb 2007 20:04:33 +0000 (20:04 +0000)]
When calling TIOCSCTTY, it helps to pass it an fd that's still open,
instead of one we closed two lines earlier. I apparently broke this
in r7107.

[originally from svn r7232]
[r7107 == 32b25c13dae27bb4f485ab2d2c4737572fa28251]

17 years agoAvoid passing modified SVN revision numbers (of the form 1234M) to
Simon Tatham [Mon, 5 Feb 2007 18:07:11 +0000 (18:07 +0000)]
Avoid passing modified SVN revision numbers (of the form 1234M) to
parts of the versioning code which might not like them.

As a result of this checkin, bob builds from modified SVN working
copies will still announce themselves as revision nnnnM in the
textual version strings, but their binary version in the Windows
VERSIONINFO will now be 0.0.0.0.

[originally from svn r7231]

17 years agoFiddle further with .htaccess: add some $s on the ends of the
Simon Tatham [Mon, 5 Feb 2007 15:01:28 +0000 (15:01 +0000)]
Fiddle further with .htaccess: add some $s on the ends of the
regexps to stop them matching the wrong files.

[originally from svn r7229]

17 years agoHTTP redirects for the variably-named signatures as well as their
Simon Tatham [Mon, 5 Feb 2007 14:23:34 +0000 (14:23 +0000)]
HTTP redirects for the variably-named signatures as well as their
base files. (The signatures aren't actually _generated_ by bob, of
course, but the redirects are harmless in their absence.)

[originally from svn r7228]

17 years agoScript to generate signatures on the various PuTTY build outputs.
Simon Tatham [Mon, 5 Feb 2007 13:53:48 +0000 (13:53 +0000)]
Script to generate signatures on the various PuTTY build outputs.
Saves me having to remember all the fiddly gpg arguments every time.
Should be usable for both releases (with manual passphrase input)
and snapshots (run automatically).

[originally from svn r7227]

17 years agoFixes for snapshot building using bob. All of releases, snapshots
Simon Tatham [Mon, 5 Feb 2007 12:49:24 +0000 (12:49 +0000)]
Fixes for snapshot building using bob. All of releases, snapshots
and custom svn builds should now have appropriately named Unix
source archives and installer binaries, plus .htaccess files
providing redirects to them from totally standard filenames. I
_think_ this now makes it feasible to switch the nightly builds to
using bob.

[originally from svn r7226]

17 years agoBe slightly more forgiving about the nature of SVN_REV; bob will be
Simon Tatham [Mon, 5 Feb 2007 08:02:53 +0000 (08:02 +0000)]
Be slightly more forgiving about the nature of SVN_REV; bob will be
reliable at defining it, and it's useful to be able to pass `1234M'-
type revisions in for testing purposes.

[originally from svn r7221]

17 years agoFix errors in $(Makeargs) which only occur when building development
Simon Tatham [Mon, 5 Feb 2007 08:02:01 +0000 (08:02 +0000)]
Fix errors in $(Makeargs) which only occur when building development
snapshots.

[originally from svn r7220]

17 years agoPuTTY builds should save the map files.
Simon Tatham [Sun, 4 Feb 2007 12:37:20 +0000 (12:37 +0000)]
PuTTY builds should save the map files.

[originally from svn r7212]

17 years agoVersion management updates for the new bob build script. There's now
Simon Tatham [Sun, 4 Feb 2007 12:30:39 +0000 (12:30 +0000)]
Version management updates for the new bob build script. There's now
a fourth class of PuTTY version tags in addition to release,
snapshot and unidentified: we now have `Custom build r1234',
indicating a build made from that SVN revision in a context other
than that of a dated snapshot. The build script generates these when
it doesn't know what else to do; `unidentified builds' will now only
occur when you run nmake from the command line.

Also, the build script now generates sensible version data in the
installer to match this. So I _think_ we should now be set to use
bob to generate installer builds of the nightly snapshots, although
of course I'll have to wait until tomorrow to test one.

[originally from svn r7211]

17 years agoDocument \\.\COM10 faff on Windows.
Jacob Nevins [Sun, 4 Feb 2007 12:12:52 +0000 (12:12 +0000)]
Document \\.\COM10 faff on Windows.
References:
<http://msdn2.microsoft.com/en-us/library/aa363858.aspx> (CreateFile() docs)
  describes the use of \\.\
<http://msdn2.microsoft.com/en-us/library/aa365247.aspx> ("Naming a File")
  lists the reserved filenames (COM1-COM9, LPT1-LPT9, CON, PRN, AUX, NUL)

[originally from svn r7208]

17 years agoBuild script for PuTTY using bob.
Simon Tatham [Sun, 4 Feb 2007 11:17:45 +0000 (11:17 +0000)]
Build script for PuTTY using bob.

[originally from svn r7205]

17 years agoSwap order of `Columns' and `Rows' in the config dialog, to make it
Jacob Nevins [Thu, 1 Feb 2007 23:24:30 +0000 (23:24 +0000)]
Swap order of `Columns' and `Rows' in the config dialog, to make it
consistent with sizetip.c (and more nebulous conventions).

[originally from svn r7196]

17 years agoColin Watson has fixed the disgusting icons on GTK1. His patch
Simon Tatham [Wed, 31 Jan 2007 12:30:48 +0000 (12:30 +0000)]
Colin Watson has fixed the disgusting icons on GTK1. His patch
appears to merely fix the background colour (arranging for it to
have transparency rather than being on some kind of default grey
background), but it turns out to also fix the strange blurry
behaviour I see in the GNOME Taskbar, for no very obvious reason.

[originally from svn r7186]

17 years agoIn the cases where Setup asks to restart the computer, explain exactly why this
Jacob Nevins [Mon, 29 Jan 2007 20:10:51 +0000 (20:10 +0000)]
In the cases where Setup asks to restart the computer, explain exactly why this
is deemed necessary.

[originally from svn r7179]

17 years agoSwitch round the order of CFLAGS and XFLAGS, so that the latter
Simon Tatham [Fri, 26 Jan 2007 19:43:15 +0000 (19:43 +0000)]
Switch round the order of CFLAGS and XFLAGS, so that the latter
comes last on the compiler command line. This makes it easier to
override the normal compile options (since conflicting command-line
options usually follow a last-wins policy) in order to compile (for
example) the Unix version -g -O0.

[originally from svn r7170]

17 years agoIf I'd tested under Minefield before releasing, r7168 would have
Simon Tatham [Fri, 26 Jan 2007 14:11:56 +0000 (14:11 +0000)]
If I'd tested under Minefield before releasing, r7168 would have
been committed before the release. Therefore, stick it on the
checklist for next time.

[originally from svn r7169]
[r7168 == b3a5cdc5fbab8884755690286211fa6b3425d9d3]

17 years agoKai Jourdan spotted a rather embarrassing double-free, and Minefield
Simon Tatham [Fri, 26 Jan 2007 14:06:08 +0000 (14:06 +0000)]
Kai Jourdan spotted a rather embarrassing double-free, and Minefield
confirms that it's a real problem.

[originally from svn r7168]

17 years agoWe may as well update the website icon to match the other new ones.
Jacob Nevins [Thu, 25 Jan 2007 00:14:01 +0000 (00:14 +0000)]
We may as well update the website icon to match the other new ones.

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

17 years agoPost-release corrections to the checklist.
Simon Tatham [Wed, 24 Jan 2007 21:43:11 +0000 (21:43 +0000)]
Post-release corrections to the checklist.

[originally from svn r7151]

17 years agoVersion number bumps, and associated changes, for the 0.59 release. 0.59
Simon Tatham [Wed, 24 Jan 2007 20:16:33 +0000 (20:16 +0000)]
Version number bumps, and associated changes, for the 0.59 release.

[originally from svn r7146]

17 years agoThe direct link between the terminal and the back end via
Simon Tatham [Wed, 24 Jan 2007 13:53:28 +0000 (13:53 +0000)]
The direct link between the terminal and the back end via
term_provide_resize_fn() was not being broken when the back end was
destroyed on session termination, causing resizing an inactive PuTTY
to be a segfault hazard.

[originally from svn r7143]

17 years agofaq-xpwontrun wants tweaking before the next release.
Jacob Nevins [Wed, 24 Jan 2007 11:20:14 +0000 (11:20 +0000)]
faq-xpwontrun wants tweaking before the next release.

[originally from svn r7142]

17 years agoMention XXX-REVIEW-BEFORE-RELEASE in the same place as
Jacob Nevins [Tue, 23 Jan 2007 14:12:42 +0000 (14:12 +0000)]
Mention XXX-REVIEW-BEFORE-RELEASE in the same place as
XXX-REMOVE-BEFORE-RELEASE.

[originally from svn r7141]