u/mdw/putty
23 years agoMake memory management uniform: _everything_ now goes through the
simon [Tue, 12 Dec 2000 10:33:13 +0000 (10:33 +0000)]
Make memory management uniform: _everything_ now goes through the
smalloc() macros and thence to the safemalloc() functions in misc.c.
This should allow me to plug in a debugging allocator and track
memory leaks and segfaults and things.

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

23 years agoImprove SSH2 host key abstraction into a generic `signing key'
simon [Sat, 2 Dec 2000 12:48:15 +0000 (12:48 +0000)]
Improve SSH2 host key abstraction into a generic `signing key'
abstraction, so as to be able to re-use the same abstraction for
user authentication keys and probably in the SSH2 agent (when that
happens) as well.

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

23 years agoFix bugtraq 1949: server could open an agent forwarding channel even
simon [Sat, 2 Dec 2000 11:43:25 +0000 (11:43 +0000)]
Fix bugtraq 1949: server could open an agent forwarding channel even
if agent forwarding had not been negotiated on, and more
particularly even if it had been deliberately disabled by the user.

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

23 years agoPrevent wildcards in source specs from matching . or ..
simon [Thu, 30 Nov 2000 21:35:28 +0000 (21:35 +0000)]
Prevent wildcards in source specs from matching . or ..

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

23 years agoCorrect pointer types in new clipme function
simon [Fri, 24 Nov 2000 22:27:51 +0000 (22:27 +0000)]
Correct pointer types in new clipme function

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

23 years agoRon Kuris's "copy everything to clipboard" patch
simon [Tue, 21 Nov 2000 19:28:25 +0000 (19:28 +0000)]
Ron Kuris's "copy everything to clipboard" patch

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

23 years agoPatch from Robert de Bath: increase timer resolution.
simon [Tue, 21 Nov 2000 19:00:32 +0000 (19:00 +0000)]
Patch from Robert de Bath: increase timer resolution.

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

23 years agoPatch from Robert de Bath: blank the saved-session name edit box
simon [Tue, 21 Nov 2000 19:00:11 +0000 (19:00 +0000)]
Patch from Robert de Bath: blank the saved-session name edit box
when loading `Default Settings'.

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

23 years agoOops - and if we generate link maps, "make clean" should remove them too
simon [Tue, 21 Nov 2000 11:14:57 +0000 (11:14 +0000)]
Oops - and if we generate link maps, "make clean" should remove them too

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

23 years agoAdd link map files to Makefile, in case people send crash dumps
simon [Tue, 21 Nov 2000 11:13:27 +0000 (11:13 +0000)]
Add link map files to Makefile, in case people send crash dumps

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

23 years agoFix segfault when you press a key before the SSH protocol decides whether
simon [Tue, 21 Nov 2000 10:53:10 +0000 (10:53 +0000)]
Fix segfault when you press a key before the SSH protocol decides whether
it's doing SSH1 or SSH2. Only visible on slow servers :-)

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

23 years agoImprove comment so I don't misunderstand when I come back to this :-)
simon [Thu, 16 Nov 2000 10:47:59 +0000 (10:47 +0000)]
Improve comment so I don't misunderstand when I come back to this :-)

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

23 years agoUse a Miller-Rabin test instead of a Fermat test; add comments
simon [Wed, 15 Nov 2000 15:03:17 +0000 (15:03 +0000)]
Use a Miller-Rabin test instead of a Fermat test; add comments

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

23 years agoFix another silly segfault
simon [Wed, 15 Nov 2000 11:13:22 +0000 (11:13 +0000)]
Fix another silly segfault

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

23 years agoSoftware invocation of the System menu now pops up the actual menu, rather
simon [Tue, 7 Nov 2000 17:50:59 +0000 (17:50 +0000)]
Software invocation of the System menu now pops up the actual menu, rather
than just putting the window into the state where Down will do so

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

23 years agoImplement Zlib compression, in both SSH1 and SSH2.
simon [Wed, 1 Nov 2000 21:34:21 +0000 (21:34 +0000)]
Implement Zlib compression, in both SSH1 and SSH2.

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

23 years agoMove dprintf and the debug system out into misc.c, to centralise it.
simon [Wed, 1 Nov 2000 19:54:46 +0000 (19:54 +0000)]
Move dprintf and the debug system out into misc.c, to centralise it.
Saves binary space and also allows redirection of debug statements
to a file `debug.log'.

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

23 years agoBack off a bit of that vulnerability fix, which was breaking `pscp
simon [Tue, 31 Oct 2000 09:29:05 +0000 (09:29 +0000)]
Back off a bit of that vulnerability fix, which was breaking `pscp
host:wildcard* .' and suchlike.

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

23 years agoFix side-effect of Always On Top patch: any reconfiguring in mid-session
simon [Mon, 30 Oct 2000 10:39:10 +0000 (10:39 +0000)]
Fix side-effect of Always On Top patch: any reconfiguring in mid-session
was zapping the window to the top left corner of the screen

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

23 years agoReset compose state to zero when PuTTY window gains focus
simon [Mon, 30 Oct 2000 10:16:32 +0000 (10:16 +0000)]
Reset compose state to zero when PuTTY window gains focus

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

23 years agoCouple of fixes for pscp's GUI interface mode
simon [Mon, 30 Oct 2000 09:54:10 +0000 (09:54 +0000)]
Couple of fixes for pscp's GUI interface mode

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

23 years agoAdd support for Always On Top. Patch due to Janes "Ender" Brown.
simon [Fri, 27 Oct 2000 09:46:04 +0000 (09:46 +0000)]
Add support for Always On Top. Patch due to Janes "Ender" Brown.

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

23 years agoStop the "Sent username %s" message coming up twice in pscp -v
simon [Fri, 27 Oct 2000 09:24:32 +0000 (09:24 +0000)]
Stop the "Sent username %s" message coming up twice in pscp -v

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

23 years agoMisc bugfixes
simon [Fri, 27 Oct 2000 09:17:19 +0000 (09:17 +0000)]
Misc bugfixes

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

23 years agoFormat SSH2_MSG_DISCONNECT correctly (with reason code, reason
simon [Thu, 26 Oct 2000 13:10:47 +0000 (13:10 +0000)]
Format SSH2_MSG_DISCONNECT correctly (with reason code, reason
string, and language tag).

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

23 years agoFix a segfault (addr->error was unpredictable following a dotted-dec lookup)
simon [Thu, 26 Oct 2000 08:25:43 +0000 (08:25 +0000)]
Fix a segfault (addr->error was unpredictable following a dotted-dec lookup)

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

23 years agoImpose a lower limit of 256 on key lengths. This is mostly because
simon [Wed, 25 Oct 2000 14:29:28 +0000 (14:29 +0000)]
Impose a lower limit of 256 on key lengths. This is mostly because
the primegen() function doesn't work well with <100 bits, so RSA
keys need to be >=200 to be generated correctly, and I thought 256
was a nice round number beyond that just to be sure. Perhaps I
should also have a security warning on any key less than 768; or
perhaps I should let people shoot themselves in the feet if they
really want to.

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

23 years agoGaaah, I might have known. Split combined app cursor / app keypad
simon [Wed, 25 Oct 2000 14:20:47 +0000 (14:20 +0000)]
Gaaah, I might have known. Split combined app cursor / app keypad
disablement option into two options so the app cursor keys and app
keypad can be controlled separately. The Pedantic Software Award in
this case goes to the Midnight Commander for its egregious failure
to just use the terminal in Perfectly Normal mode.

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

23 years agoBe more sure that state->collecting_entropy can't be spuriously set
simon [Wed, 25 Oct 2000 10:25:10 +0000 (10:25 +0000)]
Be more sure that state->collecting_entropy can't be spuriously set

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

23 years agoFix control ID bug causing rogue Appearance title bars in other panels
simon [Wed, 25 Oct 2000 08:23:41 +0000 (08:23 +0000)]
Fix control ID bug causing rogue Appearance title bars in other panels

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

23 years agoReintroduce random_stir()
simon [Wed, 25 Oct 2000 06:59:25 +0000 (06:59 +0000)]
Reintroduce random_stir()

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

23 years agoEnhance Diffie-Hellman implementation to use bignum_cmp
simon [Wed, 25 Oct 2000 06:57:36 +0000 (06:57 +0000)]
Enhance Diffie-Hellman implementation to use bignum_cmp

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

23 years agoFix another bignum formatting problem. This one hit Diffie-Hellmann
simon [Tue, 24 Oct 2000 21:43:39 +0000 (21:43 +0000)]
Fix another bignum formatting problem. This one hit Diffie-Hellmann

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

23 years agoAdd configurable option to disable application keypad/cursor keys totally
simon [Tue, 24 Oct 2000 13:49:23 +0000 (13:49 +0000)]
Add configurable option to disable application keypad/cursor keys totally

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

23 years agoAdd a couple of ellipses in system menu
simon [Tue, 24 Oct 2000 13:40:19 +0000 (13:40 +0000)]
Add a couple of ellipses in system menu

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

23 years agoRemove a rogue diagnostic
simon [Tue, 24 Oct 2000 13:39:21 +0000 (13:39 +0000)]
Remove a rogue diagnostic

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

23 years agoAdd the Appearance panel and reorganise things a bit
simon [Tue, 24 Oct 2000 13:38:27 +0000 (13:38 +0000)]
Add the Appearance panel and reorganise things a bit

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

23 years agoFix failure to re-enable local line discipline when TELOPT_ECHO is
simon [Tue, 24 Oct 2000 11:16:25 +0000 (11:16 +0000)]
Fix failure to re-enable local line discipline when TELOPT_ECHO is
turned _back off_ by the remote server. (server sends WONT)

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

23 years agoFix miscellaneous compiler warnings. Thanks to Jacob Nevins
simon [Tue, 24 Oct 2000 10:47:49 +0000 (10:47 +0000)]
Fix miscellaneous compiler warnings. Thanks to Jacob Nevins

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

23 years agoSSH2 connections weren't closing cleanly after socket revamp. Fixed.
simon [Tue, 24 Oct 2000 09:55:45 +0000 (09:55 +0000)]
SSH2 connections weren't closing cleanly after socket revamp. Fixed.

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

23 years agoWindow resizing wasn't working in SSH2
simon [Tue, 24 Oct 2000 09:49:03 +0000 (09:49 +0000)]
Window resizing wasn't working in SSH2

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

23 years agoMake the frankly ridiculous prototypes for modpow() and modmul() more sane
simon [Mon, 23 Oct 2000 16:11:31 +0000 (16:11 +0000)]
Make the frankly ridiculous prototypes for modpow() and modmul() more sane

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

23 years agoUpdate DSS implementation to use new bignum routines
simon [Mon, 23 Oct 2000 16:03:21 +0000 (16:03 +0000)]
Update DSS implementation to use new bignum routines

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

23 years agoImproved entropy gathering.
simon [Mon, 23 Oct 2000 15:20:05 +0000 (15:20 +0000)]
Improved entropy gathering.

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

23 years agoFix a bug which was causing occasional failed-host-key-check
simon [Mon, 23 Oct 2000 15:18:37 +0000 (15:18 +0000)]
Fix a bug which was causing occasional failed-host-key-check
messages. Also left some diagnostics in, under #if 0, so that next
time this happens it'll be easier to debug.

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

23 years agoOops. A field like `sending_oob' in the Socket structure really
simon [Mon, 23 Oct 2000 12:31:54 +0000 (12:31 +0000)]
Oops. A field like `sending_oob' in the Socket structure really
deserves to be initialised to something sane at creation time.

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

23 years agoPlink and PSCP were failing to load the `Default Settings' options
simon [Mon, 23 Oct 2000 12:20:53 +0000 (12:20 +0000)]
Plink and PSCP were failing to load the `Default Settings' options
when connecting to an arbitrary hostname. In particular, setting a
default user name didn't work. Now it does.

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

23 years agoRemove the NO_SECURITY define I accidentally copied from Pageant
simon [Mon, 23 Oct 2000 11:57:41 +0000 (11:57 +0000)]
Remove the NO_SECURITY define I accidentally copied from Pageant

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

23 years agoCreated a shiny new abstraction for the socket handling. Has many
simon [Mon, 23 Oct 2000 11:55:11 +0000 (11:55 +0000)]
Created a shiny new abstraction for the socket handling. Has many
advantages:
 - protocol modules can call sk_write() without having to worry
   about writes blocking, because blocking writes are handled in the
   abstraction layer and retried later.
 - `Lost connection while sending' is a thing of the past.
 - <winsock.h> is no longer needed in most modules, because
   "putty.h" doesn't have to declare `SOCKET' variables any more,
   only the abstracted `Socket' type.
 - select()-equivalent between multiple sockets will now be handled
   sensibly, which opens the way for things like SSH port
   forwarding.

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

23 years agoCreated a shiny new abstraction for the socket handling. Has many
simon [Mon, 23 Oct 2000 10:32:37 +0000 (10:32 +0000)]
Created a shiny new abstraction for the socket handling. Has many
advantages:
 - protocol modules can call sk_write() without having to worry
   about writes blocking, because blocking writes are handled in the
   abstraction layer and retried later.
 - `Lost connection while sending' is a thing of the past.
 - <winsock.h> is no longer needed in most modules, because
   "putty.h" doesn't have to declare `SOCKET' variables any more,
   only the abstracted `Socket' type.
 - select()-equivalent between multiple sockets will now be handled
   sensibly, which opens the way for things like SSH port
   forwarding.

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

23 years agoOoh. Actually, that vulnerability is further-reaching than I
simon [Sat, 21 Oct 2000 17:52:54 +0000 (17:52 +0000)]
Ooh. Actually, that vulnerability is further-reaching than I
thought. As well as the ".." attack in recursive copies, the name
sent by the client was also trusted in a single-file implicit-
destination copy such as "pscp host:foo .". (The result was ./foo,
where foo is what the server claimed the file was rather than what
the user asked for. I think it's not unreasonable that if the user
requests file `foo' from the host, he should get the result in a
file called `foo' no matter what the host thinks.)

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

23 years agoFix a potential vulnerability in incoming `pscp -r'. The server
simon [Sat, 21 Oct 2000 17:36:44 +0000 (17:36 +0000)]
Fix a potential vulnerability in incoming `pscp -r'. The server
sends filenames of things in the directory being copied. A malicious
server could have sent, for example, "..\..\windows\system\foo.dll"
and overwritten something crucial. The filenames are now vetted to
ensure they don't contain slashes or backslashes.

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

23 years agoThree new configurable options:
simon [Sat, 21 Oct 2000 16:30:58 +0000 (16:30 +0000)]
Three new configurable options:
 - Robert de Bath's Compose key is now off by default and configurable on
 - The ages-old controversy over whether ALT by itself should bring the
   System menu up is now controllable by a config option
 - You can now independently configure whether scrollback resets on a
   keypress _and_ whether it resets on screen activity.

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

23 years agoChinese support patch from zmx@cdpa.nsysu.edu.tw
simon [Fri, 20 Oct 2000 18:36:15 +0000 (18:36 +0000)]
Chinese support patch from zmx@cdpa.nsysu.edu.tw

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

23 years agoRemember to close key files when rsakey_encrypted meets a bogus one
simon [Fri, 20 Oct 2000 17:57:47 +0000 (17:57 +0000)]
Remember to close key files when rsakey_encrypted meets a bogus one

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

23 years agoPut back the code that ensures "Default Settings" is always in the
simon [Fri, 20 Oct 2000 15:20:53 +0000 (15:20 +0000)]
Put back the code that ensures "Default Settings" is always in the
session list even if it isn't in the Registry. This got deleted
overenthusiastically because I didn't have a comment explaining what
it was doing there. Now there's a comment, so I probably won't
remove it again.

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

23 years agoRename "Stored Sessions" to "Saved Sessions" for consistency
simon [Fri, 20 Oct 2000 15:09:56 +0000 (15:09 +0000)]
Rename "Stored Sessions" to "Saved Sessions" for consistency

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

23 years agoSome better IDC_* names for the controls on the Colours panel
simon [Fri, 20 Oct 2000 15:09:35 +0000 (15:09 +0000)]
Some better IDC_* names for the controls on the Colours panel

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

23 years agoAdd the LBS_NOTIFY style to the list box in colouredit(), which was
simon [Fri, 20 Oct 2000 14:45:16 +0000 (14:45 +0000)]
Add the LBS_NOTIFY style to the list box in colouredit(), which was
vital to it working right

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

23 years agoIntroduce a sane interface function, from_backend(), for backends to
simon [Fri, 20 Oct 2000 13:51:46 +0000 (13:51 +0000)]
Introduce a sane interface function, from_backend(), for backends to
use when they have data from the network. Replaces the utterly daft
inbuf / inbuf_head / term_out() interface, which only made sense
when feeding to terminal.c. (terminal.c now implements
from_backend() as a small function that gateways to the old
interface.)

As a side effect, from_backend() also has an `is_stderr' parameter,
so scp can once again separate the server's pronouncements on stderr
from the actual protocol progress on stdout.

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

23 years agoTrim trailing whitespace off saved session names on the command line
simon [Fri, 20 Oct 2000 13:23:24 +0000 (13:23 +0000)]
Trim trailing whitespace off saved session names on the command line

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

23 years agoRemember to update scrollbar when scrollback is reset
simon [Fri, 20 Oct 2000 12:31:02 +0000 (12:31 +0000)]
Remember to update scrollbar when scrollback is reset

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

23 years agoReplace the 8859-2 -> Win1250 translation which I accidentally blew away
simon [Fri, 20 Oct 2000 11:16:58 +0000 (11:16 +0000)]
Replace the 8859-2 -> Win1250 translation which I accidentally blew away

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

23 years agoA couple of UI tweaks in puttygen
simon [Fri, 20 Oct 2000 10:47:46 +0000 (10:47 +0000)]
A couple of UI tweaks in puttygen

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

23 years agoRemoved TODO comment after verifying that generated keys work
simon [Fri, 20 Oct 2000 10:44:17 +0000 (10:44 +0000)]
Removed TODO comment after verifying that generated keys work

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

23 years agoEntropy fix after better statistical analysis
simon [Fri, 20 Oct 2000 10:42:31 +0000 (10:42 +0000)]
Entropy fix after better statistical analysis

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

23 years agoVariable key size in PuTTYgen. Also required adding WM_VSCROLL to the
simon [Fri, 20 Oct 2000 10:07:53 +0000 (10:07 +0000)]
Variable key size in PuTTYgen. Also required adding WM_VSCROLL to the
window style in bigeditctrl() in winctrls.c.

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

23 years agoAdd a PuTTYgen icon
simon [Fri, 20 Oct 2000 09:50:56 +0000 (09:50 +0000)]
Add a PuTTYgen icon

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

23 years agoCheck whether key was actually saved, and warn if not
simon [Fri, 20 Oct 2000 09:43:58 +0000 (09:43 +0000)]
Check whether key was actually saved, and warn if not

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

23 years agoSave Key now prompts before overwriting an existing file
simon [Fri, 20 Oct 2000 09:41:13 +0000 (09:41 +0000)]
Save Key now prompts before overwriting an existing file

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

23 years agoAdjust the title of the PuTTYgen window
simon [Fri, 20 Oct 2000 09:36:11 +0000 (09:36 +0000)]
Adjust the title of the PuTTYgen window

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

23 years agoAdd a second passphrase prompt to protect against typos
simon [Fri, 20 Oct 2000 09:31:16 +0000 (09:31 +0000)]
Add a second passphrase prompt to protect against typos

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

23 years agoWe must InitCommonControls() or the progress bar doesn't work on 95
simon [Fri, 20 Oct 2000 09:24:44 +0000 (09:24 +0000)]
We must InitCommonControls() or the progress bar doesn't work on 95

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

23 years agoPuTTYgen initial version. Still to do are basic user-friendliness
simon [Thu, 19 Oct 2000 15:43:08 +0000 (15:43 +0000)]
PuTTYgen initial version. Still to do are basic user-friendliness
features (prompt for passphrase twice, prompt before overwriting a
file, check the key file was actually saved OK), testing of the
generated keys to make sure I got the file format right, and support
for a variable key size. I think what's already here is basically
sound though.

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

23 years agoMiscellaneous cleanups and reorgs in preparation for building
simon [Wed, 18 Oct 2000 15:36:32 +0000 (15:36 +0000)]
Miscellaneous cleanups and reorgs in preparation for building
PuTTYgen. In particular, moved self-managing controls stuff out of
windlg.c into the new and reusable winctrls.c.

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

23 years agoAdd some more commented-out diagnostics for ssh1
simon [Wed, 18 Oct 2000 15:33:05 +0000 (15:33 +0000)]
Add some more commented-out diagnostics for ssh1

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

23 years agoRSA key generation routines, and the bignum enhancements required to
simon [Wed, 18 Oct 2000 15:00:36 +0000 (15:00 +0000)]
RSA key generation routines, and the bignum enhancements required to
support them. A key generation tool will be forthcoming soon.

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

23 years agoAdd an "Add Key" option to the systray menu in Pageant
simon [Thu, 12 Oct 2000 15:26:40 +0000 (15:26 +0000)]
Add an "Add Key" option to the systray menu in Pageant

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

23 years agoImplement MD5 MAC for the benefit of old SSH2 servers
simon [Thu, 12 Oct 2000 14:24:58 +0000 (14:24 +0000)]
Implement MD5 MAC for the benefit of old SSH2 servers

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

23 years agoMiscellaneous fixes for better interoperation with commercial SSH 2
simon [Thu, 12 Oct 2000 13:34:46 +0000 (13:34 +0000)]
Miscellaneous fixes for better interoperation with commercial SSH 2

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

23 years agoImplement a much more visually appealing, but much more internally
simon [Thu, 12 Oct 2000 12:56:33 +0000 (12:56 +0000)]
Implement a much more visually appealing, but much more internally
grotty, hack to get around Explorer maximising the config box.

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

23 years agoAdd a config option to emulate the HMAC bug in commercial SSH v2.3.x
simon [Thu, 12 Oct 2000 12:39:44 +0000 (12:39 +0000)]
Add a config option to emulate the HMAC bug in commercial SSH v2.3.x
and earlier (namely, it uses only 16 bytes of key rather than 20).

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

23 years agoStop the SSH panel appearing in PuTTYtel
simon [Thu, 12 Oct 2000 09:10:45 +0000 (09:10 +0000)]
Stop the SSH panel appearing in PuTTYtel

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

23 years agoStop plink's key verification locking up on input
simon [Thu, 12 Oct 2000 09:10:31 +0000 (09:10 +0000)]
Stop plink's key verification locking up on input

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

23 years agoAdd UNE 10053 to the cleartext ones
simon [Wed, 11 Oct 2000 19:56:22 +0000 (19:56 +0000)]
Add UNE 10053 to the cleartext ones

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

23 years agoTurn off paste-as-poorman for line drawing chars until it's configurable
simon [Tue, 10 Oct 2000 16:02:08 +0000 (16:02 +0000)]
Turn off paste-as-poorman for line drawing chars until it's configurable

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

23 years agoISO8859-2 to CP852 output translation wants to have Win1250 to ISO8859-2
simon [Tue, 10 Oct 2000 12:43:24 +0000 (12:43 +0000)]
ISO8859-2 to CP852 output translation wants to have Win1250 to ISO8859-2
input translation as its counterpart, not CP852 to ISO8859-2. Because the
reason you want this translation is if your _font_ is coded CP852 - in which
case your keymap will not follow suit but will still be in Win1250.

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

23 years agoScroll regions of two lines are allowed
simon [Tue, 10 Oct 2000 10:50:14 +0000 (10:50 +0000)]
Scroll regions of two lines are allowed

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

23 years agoTrivial bug with the function-key radio buttons
simon [Tue, 10 Oct 2000 09:17:13 +0000 (09:17 +0000)]
Trivial bug with the function-key radio buttons

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

23 years agoNow when a saved session is loaded, its name appears in the
simon [Tue, 10 Oct 2000 09:03:20 +0000 (09:03 +0000)]
Now when a saved session is loaded, its name appears in the
IDC_SESSEDIT box, so that clicking Save will save over it. Useful
for people who want to load, modify, and re-save. Special case: this
doesn't apply to Default Settings, because I think people will be
more likely to load DS, modify it, and save under a _different_
name, so it's good not to allow a single mouse click to screw them
up.

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

23 years agoMove initialisation of the saved session box outside init_dlg_ctrls() so
simon [Tue, 10 Oct 2000 08:33:49 +0000 (08:33 +0000)]
Move initialisation of the saved session box outside init_dlg_ctrls() so
that you don't end up with twice as many items after clicking Load

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

23 years agoRename IDC_FUNCTILDE from "VT400" to "ESC[n~" because another VT400 now
simon [Tue, 10 Oct 2000 08:20:26 +0000 (08:20 +0000)]
Rename IDC_FUNCTILDE from "VT400" to "ESC[n~" because another VT400 now
exists!

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

23 years agoAdd ISO8859-2 / CP852 translation courtesy of Jaromir Filsak
simon [Mon, 9 Oct 2000 16:29:12 +0000 (16:29 +0000)]
Add ISO8859-2 / CP852 translation courtesy of Jaromir Filsak

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

23 years agoWork around horrifyingly nonportable use of unions in <commctrl.h>
simon [Mon, 9 Oct 2000 16:12:51 +0000 (16:12 +0000)]
Work around horrifyingly nonportable use of unions in <commctrl.h>

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

23 years agoAbandon the tab control in favour of a tree view
simon [Mon, 9 Oct 2000 15:51:14 +0000 (15:51 +0000)]
Abandon the tab control in favour of a tree view

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

23 years agoRobert de Bath's big patch:
simon [Mon, 9 Oct 2000 12:53:32 +0000 (12:53 +0000)]
Robert de Bath's big patch:
  - cope with strange WinSock wrappers not supporting SIOCATMARK
  - define yet more terminal compatibility modes
  - support UK-ASCII (just like US-ASCII but # is a sterling sign)
  - support connection keepalives at a configurable interval

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

23 years agoMiscellaneous fixes to try to make other compilers happier
simon [Mon, 9 Oct 2000 12:19:09 +0000 (12:19 +0000)]
Miscellaneous fixes to try to make other compilers happier

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

23 years agoRemove the hierarchical dialog structure
simon [Mon, 9 Oct 2000 12:16:27 +0000 (12:16 +0000)]
Remove the hierarchical dialog structure

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

23 years agoAdd a compile option so that anyone who really wants to can build a
simon [Mon, 9 Oct 2000 09:10:09 +0000 (09:10 +0000)]
Add a compile option so that anyone who really wants to can build a
Win95-only (securityless) version of Pageant. This will refuse to
run at all under NT, so as to avoid the risk of people accidentally
running an insecure binary on a security-requiring system.

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

23 years agoAlt-Enter was fouling up on Win95; added explicit handler
simon [Sat, 7 Oct 2000 08:10:32 +0000 (08:10 +0000)]
Alt-Enter was fouling up on Win95; added explicit handler

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