u/mdw/putty
21 years agoFirst phase of porting. pterm now compiles and runs under Linux+gtk.
simon [Wed, 9 Oct 2002 18:09:42 +0000 (18:09 +0000)]
First phase of porting. pterm now compiles and runs under Linux+gtk.
The current pty.c backend is temporarily a loopback device for
terminal emulator testing, the display handling is only just enough
to show that terminal.c is functioning, the keyboard handling is
laughable, and most features are absent. Next step: bring output and
input up to a plausibly working state, and put a real pty on the
back to create a vaguely usable prototype. Oh, and a scrollbar would
be nice too.
In _theory_ the Windows builds should still work fine after this...

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

21 years agoOops. Dirsep in Makefile.cyg should be / not \.
simon [Mon, 7 Oct 2002 22:21:28 +0000 (22:21 +0000)]
Oops. Dirsep in Makefile.cyg should be / not \.

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

21 years agoRemove "-log" option from Plink. AFAICT this code has been dead since Roman
jacob [Mon, 7 Oct 2002 17:43:07 +0000 (17:43 +0000)]
Remove "-log" option from Plink. AFAICT this code has been dead since Roman
Pompejus' improved logging (Jan 2001).

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

21 years agoFix pscp-cmdline-port-bug for PSFTP too. (Also removes what appears to be a
jacob [Mon, 7 Oct 2002 17:31:52 +0000 (17:31 +0000)]
Fix pscp-cmdline-port-bug for PSFTP too. (Also removes what appears to be a
gratuitous re-implementation of the "-l user" option.)

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

21 years agoFix code which was clobbering people's -P arguments in PSCP (moved it to
jacob [Mon, 7 Oct 2002 16:52:55 +0000 (16:52 +0000)]
Fix code which was clobbering people's -P arguments in PSCP (moved it to
before the deferred command line processing).
Also removed a couple of unused variables.

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

21 years agoBegin destabilisation in the wake of 0.53! This checkin contains the
simon [Mon, 7 Oct 2002 16:45:23 +0000 (16:45 +0000)]
Begin destabilisation in the wake of 0.53! This checkin contains the
beginning of a Unix port. It's nowhere near done, and currently it
won't even compile on Unix. But this represents the start of the
process of separating out platform-specific code, and also contains
the mkfiles.pl changes required to support a Unix makefile and a
non-flat source tree.

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

21 years agoRemove last vestiges of `buggymac' in the Config structure. Might
simon [Tue, 1 Oct 2002 18:30:15 +0000 (18:30 +0000)]
Remove last vestiges of `buggymac' in the Config structure. Might
have been cause of a Plink bug since it no longer got initialised.

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

21 years agoBump the version number on the installer script.
simon [Tue, 1 Oct 2002 17:27:54 +0000 (17:27 +0000)]
Bump the version number on the installer script.

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

21 years agoAdd a chapter explaining common error messages
simon [Tue, 1 Oct 2002 16:27:36 +0000 (16:27 +0000)]
Add a chapter explaining common error messages

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

21 years agoAdd a new SSH2 bug: some servers apparently claim to be able to do
simon [Thu, 26 Sep 2002 18:37:33 +0000 (18:37 +0000)]
Add a new SSH2 bug: some servers apparently claim to be able to do
DH group exchange, but choke when you actually try it. Never
automatically enabled; manual control only.

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

21 years agoAny application using non-modal dialogs must use IsDialogMessage in
simon [Thu, 26 Sep 2002 18:01:21 +0000 (18:01 +0000)]
Any application using non-modal dialogs must use IsDialogMessage in
its main message loop, otherwise keyboard accelerators will not work
in the dialogs. I MUST NOT FORGET THIS AGAIN.

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

21 years agoIf the user asks for the Pageant key list window and it's already
simon [Thu, 26 Sep 2002 17:57:44 +0000 (17:57 +0000)]
If the user asks for the Pageant key list window and it's already
present, bring it to the front.

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

21 years agoFinish replacing `Network error' with `Proxy error' throughout proxy
simon [Tue, 24 Sep 2002 19:27:58 +0000 (19:27 +0000)]
Finish replacing `Network error' with `Proxy error' throughout proxy
code.

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

21 years agoAdd a missing space in an error message.
simon [Tue, 24 Sep 2002 18:44:29 +0000 (18:44 +0000)]
Add a missing space in an error message.

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

21 years agoAdd context help support for Proxy panel
jacob [Mon, 23 Sep 2002 09:55:11 +0000 (09:55 +0000)]
Add context help support for Proxy panel

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

21 years agoCleanups to proxy code: greater robustness in receiving proxy data,
simon [Sat, 21 Sep 2002 16:52:21 +0000 (16:52 +0000)]
Cleanups to proxy code: greater robustness in receiving proxy data,
better error reporting for SOCKS 5 and HTTP proxies.

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

21 years agoSupport username/password authentication in SOCKS 5.
simon [Sat, 21 Sep 2002 16:07:43 +0000 (16:07 +0000)]
Support username/password authentication in SOCKS 5.

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

21 years agoSupport username and password authentication when talking to HTTP
simon [Sat, 21 Sep 2002 14:03:05 +0000 (14:03 +0000)]
Support username and password authentication when talking to HTTP
proxies.

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

21 years agoUpdate README to make it clear it's a _source_ README.
simon [Fri, 20 Sep 2002 18:57:05 +0000 (18:57 +0000)]
Update README to make it clear it's a _source_ README.

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

21 years agoInitial checkin of PuTTY installer script and associated files.
simon [Fri, 20 Sep 2002 18:57:05 +0000 (18:57 +0000)]
Initial checkin of PuTTY installer script and associated files.

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

21 years agoUse memcpy rather than strncpy in sk_addrcopy! How did that happen?
simon [Fri, 20 Sep 2002 17:54:17 +0000 (17:54 +0000)]
Use memcpy rather than strncpy in sk_addrcopy! How did that happen?

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

21 years agoJordan Russell's mysterious workaround for an almost equally
simon [Sun, 15 Sep 2002 22:18:02 +0000 (22:18 +0000)]
Jordan Russell's mysterious workaround for an almost equally
mysterious Windows GDI bug. Looks unlikely to cause any other
trouble and it's pretty small, so it can go in.

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

21 years agoBe proactively pedantic about channel-close irregularities: we no
simon [Sun, 15 Sep 2002 13:31:11 +0000 (13:31 +0000)]
Be proactively pedantic about channel-close irregularities: we no
longer just sit there like a lemon if we can't find the channel in
question, we bomb out and complain. With any luck, remaining
problems of this type should be easier to catch under this policy.

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

21 years agoImprovements to SSH1 channel close handling: track sending and
simon [Sun, 15 Sep 2002 13:24:00 +0000 (13:24 +0000)]
Improvements to SSH1 channel close handling: track sending and
receiving of CLOSE and CLOSE_CONFIRMATION separately rather than
taking short cuts. I believe ssh-1.2.33 sending CLOSE_CONFIRMATION
before CLOSE was causing the remaining incidences of bug
`nonexistent-channel'. (ssh-1.2.33 appears to have unilaterally
decreed that CLOSE and CLOSE_CONFIRMATION are respectively renamed
INPUT_EOF and OUTPUT_CLOSING, hence there is no longer an ordering
constraint on them. Bah.)

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

21 years agoLog file tinkering: copy Event Log entries into the SSH packet log,
simon [Sun, 15 Sep 2002 13:21:32 +0000 (13:21 +0000)]
Log file tinkering: copy Event Log entries into the SSH packet log,
so that when people send us a packet log they never forget to send
the Event Log alongside it :-)

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

21 years agoOpenSSH vs OpenSSL Q: mention older OpenSSH versions
jacob [Sat, 14 Sep 2002 10:24:27 +0000 (10:24 +0000)]
OpenSSH vs OpenSSL Q: mention older OpenSSH versions

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

21 years agoSemi-bug "long-usernames":
jacob [Thu, 12 Sep 2002 16:05:05 +0000 (16:05 +0000)]
Semi-bug "long-usernames":
Bump username storage from 32 to 100 chars. Also replaced a couple of magic
numbers with sizeof in ssh.c.
I don't believe this is going to startle any of the protocols PuTTY talks.

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

21 years agoUpdated usage messages for command-line utilities to reflect new options.
jacob [Wed, 11 Sep 2002 17:30:36 +0000 (17:30 +0000)]
Updated usage messages for command-line utilities to reflect new options.
Updated manual to reflect reality (e.g. usage messages, '-p port' not actually
  implemented, sprinkle references to '-i keyfile').
(I've put "Release 0.53" in the messages; let's hope this doesn't cause a
  flood of "where is 0.53?" email.)
I don't guarantee that the result is entirely sane and sensible in all
  respects, but it is at least consistent.

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

21 years agoNote about separate client-server and server-client encryption in SSH-2
jacob [Tue, 10 Sep 2002 12:30:45 +0000 (12:30 +0000)]
Note about separate client-server and server-client encryption in SSH-2

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

21 years agoIntroduce the Bugs control panel, for overriding PuTTY's server
simon [Sun, 8 Sep 2002 13:28:38 +0000 (13:28 +0000)]
Introduce the Bugs control panel, for overriding PuTTY's server
version number checks to determine the presence or absence of server
bugs.

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

21 years agoUpdate to reflect the last batch of proxy stuff we got from Justin Bradford.
jacob [Sun, 8 Sep 2002 13:25:58 +0000 (13:25 +0000)]
Update to reflect the last batch of proxy stuff we got from Justin Bradford.

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

21 years agoIncrease length limit on SSH1_MSG_DEBUG; 70 chars is short enough to
simon [Sat, 7 Sep 2002 12:27:13 +0000 (12:27 +0000)]
Increase length limit on SSH1_MSG_DEBUG; 70 chars is short enough to
lose vital information in some existing servers' messages.

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

21 years agoAfter trying a succession of tests on Jacob's machine, I think I've
simon [Mon, 2 Sep 2002 13:47:50 +0000 (13:47 +0000)]
After trying a succession of tests on Jacob's machine, I think I've
finally isolated the _important_ difference between Romano Trampus's
working printing.c and my failing one: he ignores the error return
from the first exploratory how-big-does-my-buffer-need-to-be call to
EnumPrinters(), because not having enough buffer space counts as an
error condition. Hence I am officially a klutz, but this should now
work. (Also reverted ENUM_LEVEL to 1, again, because that seems to
be the choice of people whose code works.)

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

21 years agoConvert from CRLF to Unix line endings -- no other change
jacob [Mon, 2 Sep 2002 13:32:37 +0000 (13:32 +0000)]
Convert from CRLF to Unix line endings -- no other change

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

21 years agoMention PocketPC in the WinCE question. I'm not sure how similar WinCE and
jacob [Mon, 2 Sep 2002 13:04:46 +0000 (13:04 +0000)]
Mention PocketPC in the WinCE question. I'm not sure how similar WinCE and
PocketPC are, though -- perhaps it merits its own question. (Although I don't
know of anyone who's looked into it yet.)

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

21 years agoI'm rapidly running out of patience for trying all possible
simon [Sun, 1 Sep 2002 13:12:51 +0000 (13:12 +0000)]
I'm rapidly running out of patience for trying all possible
combinations of options to EnumPrinters() to see which one works,
but here's another one tried at random for now. *sigh*

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

21 years agoAdd BUG_SSH2_DERIVEKEY, present (according to OpenSSH) in ssh.com
simon [Sun, 18 Aug 2002 09:27:15 +0000 (09:27 +0000)]
Add BUG_SSH2_DERIVEKEY, present (according to OpenSSH) in ssh.com
versions 2.0.*, and causing the shared secret not to be included in
key derivation hashes. (This doesn't quite cause a blatant security
hole because the session ID - _derived_ from the shared secret - is
still included.)

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

21 years agoIn SSH2, if decrypting the packet length gave us a negative value,
simon [Sun, 18 Aug 2002 09:10:17 +0000 (09:10 +0000)]
In SSH2, if decrypting the packet length gave us a negative value,
subsequent packet-receiver code would fail to notice anything was
wrong and segfault. Since this is clearly a silly packet length
anyway, we now explicitly reject it as a daft encryption error.

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

21 years agoChanged wording of OpenSSH vs bad OpenSSL FAQ so that it's more obvious it
jacob [Thu, 15 Aug 2002 14:59:48 +0000 (14:59 +0000)]
Changed wording of OpenSSH vs bad OpenSSL FAQ so that it's more obvious it
applies to 3.4p1.

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

21 years agoAlter the Feedback page, so that instead of saying `at some point we
simon [Mon, 12 Aug 2002 14:08:55 +0000 (14:08 +0000)]
Alter the Feedback page, so that instead of saying `at some point we
plan to start blocking executable attachments' it now says we _do_
block executable attachments. :-)

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

21 years agoFinal fixes to keyboard-interactive so it now works with packets
simon [Sun, 11 Aug 2002 13:02:01 +0000 (13:02 +0000)]
Final fixes to keyboard-interactive so it now works with packets
containing more than one prompt instead of less than one, and also
correctly enables echo on prompts that the server requests it for.
In the process I've moved the whole username/password input routine
out into its own function, where it's called independently of which
SSH protocol we're using, so this should even have _saved_ code
size. Rock!

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

21 years agoAnecdotal evidence suggests that a single EnumPrinters() call
simon [Sun, 11 Aug 2002 12:17:25 +0000 (12:17 +0000)]
Anecdotal evidence suggests that a single EnumPrinters() call
specifying both PRINTER_ENUM_LOCAL and PRINTER_ENUM_CONNECTIONS
catches more printers in some circumstances than two EnumPrinters()
calls each specifying just one of them. We'll try it for a bit; if
it goes wrong I might have to put back the two original calls as
well and sort out some means of removing duplicate printers from the
list.

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

21 years agoActually, VirtualLock() looks better as \cw{} not \c{}.
simon [Fri, 9 Aug 2002 09:14:04 +0000 (09:14 +0000)]
Actually, VirtualLock() looks better as \cw{} not \c{}.

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

21 years agoAdd two more FAQs: `why don't you use VirtualLock()' and `are you
simon [Fri, 9 Aug 2002 09:11:09 +0000 (09:11 +0000)]
Add two more FAQs: `why don't you use VirtualLock()' and `are you
based on OpenSSH'.

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

21 years agossh.com 3.2.0 uses zlib sync flush (start and close an empty
simon [Thu, 8 Aug 2002 17:03:58 +0000 (17:03 +0000)]
ssh.com 3.2.0 uses zlib sync flush (start and close an empty
uncompressed block at the end of each compressed packet) which we
were embarrassingly unable to deal with because we assumed every
uncompressed block contained at least one byte. Particularly silly
because I _knew_ about the existence of sync flush when I coded this
module. Arrgh. Still, now fixed.

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

21 years agoDocument all the new command-line stuff.
simon [Wed, 7 Aug 2002 19:20:06 +0000 (19:20 +0000)]
Document all the new command-line stuff.

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

21 years agoArrgh, we can't have -p for port number because we're already using
simon [Wed, 7 Aug 2002 19:09:33 +0000 (19:09 +0000)]
Arrgh, we can't have -p for port number because we're already using
it for preserving file attributes in PSCP! Ah well; looks as if
that's one where we'll have to agree to differ with OpenSSH.

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

21 years agoSome of the new options shouldn't be available in the file transfer
simon [Wed, 7 Aug 2002 18:43:40 +0000 (18:43 +0000)]
Some of the new options shouldn't be available in the file transfer
tools.

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

21 years agoFix Halibut syntax error (oops).
simon [Wed, 7 Aug 2002 18:08:29 +0000 (18:08 +0000)]
Fix Halibut syntax error (oops).

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

21 years agoOops. Didn't quite get the new SSH protocol selection code right. *blush*
simon [Wed, 7 Aug 2002 17:57:06 +0000 (17:57 +0000)]
Oops. Didn't quite get the new SSH protocol selection code right. *blush*

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

21 years agoAdd a load of new command-line options pilfered from OpenSSH. Full
simon [Wed, 7 Aug 2002 17:55:06 +0000 (17:55 +0000)]
Add a load of new command-line options pilfered from OpenSSH. Full
list is: -A, -a, -X, -x, -T, -t, -C, -1, -2, -i keyfile.

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

21 years agoAdd an option to force SSH1 protocol only. Partly for symmetry;
simon [Wed, 7 Aug 2002 17:48:26 +0000 (17:48 +0000)]
Add an option to force SSH1 protocol only. Partly for symmetry;
mostly because I'm about to want it for the -1 command line option.

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

21 years agoClean up the argv splitter, and in particular stop it from bombing
simon [Wed, 7 Aug 2002 17:29:28 +0000 (17:29 +0000)]
Clean up the argv splitter, and in particular stop it from bombing
out ignominiously when given no arguments :-)

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

21 years agoPageant's command line handling now uses my new split_into_argv()
simon [Tue, 6 Aug 2002 17:57:37 +0000 (17:57 +0000)]
Pageant's command line handling now uses my new split_into_argv()
function, because it's silly to have two (and because the old one
was not the same as the new one, violating the Principle of Least
Surprise).

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

21 years agoPuTTYgen will now start by loading a private key file if one is
simon [Tue, 6 Aug 2002 17:48:14 +0000 (17:48 +0000)]
PuTTYgen will now start by loading a private key file if one is
provided on its command line.

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

21 years agoOops. That is to say, only loading and saving of PuTTY private keys
simon [Tue, 6 Aug 2002 17:35:34 +0000 (17:35 +0000)]
Oops. That is to say, only loading and saving of PuTTY private keys
should default to .PPK - loading and saving of public keys and of
foreign key formats still defaults to All Files. Ahem.

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

21 years agoNow that we've decided on a file extension for private key files
simon [Tue, 6 Aug 2002 17:27:18 +0000 (17:27 +0000)]
Now that we've decided on a file extension for private key files
(.PPK), make it the default in all the private-key file dialogs.

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

21 years agoButtress is now Halibut: change the docs makefile.
simon [Mon, 5 Aug 2002 10:35:35 +0000 (10:35 +0000)]
Buttress is now Halibut: change the docs makefile.

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

21 years agoMake it clear that we're only responsible for our own web site, and
simon [Mon, 5 Aug 2002 10:35:23 +0000 (10:35 +0000)]
Make it clear that we're only responsible for our own web site, and
people should contact mirror admins for problems with mirrors.

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

21 years agoRevamp of command-line handling. Most command line options should
simon [Sun, 4 Aug 2002 21:18:56 +0000 (21:18 +0000)]
Revamp of command-line handling. Most command line options should
now be processed in cmdline.c, which is called from all utilities
(well, not Pageant or PuTTYgen). This should mean we get to
standardise almost all options across almost all tools. Also one
major change: `-load' is now the preferred option for loading a
saved session in PuTTY proper. `@session' still works but is
deprecated.

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

21 years agoFix culpable lack of generality in keyboard-interactive
simon [Sat, 3 Aug 2002 16:22:55 +0000 (16:22 +0000)]
Fix culpable lack of generality in keyboard-interactive
authentication: a k-i request packet can contain any number of auth
prompts (including zero!) and we must ask the user all of them and
send back a packet containing the same number of responses. FreeBSD
systems were sending a zero-prompts packet which was crashing us;
this now appears fixed (we correctly return a zero-responses packet)
but I haven't tested a multiple-prompts packet because I can't
immediately think of a server that generates them.

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

21 years agoOpenSSH/OpenSSL versioning problems: as of 3.4p1 this is _still_ not entirely
jacob [Tue, 9 Jul 2002 11:34:10 +0000 (11:34 +0000)]
OpenSSH/OpenSSL versioning problems: as of 3.4p1 this is _still_ not entirely
fixed.

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

21 years agoForgot to call fxp_init() in `pscp -ls' mode under SFTP.
simon [Tue, 25 Jun 2002 18:51:06 +0000 (18:51 +0000)]
Forgot to call fxp_init() in `pscp -ls' mode under SFTP.

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

21 years agoFailure to initialise a local variable was leading to free(garbage)
simon [Mon, 17 Jun 2002 16:45:41 +0000 (16:45 +0000)]
Failure to initialise a local variable was leading to free(garbage)
on loading an OpenSSH key and getting the wrong passphrase.

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

21 years agoOne of the recent port forwarding crash reports contained details
simon [Sat, 15 Jun 2002 16:52:35 +0000 (16:52 +0000)]
One of the recent port forwarding crash reports contained details
which suggested bufchain_prefix() was finding an improperly
initialised bufchain structure. Looking at the code, this may indeed
have been able to happen, since the bufchain in a SOCKDATA_DORMANT
channel was not initialised until CHANNEL_OPEN_CONFIRMATION was
received. This seems utterly daft, so I now call bufchain_init()
when the channel structure is actually created. With any luck the
crash will mystically disappear now (I wasn't able to reproduce it
myself).

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

21 years agoPadding on the end of the encrypted data in OpenSSH key format was
simon [Sat, 15 Jun 2002 16:31:22 +0000 (16:31 +0000)]
Padding on the end of the encrypted data in OpenSSH key format was
broken: the OpenSSL EVP layer specifies a very particular form of
padding, which I wasn't generating because it hadn't occurred to me
that it might be mandatory. Irritatingly this was causing our
exported OpenSSH keys to load perfectly happily back in through our
OpenSSH import routines, but to be rejected by OpenSSH proper. Sigh.

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

21 years agoSmall memory allocation bug in openssh_encrypted() fixed.
simon [Sat, 15 Jun 2002 15:37:15 +0000 (15:37 +0000)]
Small memory allocation bug in openssh_encrypted() fixed.

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

21 years agoModify the Feedback page / Appendix B to expand the section about
simon [Sat, 8 Jun 2002 09:00:00 +0000 (09:00 +0000)]
Modify the Feedback page / Appendix B to expand the section about
not sending us large attachments, and in particular remove the
emphasis on screen shots in the hope of also decreasing the number
of _other_ large attachments we get.

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

21 years agoWorkaround for the SSH2 RSA padding bug in OpenSSH 2.5 - 3.2
simon [Fri, 31 May 2002 17:39:16 +0000 (17:39 +0000)]
Workaround for the SSH2 RSA padding bug in OpenSSH 2.5 - 3.2
inclusive. Padding is accomplished by rewriting the signature blob
rather than at the point of generation, in order to avoid having to
move part of the workaround into Pageant (and having to corrupt the
agent wire protocol to allow PuTTY to specify whether it wants its
signatures padded!).

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

21 years agoFix AltGr/Application/Compose/CtrlAlt discrepancies introduced in windlg.c
jacob [Thu, 30 May 2002 12:41:07 +0000 (12:41 +0000)]
Fix AltGr/Application/Compose/CtrlAlt discrepancies introduced in windlg.c
rev 1.118 [r1033] (pointed out by Rob Pitman).

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

21 years agoTrying to use an SSH2 key with an SSH1 connection seems to be quite
jacob [Thu, 23 May 2002 22:02:53 +0000 (22:02 +0000)]
Trying to use an SSH2 key with an SSH1 connection seems to be quite
common, so I've added a FAQ.

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

21 years agoNote that answerback string can contain control characters with ^C notation,
jacob [Wed, 22 May 2002 21:18:06 +0000 (21:18 +0000)]
Note that answerback string can contain control characters with ^C notation,
and the ^~ escape, but don't go into the gory details.

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

22 years agoUI changes for key imports. We now have a separate Load command and
simon [Sat, 18 May 2002 09:20:41 +0000 (09:20 +0000)]
UI changes for key imports. We now have a separate Load command and
Import command; the former warns you if you load a foreign key,
whereas the latter doesn't. So the user should always be aware, one
way or the other, that a format conversion is taking place.

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

22 years agoieof-for-nonexistent-channel problem: avoid comparing an unsigned with -1
simon [Fri, 17 May 2002 12:33:20 +0000 (12:33 +0000)]
ieof-for-nonexistent-channel problem: avoid comparing an unsigned with -1

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

22 years agoNit: PuTTYgen can generate RSA _and DSA_ keys
jacob [Thu, 16 May 2002 22:36:36 +0000 (22:36 +0000)]
Nit: PuTTYgen can generate RSA _and DSA_ keys

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

22 years agoFinal cleanups on key import/export work. Rationalised the UI (so
simon [Wed, 15 May 2002 20:07:11 +0000 (20:07 +0000)]
Final cleanups on key import/export work. Rationalised the UI (so
that menu options are greyed out helpfully) and added documentation.

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

22 years agoAdded export of ssh.com key files.
simon [Wed, 15 May 2002 19:16:45 +0000 (19:16 +0000)]
Added export of ssh.com key files.

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

22 years agoImplemented export of OpenSSH keys.
simon [Tue, 14 May 2002 18:11:15 +0000 (18:11 +0000)]
Implemented export of OpenSSH keys.

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

22 years agoAdd some basic framework code preparatory to adding key export.
simon [Mon, 13 May 2002 16:56:11 +0000 (16:56 +0000)]
Add some basic framework code preparatory to adding key export.

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

22 years agoUpdate FAQ to mention ssh.com key importing
simon [Mon, 13 May 2002 16:48:31 +0000 (16:48 +0000)]
Update FAQ to mention ssh.com key importing

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

22 years agoBe more careful about destroying sensitive data after private key
simon [Mon, 13 May 2002 16:37:11 +0000 (16:37 +0000)]
Be more careful about destroying sensitive data after private key
load/store/import operations.

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

22 years agoAdd import of ssh.com private keys.
simon [Mon, 13 May 2002 16:32:42 +0000 (16:32 +0000)]
Add import of ssh.com private keys.

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

22 years agoAdded a framework for importing foreign key formats, and implemented
simon [Sat, 11 May 2002 16:45:29 +0000 (16:45 +0000)]
Added a framework for importing foreign key formats, and implemented
importing of OpenSSH SSH2 private key files (both encrypted and
unencrypted). Seems to work fine.

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

22 years agoRemove tiny unnecessary faff in new SSH-2-only code
simon [Sat, 11 May 2002 13:12:19 +0000 (13:12 +0000)]
Remove tiny unnecessary faff in new SSH-2-only code

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

22 years agoSSH2 only support
owen [Sat, 11 May 2002 13:08:37 +0000 (13:08 +0000)]
SSH2 only support

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

22 years agoAdded SSH2 only support.
owen [Sat, 11 May 2002 13:03:47 +0000 (13:03 +0000)]
Added SSH2 only support.

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

22 years agoImproved error messages if you use the wrong key type: you should
simon [Sat, 11 May 2002 12:13:42 +0000 (12:13 +0000)]
Improved error messages if you use the wrong key type: you should
now be told that the key is the wrong type, _and_ what type it is,
rather than being given a blanket `unable to read key file' message.

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

22 years agoRemoved the old Visual C++ master makefile, since it has now been
simon [Sat, 27 Apr 2002 16:30:15 +0000 (16:30 +0000)]
Removed the old Visual C++ master makefile, since it has now been
superseded by the new Recipe / mkfiles.pl mechanism.

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

22 years agoAdditions to the Feedback page to emphasise that we can't answer all
simon [Sat, 27 Apr 2002 16:20:16 +0000 (16:20 +0000)]
Additions to the Feedback page to emphasise that we can't answer all
our mail any more, and to encourage support questions to be sent
elsewhere as a first resort.

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

22 years agoSOCKS proxy support added (next instalment of Justin Bradford's
simon [Sat, 27 Apr 2002 15:01:18 +0000 (15:01 +0000)]
SOCKS proxy support added (next instalment of Justin Bradford's
proxy work). SOCKS 5 username/password authentication still
unsupported.

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

22 years agoAdded comments to document '-gui' Windows messages, based on putty-bugs post
jacob [Thu, 18 Apr 2002 22:23:12 +0000 (22:23 +0000)]
Added comments to document '-gui' Windows messages, based on putty-bugs post
<E14g2ty-0008WN-00@ixion.tartarus.org> (except for Ryan Finnie's extra
messages).

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

22 years agoAdded documentation of PuTTY command-line options (derived from the source)
jacob [Thu, 18 Apr 2002 20:45:01 +0000 (20:45 +0000)]
Added documentation of PuTTY command-line options (derived from the source)

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

22 years agoThe SFTP form of PSCP should remember to send FXP_INIT! Oops.
simon [Wed, 10 Apr 2002 19:54:42 +0000 (19:54 +0000)]
The SFTP form of PSCP should remember to send FXP_INIT! Oops.

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

22 years agoMention that numeric code pages can be entered manually in the
simon [Wed, 3 Apr 2002 18:24:59 +0000 (18:24 +0000)]
Mention that numeric code pages can be entered manually in the
Translation box.

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

22 years agoAdd a couple of extra FAQ entries.
simon [Mon, 1 Apr 2002 15:18:29 +0000 (15:18 +0000)]
Add a couple of extra FAQ entries.

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

22 years agoThe console version of askappend() completely forgot to check
simon [Sun, 31 Mar 2002 16:28:06 +0000 (16:28 +0000)]
The console version of askappend() completely forgot to check
cfg.logxfovr to see whether the user had already specified what
should happen to log files. Fixed.

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

22 years agoFix major memory leak in sftp_cmd_ls (thanks to Hans-Juergen Petrich
simon [Sun, 31 Mar 2002 16:26:13 +0000 (16:26 +0000)]
Fix major memory leak in sftp_cmd_ls (thanks to Hans-Juergen Petrich
for pointing it out).

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

22 years agoFix bug in Minefield's realloc() which was throwing away most of any
simon [Sun, 31 Mar 2002 16:23:32 +0000 (16:23 +0000)]
Fix bug in Minefield's realloc() which was throwing away most of any
block > 4096 bytes. Arrgh.

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

22 years agoRemember to wait for SSH1_MSG_SUCCESS after enabling remote port
simon [Wed, 27 Mar 2002 21:58:11 +0000 (21:58 +0000)]
Remember to wait for SSH1_MSG_SUCCESS after enabling remote port
forwardings in SSH1. Was causing several MSG_SUCCESS to be queued up
unread, which was wrong-but-benign in most cases but caused a hard
crash with compression enabled (one of those uncompressed
MSG_SUCCESSes was fed to the zlib decompressor with spectacular
results).

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

22 years agoMatt Harden's (modified) patch to do getservbyname() lookups on port-
simon [Wed, 27 Mar 2002 21:43:37 +0000 (21:43 +0000)]
Matt Harden's (modified) patch to do getservbyname() lookups on port-
forwarding port numbers.

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