u/mdw/putty
20 years agoThe WinSock library is now loaded at run-time, which means we can
simon [Sun, 12 Oct 2003 13:46:12 +0000 (13:46 +0000)]
The WinSock library is now loaded at run-time, which means we can
attempt to load WS2 and then fall back to WS1 if that fails. This
should allow us to use WS2-specific functionality to find out the
local system's list of IP addresses, thus fixing winnet-if2lo, while
degrading gracefully back to the previous behaviour if that
functionality is unavailable. (I haven't yet actually done this; I've
just laid the groundwork.)
This checkin _may_ cause instability; it seemed fine to me on
initial testing, but it's a bit of an upheaval and I wouldn't like
to make bets on it just yet.

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

20 years agoRemove all the "assert(len>0)" which forbade zero-length writes across the
jacob [Sun, 12 Oct 2003 13:16:39 +0000 (13:16 +0000)]
Remove all the "assert(len>0)" which forbade zero-length writes across the
from_backend() interface, after having made all implementations safe against
being called with len==0 and possibly-NULL/undefined "data".

(This includes making misc.c:bufchain_add() more robust in this area.)

Assertion was originally added 2002-03-01; e.g., see plink.c:1.53 [r1571].

I believe this now shouldn't break anything.

This should hopefully make `ppk-empty-comment' finally GO AWAY. (Tested
with Unix PuTTY.)

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

20 years agoAdd random commentary to SOCKS code.
jacob [Fri, 10 Oct 2003 22:58:53 +0000 (22:58 +0000)]
Add random commentary to SOCKS code.
Also fix what I think are a couple of very minor bugs in SOCKS4; one won't
affect anyone AFAIK, and the other is unlikely to cause trouble.

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

20 years agoIn SOCKS5 dynamic forwarding, we were echoing back DST.{ADDR,PORT} as
jacob [Fri, 10 Oct 2003 21:20:01 +0000 (21:20 +0000)]
In SOCKS5 dynamic forwarding, we were echoing back DST.{ADDR,PORT} as
BND.{ADDR,PORT}. Besides being clearly wrong, correspondence with
Sascha Schwarz suggests that this can confuse some SOCKS5 clients
(Aventail and sockscap32) which seem to assume that the reply must
have ATYP=1 (IPv4 literal) and so get the length wrong.

Now all replies have ATYP=1 with BND.{ADDR,PORT} = 0.0.0.0:0 -- this
apparently follows practice in OpenSSH. (We don't have enough info to
fill these fields in correctly.)

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

20 years agomissed a bit in last commit
jacob [Wed, 8 Oct 2003 21:39:54 +0000 (21:39 +0000)]
missed a bit in last commit

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

20 years agoCosmetic, to fix ssh2-des-cbc-is-std
owen [Wed, 8 Oct 2003 20:09:55 +0000 (20:09 +0000)]
Cosmetic, to fix ssh2-des-cbc-is-std

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

20 years ago`baltic-default-translation': change default Baltic (CP1257) encoding from
jacob [Tue, 7 Oct 2003 21:31:21 +0000 (21:31 +0000)]
`baltic-default-translation': change default Baltic (CP1257) encoding from
8859-4 to 8859-13 as suggested by Vaidrius Petrauskas, on the grounds that
he has a .lt address and sounds like he knows what he's talking about.

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

20 years agoMy ASN.1 decoder returned wrong IDs for anything above 0x1E! Good
simon [Fri, 3 Oct 2003 21:21:23 +0000 (21:21 +0000)]
My ASN.1 decoder returned wrong IDs for anything above 0x1E! Good
job it's never had to yet. Ahem.

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

20 years agoPSCP in SFTP mode now uses the fast download/upload manager.
simon [Mon, 29 Sep 2003 15:39:56 +0000 (15:39 +0000)]
PSCP in SFTP mode now uses the fast download/upload manager.

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

20 years agoObvious memory leak in new fast download management. Oops.
simon [Mon, 29 Sep 2003 15:39:36 +0000 (15:39 +0000)]
Obvious memory leak in new fast download management. Oops.

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

20 years agoUploads turn out to be much easier than downloads, so here's faster
simon [Sun, 28 Sep 2003 14:24:01 +0000 (14:24 +0000)]
Uploads turn out to be much easier than downloads, so here's faster
upload support in PSFTP as well.

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

20 years agoFirst cut at speeding up SFTP. Generic download-management code in
simon [Sat, 27 Sep 2003 17:52:34 +0000 (17:52 +0000)]
First cut at speeding up SFTP. Generic download-management code in
sftp.c, and psftp.c now uses that instead of going it alone. Should
in principle be easily installed in PSCP as well, but I haven't done
it yet; also it only handles downloads, not uploads, and finally it
doesn't yet properly calculate the correct number of parallel
requests to queue. Still, it's a start, and in my own tests it
seemed to perform as expected (download speed suddenly became
roughly what you'd expect from the available bandwidth, and
decreased by roughly the expected number of round-trip times).

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

20 years agoClarify what happens when you enter a code page that's not listed.
jacob [Fri, 26 Sep 2003 13:04:56 +0000 (13:04 +0000)]
Clarify what happens when you enter a code page that's not listed.

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

20 years agoNote what versions of SOCKS are implemented for dynamic port forwarding.
jacob [Thu, 25 Sep 2003 12:38:02 +0000 (12:38 +0000)]
Note what versions of SOCKS are implemented for dynamic port forwarding.

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

20 years agoImply that some features that have been implemented may appear on the Wishlist
jacob [Tue, 23 Sep 2003 10:12:02 +0000 (10:12 +0000)]
Imply that some features that have been implemented may appear on the Wishlist
but not the Changes page, as this is now often the case.

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

20 years agoMention Windows on Alpha as worth mentioning
jacob [Tue, 23 Sep 2003 10:05:06 +0000 (10:05 +0000)]
Mention Windows on Alpha as worth mentioning

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

20 years agoOops. Fix a bug in my `keyfile-diagnostic' work which caused SSH-2 key loading
jacob [Wed, 10 Sep 2003 12:30:10 +0000 (12:30 +0000)]
Oops. Fix a bug in my `keyfile-diagnostic' work which caused SSH-2 key loading
in pageant (and presumably puttygen) to crash.

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

20 years agoImplement `default-colours' on Windows based loosely on Michael Wardle's patch.
jacob [Wed, 3 Sep 2003 20:14:38 +0000 (20:14 +0000)]
Implement `default-colours' on Windows based loosely on Michael Wardle's patch.

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

20 years agoAdd pscp to .cvsignore
jacob [Wed, 3 Sep 2003 18:37:35 +0000 (18:37 +0000)]
Add pscp to .cvsignore

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

20 years agoChange an incorrect comment about "PuTTY-User-Key-File-2" private key format
jacob [Tue, 2 Sep 2003 19:02:06 +0000 (19:02 +0000)]
Change an incorrect comment about "PuTTY-User-Key-File-2" private key format
after discussion with Simon.

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

20 years agoWhen loading SSH-2 key, ignore passphrase argument if key is unencrypted.
jacob [Tue, 2 Sep 2003 19:00:17 +0000 (19:00 +0000)]
When loading SSH-2 key, ignore passphrase argument if key is unencrypted.
This should get rid of a problem that three or four people reported where
PuTTY intermittently reports "Unable to load private key" (MAC failed).

(ssh.c:do_ssh2_authconn() should also initialise its passphrase so it's not
passing garbage passphrases around, of course, but I haven't yet worked out
where the best place in the auth loop to do that would be.)

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

20 years agoInclude stdlib.h for exit() - thanks Colin.
simon [Tue, 2 Sep 2003 09:52:13 +0000 (09:52 +0000)]
Include stdlib.h for exit() - thanks Colin.

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

20 years agoRemove CRs. Oops :-/
simon [Tue, 2 Sep 2003 09:00:35 +0000 (09:00 +0000)]
Remove CRs. Oops :-/

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

20 years agoAdd support for a DESTDIR variable in the Unix makefile to set the root of the
ben [Mon, 1 Sep 2003 21:27:36 +0000 (21:27 +0000)]
Add support for a DESTDIR variable in the Unix makefile to set the root of the
installation tree (for building packages etc).

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

20 years agoWork towards wish `keyfile-diagnostic'. Many sshpubk.c keyfile-loading
jacob [Fri, 29 Aug 2003 22:52:57 +0000 (22:52 +0000)]
Work towards wish `keyfile-diagnostic'. Many sshpubk.c keyfile-loading
functions have sprouted `**errorstr' arguments, which if non-NULL can
return a textual error message. The interface additions are patchy and
ad-hoc since this seemed to suit the style of the existing interfaces.

I've since realised that most of this is masked by sanity-checking that
gets done before these functions are called, but it will at least report
MAC failures and the like (tested on Unix), which was the original point
of the exercise.

Note that not everyone who could be using this information is at the
moment.

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

20 years agodupstr() should cope with being passed NULL
jacob [Fri, 29 Aug 2003 22:14:04 +0000 (22:14 +0000)]
dupstr() should cope with being passed NULL

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

20 years agoMinimal fixes to minimal plink man page.
jacob [Fri, 29 Aug 2003 19:41:57 +0000 (19:41 +0000)]
Minimal fixes to minimal plink man page.

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

20 years agoAdd "-s" option to Unix plink too.
jacob [Fri, 29 Aug 2003 19:21:49 +0000 (19:21 +0000)]
Add "-s" option to Unix plink too.
Compiled, but not tested as Unix plink seems to be segfaulting today.

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

20 years agoNew option for plink: "-s" specifies that the remote command is an SSH-2
jacob [Fri, 29 Aug 2003 19:06:22 +0000 (19:06 +0000)]
New option for plink: "-s" specifies that the remote command is an SSH-2
subsystem. (pinched from OpenSSH)

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

20 years ago... and there's a Unix port of PSCP. Ooh.
simon [Mon, 25 Aug 2003 14:30:59 +0000 (14:30 +0000)]
... and there's a Unix port of PSCP. Ooh.

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

20 years agoFix a couple of blatant memory leaks; thanks to Ruurd Beerstra for
simon [Mon, 25 Aug 2003 14:18:14 +0000 (14:18 +0000)]
Fix a couple of blatant memory leaks; thanks to Ruurd Beerstra for
pointing at least one of them out.

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

20 years agoWindows PSCP now links against winsftp.c, and scp.c is now a
simon [Mon, 25 Aug 2003 13:53:41 +0000 (13:53 +0000)]
Windows PSCP now links against winsftp.c, and scp.c is now a
platform-independent source file. Haven't yet added the extra
abstraction routines to uxsftp.c to create a Unix PSCP port, but it
shouldn't take long.
Also in this checkin, a change of semantics in platform_default_s():
now strings returned from it are expected to be dynamically allocated.

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

20 years agoAnd just to prove that psftp.c really is now platform-independent
simon [Sun, 24 Aug 2003 13:22:17 +0000 (13:22 +0000)]
And just to prove that psftp.c really is now platform-independent
... here's a Unix port of PSFTP. Woo. (Oddly PSCP looks to be
somewhat harder; there's more Windows code interleaved than there
was in PSFTP.)

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

20 years agoNext phase of general SFTP reworking: psftp.c is now a platform-
simon [Sun, 24 Aug 2003 12:47:46 +0000 (12:47 +0000)]
Next phase of general SFTP reworking: psftp.c is now a platform-
independent source file. All Windowsisms have been moved out to
winsftp.c.

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

20 years agoFix for `slow-startup-printer': use PRINTER_INFO_4 on NT-class systems, which
jacob [Thu, 21 Aug 2003 19:48:45 +0000 (19:48 +0000)]
Fix for `slow-startup-printer': use PRINTER_INFO_4 on NT-class systems, which
apparently tries less hard to find printers so won't slow the system down.

Tested on 2000 and 98; in both cases printer enumeration and printing worked
as well as they did in 2003-08-21.

Made a single shared copy of osVersion in winmisc.c so that printing.c can
find it. Made other users (window.c, pageant.c) use this copy.

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

20 years agoRichard B's patch to enable users to explicitly request shadow bold
simon [Thu, 21 Aug 2003 18:39:17 +0000 (18:39 +0000)]
Richard B's patch to enable users to explicitly request shadow bold
by disabling bold-font-name guessing (if their bold fonts are ugly).
I've turned the UI inside out, but the meat is pretty much the same.

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

20 years agoRichard B's patch to support X cut buffers as well as ordinary
simon [Thu, 21 Aug 2003 18:07:27 +0000 (18:07 +0000)]
Richard B's patch to support X cut buffers as well as ordinary
selections, meaning that (a) a pterm can leave copied text in the
cut buffer after it terminates so that applications can pick it up
even though it isn't still around to deliver the selection in
person, and (b) pterm can pick up things left in this way by other
apps.
Downside is that all of this only happens in ISO8859-1, because X is
weird like that.

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

20 years agoRichard Boulton's patch for improved correctness in selection
simon [Thu, 21 Aug 2003 18:03:06 +0000 (18:03 +0000)]
Richard Boulton's patch for improved correctness in selection
handling (generally, selection request timestamps should be set to
the timestamp on the event that caused them).

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

20 years agoControl of 'addr' is now handed over to {platform_,}new_connection() and
jacob [Thu, 7 Aug 2003 16:04:33 +0000 (16:04 +0000)]
Control of 'addr' is now handed over to {platform_,}new_connection() and
sk_new() on invocation; these functions become responsible for (eventually)
freeing it. The caller must not do anything with 'addr' after it's been passed
in. (Ick.)

Why:
A SOCKS5 crash appears to have been caused by overzealous freeing of
a SockAddr (ssh.c:1.257 [r2492]), which for proxied connections is
squirreled away long-term (and this can't easily be avoided).

It would have been nice to make a copy of the SockAddr, in case the caller has
a use for it, but one of the implementations (uxnet.c) hides a "struct
addrinfo" in there, and we have no defined way to duplicate those. (None of the
current callers _do_ have a further use for the SockAddr.)

As far as I can tell, everything _except_ proxying only needs addr for the
duration of the call, so sk_addr_free()s immediately. If I'm mistaken, it
should at least be easier to find the offending free()...

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

20 years agoClarify that '-m' takes a _local_ file.
jacob [Wed, 16 Jul 2003 08:28:31 +0000 (08:28 +0000)]
Clarify that '-m' takes a _local_ file.
ref. <kjt9hv49dagqmvru0nq9qcc0f5p11vg0ma@4ax.com>

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

20 years agoAdd SSH-1 password camouflage bug detection for version OSU_1.4alpha3 of the
jacob [Sat, 12 Jul 2003 13:45:21 +0000 (13:45 +0000)]
Add SSH-1 password camouflage bug detection for version OSU_1.4alpha3 of the
OSU VMS SSH server <http://kcgl1.eng.ohio-state.edu/~jonesd/ssh/>.

The changelog appears to indicate that the server was fixed for pwplain1 at
1.5alpha4, and for IGNORE and DEBUG messages at 1.5alpha6. However I'm going
to go on the reports we've had as I haven't tested this; and they indicate
only that 1.5alpha6 is known not to require any bug compatibility modes.

(I wasn't sure whether to add this at all, given that upgrading to version
OSU_1.5alpha6 is an easy way to fix the problem. However, there is precedent
for adding detection for old versions of servers which have since been fixed.)

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

20 years agoAdd section on "Access denied". This was mostly inspired by the password
jacob [Sat, 12 Jul 2003 13:25:43 +0000 (13:25 +0000)]
Add section on "Access denied". This was mostly inspired by the password
camouflage problems with SSH-1.5-OSU_1.4alpha3.

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

20 years agoMention Roald Ribe's success with OpenWatcom and Makefile.vc
jacob [Sun, 6 Jul 2003 09:34:03 +0000 (09:34 +0000)]
Mention Roald Ribe's success with OpenWatcom and Makefile.vc

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

20 years agoConsider bells as a display event.
owen [Sat, 5 Jul 2003 11:35:33 +0000 (11:35 +0000)]
Consider bells as a display event.

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

20 years agoPhase 1a of SFTP re-engineering: fix the glaring memory and request
simon [Sun, 29 Jun 2003 14:47:14 +0000 (14:47 +0000)]
Phase 1a of SFTP re-engineering: fix the glaring memory and request
ID leak in the previous checkin. Oops :-)

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

20 years agoFirst phase of SFTP re-engineering. Each base-level fxp_* function
simon [Sun, 29 Jun 2003 14:26:09 +0000 (14:26 +0000)]
First phase of SFTP re-engineering. Each base-level fxp_* function
has been split into a send half and a receive half, so that callers
can set several requests in motion at a time and deal with the
responses in whatever order they arrive.

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

20 years agoFailure to set multipliers[NPRIMES] was rendering the input-modulus
simon [Sat, 28 Jun 2003 14:11:28 +0000 (14:11 +0000)]
Failure to set multipliers[NPRIMES] was rendering the input-modulus
feature (make sure your prime is not congruent to Foo mod Bar)
largely ineffective. As a result, RSA keys were being generated
every so often with at least one prime congruent to 1 mod 37,
causing modinv(37, phi(n)) to divide by zero, and rightly so. I
believe this fixes `puttygen-zero-div'.

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

20 years agobignum_mod_short shouldn't be depending on a fixed place value in
simon [Sat, 28 Jun 2003 14:10:06 +0000 (14:10 +0000)]
bignum_mod_short shouldn't be depending on a fixed place value in
the bignum data! This wasn't actually causing puttygen-zero-div (its
unwarranted assumption was still correct under Windows) but it would
have caused the same symptoms under Unix when I got round to porting
PuTTYgen.

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

20 years agoSomeone pointed out that ^~ should generate the same as ^^, for
simon [Sat, 28 Jun 2003 07:52:19 +0000 (07:52 +0000)]
Someone pointed out that ^~ should generate the same as ^^, for
consistency with xterm.

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

20 years agoImplement sftp-backend-diagnostic in pscp.
owen [Thu, 26 Jun 2003 15:08:05 +0000 (15:08 +0000)]
Implement sftp-backend-diagnostic in pscp.

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

20 years agoImplement hostkey-prompt-type everywhere except Macintosh.
owen [Thu, 26 Jun 2003 14:19:33 +0000 (14:19 +0000)]
Implement hostkey-prompt-type everywhere except Macintosh.

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

20 years agoFix a segfault (non-security-critical - null dereference for
simon [Thu, 26 Jun 2003 13:41:30 +0000 (13:41 +0000)]
Fix a segfault (non-security-critical - null dereference for
reading) in the zlib code when fed certain kinds of invalid data. As
a result, ssh.c now needs to be prepared for zlib_decompress_block
to return failure.

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

20 years agoIncorporate Brad Clarke's suggestion to use "REGEDIT /EA" rather than
jacob [Wed, 25 Jun 2003 15:52:29 +0000 (15:52 +0000)]
Incorporate Brad Clarke's suggestion to use "REGEDIT /EA" rather than
"REGEDIT /E". On newer versions of Windows (verified on 2K), this will cause
the .REG file to be saved in REGEDIT4 format (ASCII) which can be read by
older Windows, rather than REGEDIT5 (Unicode). On older Windows, the extra "A"
is harmless (verified on Win98).

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

20 years agoMissing part of my recent SCOANSI fix.
ben [Sat, 21 Jun 2003 23:13:22 +0000 (23:13 +0000)]
Missing part of my recent SCOANSI fix.

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

20 years agoImprove SCOANSI emulation: The colours that SGR 0 returns to are now changed
ben [Sat, 21 Jun 2003 22:40:42 +0000 (22:40 +0000)]
Improve SCOANSI emulation:  The colours that SGR 0 returns to are now changed
by the SCO SNF and SNB sequences, which seems to be what the SCO console does
(at least in the new mode documented for OpenServer 5.0.6).

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

20 years agoOops, Ben got there first. Oh well, here's a comment.
jacob [Sat, 21 Jun 2003 21:19:21 +0000 (21:19 +0000)]
Oops, Ben got there first. Oh well, here's a comment.

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

20 years agoThe specific SSH cipher algorithms supported by PuTTY weren't listed anywhere
jacob [Sat, 21 Jun 2003 20:21:29 +0000 (20:21 +0000)]
The specific SSH cipher algorithms supported by PuTTY weren't listed anywhere
in the documentation.
Added some detail - feel free to tweak.

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

20 years agoAdd comments to case statements containing the mnemonics for the various
ben [Sat, 21 Jun 2003 19:38:56 +0000 (19:38 +0000)]
Add comments to case statements containing the mnemonics for the various
escape and control sequences.  This should make it easier to find the
implementation of the one you're interested in.

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

20 years agoRemove -DNO_SECURITY from the cygwin build, since <aclapi.h> has been
ben [Sat, 21 Jun 2003 19:34:36 +0000 (19:34 +0000)]
Remove -DNO_SECURITY from the cygwin build, since <aclapi.h> has been
available in cygwin for a year and a half.
Pointed out by Bruno Kozlowski.

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

20 years agoFix problem quitting terminal window while Change Settings active
owen [Thu, 19 Jun 2003 23:04:50 +0000 (23:04 +0000)]
Fix problem quitting terminal window while Change Settings active

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

20 years agoFix for `double-alt-keystrokes'. Thanks to Leonid Lisovskiy.
jacob [Thu, 19 Jun 2003 20:42:32 +0000 (20:42 +0000)]
Fix for `double-alt-keystrokes'. Thanks to Leonid Lisovskiy.

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

20 years agoMake SaneDialogBox and SaneEndDialog use [GS]etWindowLong rather than
owen [Wed, 18 Jun 2003 17:25:18 +0000 (17:25 +0000)]
Make SaneDialogBox and SaneEndDialog use [GS]etWindowLong rather than
a global variable.  Should mean that pageant builds.

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

20 years agoFix double-keystrokes by wrapping CreateDialog
owen [Mon, 16 Jun 2003 23:55:26 +0000 (23:55 +0000)]
Fix double-keystrokes by wrapping CreateDialog

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

20 years agoSupport for more SCO ANSI escape sequences:
ben [Sun, 15 Jun 2003 22:05:05 +0000 (22:05 +0000)]
Support for more SCO ANSI escape sequences:

CSI = Ps c
CSI = Pn1 ; Pn2 C
CSI = Ps D
CSI = Ps F
CSI = Ps G
SGR 6

Patch derived from one supplied by Leonid Lisoskiy, with several fixes from me.

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

20 years agoFix a couple of memory leaks pointed out by Adam Bernstein.
ben [Sat, 14 Jun 2003 18:27:10 +0000 (18:27 +0000)]
Fix a couple of memory leaks pointed out by Adam Bernstein.

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

20 years agoSuggest that local support staff are useful.
ben [Fri, 6 Jun 2003 18:16:52 +0000 (18:16 +0000)]
Suggest that local support staff are useful.

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

20 years agoMove prototype for platform_new_connection() to a header file so the
ben [Fri, 6 Jun 2003 10:42:14 +0000 (10:42 +0000)]
Move prototype for platform_new_connection() to a header file so the
definitions can be checked against it.

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

20 years agoExperimental change in the behaviour of `disable alternate terminal
simon [Tue, 27 May 2003 09:43:14 +0000 (09:43 +0000)]
Experimental change in the behaviour of `disable alternate terminal
screen'. Now it also disables the save-and-restore-cursor behaviour
of ESC[?1048h and ESC[?1049h, since these sequences seem to be
output by software trying to switch to the alternate screen, and it
looks very odd to have the cursor position restored to where it was
before `less' when the garbage `less' wrote all over the screen is
still around. The `traditional' ESC 7 and ESC 8 still function as
normal, on the basis that they aren't usually used in conjunction
with the alternate screen. I'm not sure whether this will be the
right decision; I'm prepared to change it back if a sufficiently
serious counterexample shows up.

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

20 years agoAdd exceptions for "VShell" to the ssh.com bug compatibility modes (which are
jacob [Sat, 24 May 2003 19:03:34 +0000 (19:03 +0000)]
Add exceptions for "VShell" to the ssh.com bug compatibility modes (which are
just numbers) in an attempt to fix `vshell-no-bug-compat'.
Not even tested a little bit.

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

20 years agoFixed accelerator clash between "Conversions" menu and "key comment" control
jacob [Sat, 24 May 2003 18:02:49 +0000 (18:02 +0000)]
Fixed accelerator clash between "Conversions" menu and "key comment" control
(former is now "Con&versions").

Add shortcut to key fingerprint for ease of copy-and-paste.

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

20 years agoModified form of Jim Lucas's PC speaker patch. I don't like
simon [Sat, 24 May 2003 12:31:32 +0000 (12:31 +0000)]
Modified form of Jim Lucas's PC speaker patch. I don't like
discriminating on the Windows version in order to decide whether to
call MessageBeep(-1) or Beep() - I'd prefer to directly test the
specific OS property in any given case - but it looks as if this is
the best available option.

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

20 years agoIncorporate matthew.gabeler-lee's suggested fix for badness with multiple
jacob [Sat, 24 May 2003 10:57:53 +0000 (10:57 +0000)]
Incorporate matthew.gabeler-lee's suggested fix for badness with multiple
exact hostnames in the proxy exclusion list.
<OF63043512.26ABC6B9-ON85256D21.006C33C6-85256D21.006C4B81@EU.novartis.net>

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

20 years agoUpdate a couple of bits of the FAQ. We do now default to SSH2, and
simon [Thu, 22 May 2003 08:43:50 +0000 (08:43 +0000)]
Update a couple of bits of the FAQ. We do now default to SSH2, and
we do have a Unix port of PuTTY proper.

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

21 years agoRene Post's other patch: PuTTYgen was generating double file dialogs
simon [Wed, 14 May 2003 18:53:28 +0000 (18:53 +0000)]
Rene Post's other patch: PuTTYgen was generating double file dialogs
by mistake.

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

21 years agoReal COMPOUND_TEXT support! I was expecting to have to read the spec
simon [Tue, 13 May 2003 19:57:17 +0000 (19:57 +0000)]
Real COMPOUND_TEXT support! I was expecting to have to read the spec
and implement the required subset of ISO-2022 in libcharset, but it
turns out that Xlib provides conversion functions between UTF-8 and
compound text, which are just about ideal for us. So now we can
paste multilingual stuff both to and from emacs21. Rock on.

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

21 years agoAllow pterm to receive selections in compound text format. Doesn't
simon [Tue, 13 May 2003 18:43:30 +0000 (18:43 +0000)]
Allow pterm to receive selections in compound text format. Doesn't
actually _understand_ compound text yet - anything with
non-ASCII-or-8859-1 characters will fail miserably - but it will at
least successfully receive plain text if the pasting application
doesn't see fit to give it out in any other format.

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

21 years agoRename crc32() to crc32_compute(), to avoid clashing catastrophically
simon [Tue, 13 May 2003 18:23:43 +0000 (18:23 +0000)]
Rename crc32() to crc32_compute(), to avoid clashing catastrophically
with the crc32() function in the zlib interface. (Not that PuTTY
itself _uses_ zlib, but on Unix it's linked against libgtk which
uses libpng which uses zlib. And zlib has poor namespace management
so it defines this ridiculously intrusive function name. Arrrrgh.)

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

21 years agoDebian bug #193013 points out that the (default-)one-pixel border is
simon [Tue, 13 May 2003 18:14:14 +0000 (18:14 +0000)]
Debian bug #193013 points out that the (default-)one-pixel border is
not redrawn when the window background colour is reconfigured mid-
session. In addition, the Official Window Background is not reset,
meaning that opaque resizes etc will flicker in the old background
colour. This checkin should fix both.

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

21 years agoPatch from Rene Post: ctrl_{drag,drop}list both now initialise the
simon [Mon, 12 May 2003 13:41:41 +0000 (13:41 +0000)]
Patch from Rene Post: ctrl_{drag,drop}list both now initialise the
same set of structure fields that the ordinary ctrl_listbox does.

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

21 years agoBrief man pages for PuTTY and PuTTYtel.
simon [Sun, 11 May 2003 14:32:43 +0000 (14:32 +0000)]
Brief man pages for PuTTY and PuTTYtel.

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

21 years agoMissing full stop.
simon [Sun, 11 May 2003 14:19:57 +0000 (14:19 +0000)]
Missing full stop.

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

21 years agoSome time ago I arranged for -geometry to be able to specify window
simon [Sun, 11 May 2003 14:19:17 +0000 (14:19 +0000)]
Some time ago I arranged for -geometry to be able to specify window
position as well as size. Now reflected in manpage.

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

21 years agoI think I've just fixed Debian bug #166396. The +ut option was
simon [Sun, 11 May 2003 12:28:53 +0000 (12:28 +0000)]
I think I've just fixed Debian bug #166396. The +ut option was
causing pty_utmp_helper_pipe to be closed, but its fd was kept
around even when stale, and closed again when the main child process
terminated - by which time the fd number had been reused for a
rather more vital fd, which GTK didn't appreciate having closed
under its feet. Hence, spin on POLLNVAL. Should now be sorted.

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

21 years agoFinally, column spanning.
ben [Sat, 10 May 2003 20:51:39 +0000 (20:51 +0000)]
Finally, column spanning.

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

21 years agoChange the way that panel-switching works so that we only hide the panel
ben [Sat, 10 May 2003 20:23:23 +0000 (20:23 +0000)]
Change the way that panel-switching works so that we only hide the panel
we're switching from and show the panel we're switching to, rather than
iterating over all the panels, hiding and showing them as appropriate.
This has that consequence that all controls have to be created invisible,
since they no longer get hidden after creation.  As usual, the scroll
bars on list boxes have a special hack of their own.

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

21 years agoMake ssh_agent_callback() and ssh_agentf_callback() static.
ben [Sat, 10 May 2003 12:54:29 +0000 (12:54 +0000)]
Make ssh_agent_callback() and ssh_agentf_callback() static.

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

21 years agoI believe that verify_ssh_host_key() should now be passed a real front-end
ben [Sat, 10 May 2003 12:27:38 +0000 (12:27 +0000)]
I believe that verify_ssh_host_key() should now be passed a real front-end
handle, which removes one of its many flaws.

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

21 years agoExtra const for loop_init() and null_init().
ben [Sat, 10 May 2003 11:57:55 +0000 (11:57 +0000)]
Extra const for loop_init() and null_init().

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

21 years agoEliminate a "possible unintended assignment" warning.
ben [Sat, 10 May 2003 11:50:18 +0000 (11:50 +0000)]
Eliminate a "possible unintended assignment" warning.

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

21 years agoUpdate signature of agent_query() to match the rest of the world.
ben [Sat, 10 May 2003 11:40:18 +0000 (11:40 +0000)]
Update signature of agent_query() to match the rest of the world.

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

21 years agoComment a few things I need to fix.
ben [Sat, 10 May 2003 11:26:33 +0000 (11:26 +0000)]
Comment a few things I need to fix.

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

21 years agoRemove the now incorrect `Unicode is not supported' from the bugs in
simon [Sat, 10 May 2003 10:15:36 +0000 (10:15 +0000)]
Remove the now incorrect `Unicode is not supported' from the bugs in
the pterm man page :-)

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

21 years agopterm will now attempt to guess suitable names for any missing fonts
simon [Sat, 10 May 2003 10:15:00 +0000 (10:15 +0000)]
pterm will now attempt to guess suitable names for any missing fonts
from the ones given; so it'll ask for a font twice as wide as your
base one if you don't specify a wide font, it'll ask for a bolded
version of your base font if you don't specify a bold font, and
similarly for a wide/bold font. Should solve Debian bug #187389; at
least it works for me.

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

21 years agopterm's manpage now documents the NoRemoteQTitle resource. Should
simon [Sat, 10 May 2003 09:06:00 +0000 (09:06 +0000)]
pterm's manpage now documents the NoRemoteQTitle resource. Should
fix the other half of Debian bug #191751.

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

21 years agoStupid braino in get_window_title (thanks Colin): window and icon
simon [Sat, 10 May 2003 09:05:41 +0000 (09:05 +0000)]
Stupid braino in get_window_title (thanks Colin): window and icon
titles were being reported the wrong way round. Should fix half of
Debian bug #191751.

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

21 years agoShould fix Debian bug #192674: another gcc complaint about
simon [Sat, 10 May 2003 08:37:54 +0000 (08:37 +0000)]
Should fix Debian bug #192674: another gcc complaint about
potentially uninitialised variable.

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

21 years agoFixes for Debian bug #192701 (64-bit gccs warn about casts between
simon [Sat, 10 May 2003 08:35:54 +0000 (08:35 +0000)]
Fixes for Debian bug #192701 (64-bit gccs warn about casts between
ptrs and ints of different size and -Werror makes this serious).
The GTK bits are done by Colin's patch to use GINT_TO_POINTER
(thanks); the uxnet bits are done by cleaning up the rest of the
code. In particular, network.h now typedefs `OSSocket' to be a type
capable of holding whatever the OS's socket data type is that
underlies our socket abstraction. Individual platforms can make this
typedef themselves if they define OSSOCKET_DEFINED to prevent
network.h redoing it; so the Unix OSSocket is now int. Default is
still void *, so other platforms should be unaffected.

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

21 years agoFix a typo in my backwards-compatibility wart. Oops.
simon [Thu, 8 May 2003 09:07:37 +0000 (09:07 +0000)]
Fix a typo in my backwards-compatibility wart. Oops.

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

21 years agoBah. Stop the Proxy panel appearing empty in Change Settings. One
simon [Wed, 7 May 2003 13:14:48 +0000 (13:14 +0000)]
Bah. Stop the Proxy panel appearing empty in Change Settings. One
day I'll make a reasonably big checkin and _not_ have six tiny mop-
up issues after it...

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

21 years agoYesterday's proxy enhancements also slightly nadgered the config
simon [Wed, 7 May 2003 12:07:23 +0000 (12:07 +0000)]
Yesterday's proxy enhancements also slightly nadgered the config
box, in that it started to expand under the weight of proxy options.
Now fixed, by folding the SOCKS version selector into the general
proxy type selector so there's one single 5- or 6-way radio button
set split over two lines. settings.c has of course grown a backwards
compatibility wart to deal with legacy config data.

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