u/mdw/putty
23 years agoDave Hinton's modifications to the network layer interface, which
simon [Tue, 13 Mar 2001 10:22:45 +0000 (10:22 +0000)]
Dave Hinton's modifications to the network layer interface, which
should make it possible to add SSL support later.

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

23 years agoAdd dependencies for x11fwd.obj to Makefile (thanks Catbells :-)
simon [Tue, 13 Mar 2001 09:41:02 +0000 (09:41 +0000)]
Add dependencies for x11fwd.obj to Makefile (thanks Catbells :-)

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

23 years agossh_get_password has become ssh_get_line, so it can handle usernames
simon [Mon, 12 Mar 2001 15:31:53 +0000 (15:31 +0000)]
ssh_get_password has become ssh_get_line, so it can handle usernames
as well. This should fix the multiple-reads-on-stdin bug in plink.

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

23 years agoZero length passwords no longer cause an assertion failure :-)
simon [Mon, 12 Mar 2001 15:12:33 +0000 (15:12 +0000)]
Zero length passwords no longer cause an assertion failure :-)

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

23 years agoFinally fixed the point/pixel confusion in font handling. Thanks to
simon [Mon, 12 Mar 2001 12:24:07 +0000 (12:24 +0000)]
Finally fixed the point/pixel confusion in font handling. Thanks to
Roman Surma for pointing me at the relevant bits of documentation. All
font sizes should now be measured in points, and everything should be
consistent, and (with any luck) old Registry settings should adapt
gracefully too.

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

23 years agoAdd support for using Diffie-Hellman with short exponents (sshdh.c
simon [Sat, 10 Mar 2001 11:04:07 +0000 (11:04 +0000)]
Add support for using Diffie-Hellman with short exponents (sshdh.c
contains a reference to a paper on the subject). Reduces time taken
for DH group exchange to the point where it's viable to enable it
all the time, so I have. :-)

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

23 years agoTiny bug in bn_power_2() - didn't work with powers that were a
simon [Sat, 10 Mar 2001 11:03:26 +0000 (11:03 +0000)]
Tiny bug in bn_power_2() - didn't work with powers that were a
multiple of 16. Oops!

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

23 years agoUpdate the text format of the public key as the comment box is edited
simon [Sat, 10 Mar 2001 10:22:18 +0000 (10:22 +0000)]
Update the text format of the public key as the comment box is edited

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

23 years agoComplete analysis of the magic ASN.1 stuff in RSASSA signatures
simon [Fri, 9 Mar 2001 13:30:43 +0000 (13:30 +0000)]
Complete analysis of the magic ASN.1 stuff in RSASSA signatures

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

23 years agoHaving introduced a new function into the SSH2 compression structure,
simon [Thu, 8 Mar 2001 10:07:22 +0000 (10:07 +0000)]
Having introduced a new function into the SSH2 compression structure,
it would help if I implemented it in the dummy no-compression case!

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

23 years agoIntroduce the ability to distinguish remote SSH implementations by
simon [Tue, 6 Mar 2001 10:32:28 +0000 (10:32 +0000)]
Introduce the ability to distinguish remote SSH implementations by
their version strings and enable bug compatibility modes.

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

23 years agoUpdate a couple of messages to be clearer to users who don't have
simon [Tue, 6 Mar 2001 09:29:43 +0000 (09:29 +0000)]
Update a couple of messages to be clearer to users who don't have
access to complete documentation (ie all of them at the moment :-)

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

23 years agoFix various trivial compiler warnings
simon [Mon, 5 Mar 2001 17:31:36 +0000 (17:31 +0000)]
Fix various trivial compiler warnings

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

23 years agoMake the SSH2 traffic analysis defence robust in the face of Zlib
simon [Mon, 5 Mar 2001 16:38:42 +0000 (16:38 +0000)]
Make the SSH2 traffic analysis defence robust in the face of Zlib
compression. This involves introducing an option to disable Zlib
compression (that is, continue to work within the Zlib format but
output an uncompressed block) for the duration of a single packet.

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

23 years agoFurther traffic analysis defences
simon [Mon, 5 Mar 2001 10:32:36 +0000 (10:32 +0000)]
Further traffic analysis defences

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

23 years agoImplement OpenSSH's private agent forwarding extension. I believe we
simon [Sat, 3 Mar 2001 16:38:44 +0000 (16:38 +0000)]
Implement OpenSSH's private agent forwarding extension. I believe we
now interoperate with OpenSSH/SSH2 to _exactly_ the same level as we
interoperate with SSH1. Which is pretty cool really.

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

23 years agoRemove some stray diagnostics
simon [Sat, 3 Mar 2001 16:10:04 +0000 (16:10 +0000)]
Remove some stray diagnostics

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

23 years agoRemove a spurious \r\n from an Event Log message
simon [Sat, 3 Mar 2001 16:05:52 +0000 (16:05 +0000)]
Remove a spurious \r\n from an Event Log message

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

23 years agoSSH2 can now use Pageant to obtain keys from
simon [Sat, 3 Mar 2001 15:56:39 +0000 (15:56 +0000)]
SSH2 can now use Pageant to obtain keys from

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

23 years agoAdd support for the OpenSSH SSH2 agent protocol.
simon [Sat, 3 Mar 2001 15:31:35 +0000 (15:31 +0000)]
Add support for the OpenSSH SSH2 agent protocol.

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

23 years agoThe authentication diagnostics in SSH2 should now be better.
simon [Sat, 3 Mar 2001 13:53:44 +0000 (13:53 +0000)]
The authentication diagnostics in SSH2 should now be better.
Additionally, the ability to switch usernames if you mistype the
first one has been restored (although it didn't actually work
because OpenSSH didn't feel like playing; patch submitted :-).

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

23 years agoOops - fix silly segfault in new puttygen
simon [Sat, 3 Mar 2001 12:05:36 +0000 (12:05 +0000)]
Oops - fix silly segfault in new puttygen

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

23 years agoPreliminary support for RSA user authentication in SSH2! Most of the
simon [Sat, 3 Mar 2001 11:54:34 +0000 (11:54 +0000)]
Preliminary support for RSA user authentication in SSH2! Most of the
error messages are currently wrong, and Pageant doesn't yet support
the new key type, and I haven't thoroughly tested that falling back
to password authentication and trying invalid keys etc all work. But
what I have here has successfully performed a public key
authentication, so it's working to at least some extent.

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

23 years agoMore options for bignum debugging
simon [Sat, 3 Mar 2001 11:53:07 +0000 (11:53 +0000)]
More options for bignum debugging

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

23 years agoInclude key type in SSH2 key fingerprints, now we have more than one
simon [Fri, 2 Mar 2001 17:16:22 +0000 (17:16 +0000)]
Include key type in SSH2 key fingerprints, now we have more than one

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

23 years agoArgh, sshrsa.c now depends on sshsha.c so Pageant needs it :-(
simon [Fri, 2 Mar 2001 17:14:10 +0000 (17:14 +0000)]
Argh, sshrsa.c now depends on sshsha.c so Pageant needs it :-(

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

23 years agoAdded support for RSA host keys (not user keys yet)
simon [Fri, 2 Mar 2001 17:13:36 +0000 (17:13 +0000)]
Added support for RSA host keys (not user keys yet)

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

23 years agoExtra crash-safety in decoding a DSS signature blob
simon [Fri, 2 Mar 2001 17:13:16 +0000 (17:13 +0000)]
Extra crash-safety in decoding a DSS signature blob

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

23 years agoSupport for selecting AES from the GUI. In the process, I've had to
simon [Fri, 2 Mar 2001 13:55:23 +0000 (13:55 +0000)]
Support for selecting AES from the GUI. In the process, I've had to
introduce another layer of abstraction in SSH2 ciphers, such that a
single `logical cipher' (as desired by a user) can equate to more
than one `physical cipher'. This is because AES comes in several key
lengths (PuTTY will pick the highest supported by the remote end)
and several different SSH2-protocol-level names (aes*-cbc,
rijndael*-cbc, and an unofficial one rijndael-cbc@lysator.liu.se).

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

23 years agoAdd AES support in SSH2. Not yet complete: there's no way to select
simon [Fri, 2 Mar 2001 11:44:35 +0000 (11:44 +0000)]
Add AES support in SSH2. Not yet complete: there's no way to select
it in the GUI (or even in the registry).

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

23 years agoA fix in modmul: don't segfault or fill the result with rubbish if
simon [Fri, 2 Mar 2001 10:29:23 +0000 (10:29 +0000)]
A fix in modmul: don't segfault or fill the result with rubbish if
the unreduced product is shorter than the modulus.

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

23 years agoFix problem with pointer hiding
simon [Fri, 2 Mar 2001 09:25:14 +0000 (09:25 +0000)]
Fix problem with pointer hiding

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

23 years agoJacob's fixes for the Event Log
simon [Fri, 2 Mar 2001 09:24:05 +0000 (09:24 +0000)]
Jacob's fixes for the Event Log

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

23 years agoDiffie-Hellman group exchange in SSH2. Currently #ifdeffed out
simon [Thu, 1 Mar 2001 17:55:40 +0000 (17:55 +0000)]
Diffie-Hellman group exchange in SSH2. Currently #ifdeffed out
(change the sense of #ifdef DO_DIFFIE_HELLMAN_GEX in ssh.c) because
it's _far_ too slow. Will be re-enabled once the bignum routines
work a bit faster (or rather a _lot_ faster).

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

23 years agoAdd a key length indication to each SSH2 cipher structure, in
simon [Thu, 1 Mar 2001 17:45:31 +0000 (17:45 +0000)]
Add a key length indication to each SSH2 cipher structure, in
preparation for needing to know how much key material each cipher
needs in order to select a suitable Diffie-Hellman group.

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

23 years agoRemove the last lingering knowledge, outside sshbn.c, of the
simon [Thu, 1 Mar 2001 17:41:26 +0000 (17:41 +0000)]
Remove the last lingering knowledge, outside sshbn.c, of the
internal structure of the Bignum type. Bignum is now a fully opaque
type unless you're inside sshbn.c.

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

23 years agoStop accidental subsystem attempts
simon [Thu, 1 Mar 2001 12:27:35 +0000 (12:27 +0000)]
Stop accidental subsystem attempts

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

23 years agoFix a potential segfault
simon [Thu, 1 Mar 2001 11:49:23 +0000 (11:49 +0000)]
Fix a potential segfault

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

23 years agoOops, that broke Telnet negotiation display. Fix tabstops in eventlog.
simon [Tue, 27 Feb 2001 17:09:04 +0000 (17:09 +0000)]
Oops, that broke Telnet negotiation display. Fix tabstops in eventlog.

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

23 years agoTimestamp every line of the Event Log. The primary reason for this
simon [Tue, 27 Feb 2001 17:02:51 +0000 (17:02 +0000)]
Timestamp every line of the Event Log. The primary reason for this
(generating detail in bug reports when SSH2 repeat key exchange
failed) is no longer an issue, but it might be useful for other
things. It's a _log_ dammit, and logs should be timestamped.

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

23 years agoPatches to prevent a couple of silly crashes
simon [Tue, 27 Feb 2001 09:11:42 +0000 (09:11 +0000)]
Patches to prevent a couple of silly crashes

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

23 years agoModerately evil workaround to compensate for a variation in
simon [Mon, 26 Feb 2001 16:39:15 +0000 (16:39 +0000)]
Moderately evil workaround to compensate for a variation in
behaviour of FXP_REALPATH. (Specifically, BSD and GNU realpath(3)
disagree over whether to return success when computing the realpath
for a putative new file to be created in a valid directory. There's
no way we can tell from (say) the OpenSSH version string because
OpenSSH might have been compiled to use the local realpath _or_ its
own nonbroken one.)

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

23 years agoAhem. sftp.obj depends on sftp.c not on psftp.c!
simon [Mon, 26 Feb 2001 16:37:22 +0000 (16:37 +0000)]
Ahem. sftp.obj depends on sftp.c not on psftp.c!

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

23 years agoFinish adding PSFTP to the master Makefile (oops!)
simon [Mon, 26 Feb 2001 09:21:55 +0000 (09:21 +0000)]
Finish adding PSFTP to the master Makefile (oops!)

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

23 years agopsftp now works as part of the PuTTY suite
simon [Sat, 24 Feb 2001 16:08:56 +0000 (16:08 +0000)]
psftp now works as part of the PuTTY suite

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

23 years agoSFTP client now successfully handles cd, ls, get and put.
simon [Sat, 24 Feb 2001 12:02:35 +0000 (12:02 +0000)]
SFTP client now successfully handles cd, ls, get and put.

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

23 years agoFirst stab at an SFTP client. Currently a Unixland testing app, not
simon [Fri, 23 Feb 2001 18:21:44 +0000 (18:21 +0000)]
First stab at an SFTP client. Currently a Unixland testing app, not
integrated into PuTTY.

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

23 years ago64-bit integer routines
simon [Fri, 23 Feb 2001 18:21:06 +0000 (18:21 +0000)]
64-bit integer routines

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

23 years agoAdd a traffic analysis defence to SSH2 password authentication
simon [Fri, 23 Feb 2001 13:15:17 +0000 (13:15 +0000)]
Add a traffic analysis defence to SSH2 password authentication

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

23 years agoUpdate copyright dates to 2001 :-)
simon [Thu, 22 Feb 2001 09:07:24 +0000 (09:07 +0000)]
Update copyright dates to 2001 :-)

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

23 years agoAttempt to fix the remaining key re-exchange bug
simon [Tue, 20 Feb 2001 13:55:59 +0000 (13:55 +0000)]
Attempt to fix the remaining key re-exchange bug

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

23 years agoMore proto `how-to' documentation: CVS and WinCVS
owen [Mon, 19 Feb 2001 23:24:01 +0000 (23:24 +0000)]
More proto `how-to' documentation: CVS and WinCVS

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

23 years agoAdd a how-to section on public-key authentication in PSCP
simon [Mon, 19 Feb 2001 10:54:18 +0000 (10:54 +0000)]
Add a how-to section on public-key authentication in PSCP

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

23 years agoAdd "make clean" target
simon [Mon, 19 Feb 2001 10:54:05 +0000 (10:54 +0000)]
Add "make clean" target

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

23 years agoPrelim. CVS/plink howto
owen [Wed, 7 Feb 2001 11:20:15 +0000 (11:20 +0000)]
Prelim. CVS/plink howto

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

23 years agoMostly Mathias Leinmueller's PuTTYgen documentation, modified slightly
owen [Tue, 6 Feb 2001 09:34:42 +0000 (09:34 +0000)]
Mostly Mathias Leinmueller's PuTTYgen documentation, modified slightly
and Buttressed.

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

23 years agoModifications to the new Close On Exit option:
simon [Mon, 5 Feb 2001 13:42:33 +0000 (13:42 +0000)]
Modifications to the new Close On Exit option:
 - wording change (required a patch to winctrls.c:radioline())
 - `only on clean exit' is used when an old-style config says `yes',
   on the grounds that it's more generally useful than `always' and
   also we want to map the old default to the new default.

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

23 years agoJacob's patch to improve Close On Exit behaviour
simon [Mon, 5 Feb 2001 13:08:18 +0000 (13:08 +0000)]
Jacob's patch to improve Close On Exit behaviour

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

23 years agoVarious bug/warning fixes from Jacob
simon [Mon, 5 Feb 2001 13:04:00 +0000 (13:04 +0000)]
Various bug/warning fixes from Jacob

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

23 years agoFix various slashes.
owen [Sun, 4 Feb 2001 15:49:49 +0000 (15:49 +0000)]
Fix various slashes.

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

23 years agoPlink documentation cribs heavily from PSCP documentation, film at 11.
owen [Sun, 4 Feb 2001 15:47:01 +0000 (15:47 +0000)]
Plink documentation cribs heavily from PSCP documentation, film at 11.

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

23 years agoSome examples.
owen [Sun, 4 Feb 2001 15:35:36 +0000 (15:35 +0000)]
Some examples.

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

23 years agoShrink the keepalive-timeout box so the text beside it can all fit in
simon [Thu, 1 Feb 2001 14:13:46 +0000 (14:13 +0000)]
Shrink the keepalive-timeout box so the text beside it can all fit in

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

23 years agoYet another attempt at OOB handling in the network abstraction. This
simon [Thu, 1 Feb 2001 14:11:04 +0000 (14:11 +0000)]
Yet another attempt at OOB handling in the network abstraction. This
version allows you to specify, per socket, which sockets receive OOB
data in-line (so that you know what was before the mark and what was
after) and which receive it out of line (so it's really a one-byte
out-of-band facility rather than discard-to-mark). This reflects the
fact that rlogin appears to make more sense in the latter mode, and
telnet in the former. This patch makes rlogin work right for me.

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

23 years agoIgnore the zero byte at the start of the rlogin main protocol
simon [Thu, 1 Feb 2001 14:09:00 +0000 (14:09 +0000)]
Ignore the zero byte at the start of the rlogin main protocol

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

23 years agoFix an always-false comparison (don't compare a char to 0x80!)
simon [Thu, 1 Feb 2001 14:07:53 +0000 (14:07 +0000)]
Fix an always-false comparison (don't compare a char to 0x80!)

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

23 years agoAvoid mallocing zero bytes in the event log Copy processing, which
simon [Thu, 1 Feb 2001 11:35:15 +0000 (11:35 +0000)]
Avoid mallocing zero bytes in the event log Copy processing, which
was apparently a problem for compilers other than Visual C. Thanks
to Roman Pompejus for pointing it out.

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

23 years agoAdd zlib_freetable() to prevent memory leaks. Thanks to Kevin Eric Saunders
simon [Wed, 31 Jan 2001 09:10:18 +0000 (09:10 +0000)]
Add zlib_freetable() to prevent memory leaks. Thanks to Kevin Eric Saunders

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

23 years agoThis time, a working version of the pscp docs.
owen [Wed, 31 Jan 2001 00:28:11 +0000 (00:28 +0000)]
This time, a working version of the pscp docs.

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

23 years agoMore pscp documentation.
owen [Wed, 31 Jan 2001 00:25:57 +0000 (00:25 +0000)]
More pscp documentation.

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

23 years agoMore stuff is written.
simon [Mon, 29 Jan 2001 17:26:20 +0000 (17:26 +0000)]
More stuff is written.

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

23 years agoDon't forget to read any outstanding data on receipt of FD_CLOSE.
simon [Mon, 29 Jan 2001 15:10:56 +0000 (15:10 +0000)]
Don't forget to read any outstanding data on receipt of FD_CLOSE.
Particularly useful for people speaking HTTP, Finger etc over raw
connections.

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

23 years agoRobert de Bath's TCP Urgent / Telnet SYNCH patch.
simon [Mon, 29 Jan 2001 14:49:21 +0000 (14:49 +0000)]
Robert de Bath's TCP Urgent / Telnet SYNCH patch.

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

23 years agoPrevent "Connection closed" message box from appearing after the
simon [Mon, 29 Jan 2001 14:31:57 +0000 (14:31 +0000)]
Prevent "Connection closed" message box from appearing after the
"Network error" box. The latter on its own is enough.

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

23 years agoPrevent duplicate sk_close() calls on the same socket when the
simon [Mon, 29 Jan 2001 14:30:59 +0000 (14:30 +0000)]
Prevent duplicate sk_close() calls on the same socket when the
connection dies unexpectedly (CONNABORTED / CONNRESET)

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

23 years agoRemove a segfault in bombout() macro: don't sk_close() the socket if
simon [Mon, 29 Jan 2001 13:19:59 +0000 (13:19 +0000)]
Remove a segfault in bombout() macro: don't sk_close() the socket if
it's already NULL. The `Incorrect MAC' problem was causing
ssh2_rdpkt to bombout(), setting s to NULL, and then a secondary
bombout() was happening at the next level up, causing a segfault.

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

23 years agoInstructions on setting PATH more permanently.
owen [Sun, 28 Jan 2001 14:38:23 +0000 (14:38 +0000)]
Instructions on setting PATH more permanently.

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

23 years agoMore options documented
owen [Sun, 28 Jan 2001 14:27:08 +0000 (14:27 +0000)]
More options documented

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

23 years agoUse the PuTTY site's CSS stylesheet.
owen [Sun, 28 Jan 2001 14:00:54 +0000 (14:00 +0000)]
Use the PuTTY site's CSS stylesheet.
Add Contact mail address to the page footer.

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

23 years agoDocumentation for -P and -pw
owen [Sat, 27 Jan 2001 17:49:18 +0000 (17:49 +0000)]
Documentation for -P and -pw

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

23 years agoA start at some proper PSCP documentation
owen [Sat, 27 Jan 2001 16:26:55 +0000 (16:26 +0000)]
A start at some proper PSCP documentation

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

23 years agoRemove -gui from the command-line help in pscp, because it's an
simon [Sat, 27 Jan 2001 15:51:41 +0000 (15:51 +0000)]
Remove -gui from the command-line help in pscp, because it's an
internal option only.

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

23 years agoFix the SSH2 key re-exchange bug. Session id != exchange hash,
simon [Fri, 26 Jan 2001 18:50:13 +0000 (18:50 +0000)]
Fix the SSH2 key re-exchange bug. Session id != exchange hash,
because the session id is the exchange hash from the _first_ key
exchange, so in subsequent key exchanges they're different.

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

23 years agoEnsure all backends _remember_ the connection has closed after
simon [Fri, 26 Jan 2001 12:22:16 +0000 (12:22 +0000)]
Ensure all backends _remember_ the connection has closed after
receiving a network error. Should prevent the cascading-error-box
bug.

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

23 years agoJacob's patch to fix all the accelerators. AGAIN.
simon [Fri, 26 Jan 2001 09:48:37 +0000 (09:48 +0000)]
Jacob's patch to fix all the accelerators. AGAIN.

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

23 years agoFix build errors in PSCP after line discipline upheaval
simon [Fri, 26 Jan 2001 09:33:12 +0000 (09:33 +0000)]
Fix build errors in PSCP after line discipline upheaval

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

23 years agoUse `default_port' rather than `22' when loading a default session.
simon [Wed, 24 Jan 2001 14:55:48 +0000 (14:55 +0000)]
Use `default_port' rather than `22' when loading a default session.

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

23 years agoRethink the whole line discipline architecture. Instead of having
simon [Wed, 24 Jan 2001 14:08:20 +0000 (14:08 +0000)]
Rethink the whole line discipline architecture. Instead of having
multiple switchable line disciplines, we now have a single unified
one which changes its behaviour based on option settings. Each
option setting can be suggested by the back end and/or the terminal
handler, and can be forcibly overridden by the configuration. Local
echo and local line editing are separate, independently switchable,
options.

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

23 years agoImprove socket error handling so that a socket error isn't an
simon [Wed, 24 Jan 2001 10:11:18 +0000 (10:11 +0000)]
Improve socket error handling so that a socket error isn't an
automatic fatalbox(). Instead, the error is passed to the receiver
routine, which can decide just how fatal the problem really is.

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

23 years agoAhem. The log-file Browse button should set cfg.logfilename and not
simon [Wed, 24 Jan 2001 09:29:55 +0000 (09:29 +0000)]
Ahem. The log-file Browse button should set cfg.logfilename and not
cfg.keyfile. Next time I copy and paste a huge chunk of code, I
should take more care about it :-/

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

23 years agoRoman Pompejus's suggestion: do sensible things with focus when the
simon [Tue, 23 Jan 2001 17:40:51 +0000 (17:40 +0000)]
Roman Pompejus's suggestion: do sensible things with focus when the
event log window appears or disappears.

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

23 years agoRoman Pompejus's fix for the TAB-not-working-in-Event-Log bug
simon [Tue, 23 Jan 2001 17:37:52 +0000 (17:37 +0000)]
Roman Pompejus's fix for the TAB-not-working-in-Event-Log bug

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

23 years agoWhen the SSH panel disappears in puttytel, the Tunnels panel should too!
simon [Tue, 23 Jan 2001 14:20:04 +0000 (14:20 +0000)]
When the SSH panel disappears in puttytel, the Tunnels panel should too!

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

23 years agoRemove the entirely pointless fourth parameter from x11_init().
simon [Tue, 23 Jan 2001 11:02:02 +0000 (11:02 +0000)]
Remove the entirely pointless fourth parameter from x11_init().

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

23 years agoFix a subtle bug affecting multiple-socket handling in Plink. (Was
simon [Tue, 23 Jan 2001 10:19:17 +0000 (10:19 +0000)]
Fix a subtle bug affecting multiple-socket handling in Plink. (Was
interfering with X forwarding.)
Details of bug: the event object used as the target of
WSAEventSelect is created in such a way that it is automatically
reset when it releases a thread from WaitFor*Objects. Subsequently,
a read on the first socket in the list causes another network event
if not all the available data was read; thus the event object is set
again. Then, WSAEnumNetworkEvents is called again for the _second_
socket, and is passed the network event, which it therefore resets.
So an event has been dropped, and things only get restarted when
some more data arrives on the first socket.

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

23 years agoUpdate puttygen GUI code to use Jeremy Sawicki's better group boxes
simon [Mon, 22 Jan 2001 17:25:20 +0000 (17:25 +0000)]
Update puttygen GUI code to use Jeremy Sawicki's better group boxes

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

23 years agoAdd dependencies for puttygen.c
simon [Mon, 22 Jan 2001 17:24:58 +0000 (17:24 +0000)]
Add dependencies for puttygen.c

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

23 years agoClean up a couple of trivial compiler warnings.
simon [Mon, 22 Jan 2001 17:24:38 +0000 (17:24 +0000)]
Clean up a couple of trivial compiler warnings.

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

23 years agoJeremy Sawicki's fix for the multiple-conflicting-accelerators
simon [Mon, 22 Jan 2001 17:17:26 +0000 (17:17 +0000)]
Jeremy Sawicki's fix for the multiple-conflicting-accelerators
problems: controls are now destroyed and recreated on a panel
switch. In addition, this patch also introduces a better means of
doing the group boxes.

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

23 years agoAbility to hide the mouse pointer on a keypress a la Word
simon [Mon, 22 Jan 2001 16:38:43 +0000 (16:38 +0000)]
Ability to hide the mouse pointer on a keypress a la Word

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