u/mdw/putty
21 years agoFiddle with the cmdline_saved mechanism: the `-load' option is now
simon [Sat, 22 Mar 2003 10:36:28 +0000 (10:36 +0000)]
Fiddle with the cmdline_saved mechanism: the `-load' option is now
never deferred, but is evaluated instantly. This _should_ fix all
the irritating problems with (for example) proxy settings and saved
sessions not playing nicely. Or it may have some other ghastly side-
effect I haven't considered; really I ought to have been keeping
better track of all the problems in this area :-(

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

21 years agoWindows file selectors contain an edit box as well as the Browse
simon [Sat, 22 Mar 2003 10:05:10 +0000 (10:05 +0000)]
Windows file selectors contain an edit box as well as the Browse
button; we must send EVENT_VALCHANGE when the edit box is manually
changed as well as when the file selector successfully completes.

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

21 years agoYikes - saving of Default Settings must have been broken for some
simon [Sat, 22 Mar 2003 09:49:20 +0000 (09:49 +0000)]
Yikes - saving of Default Settings must have been broken for some
time! The load code in settings.c was translating an empty string
into "Default Settings" to pass to {win,ux}store, whereas the save
code was passing the empty string straight down and expecting it to
be dealt with. So, a policy decision: the precise name of the
"Default Settings" special session _at the storage level_ is up to
the individual platform storage code to decide, and all platforms
MUST assume Default Settings is meant if they receive NULL or the
empty string as a session name.

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

21 years agoMake sure one of the Local/Remote port forwarding radio buttons
simon [Sat, 22 Mar 2003 09:32:49 +0000 (09:32 +0000)]
Make sure one of the Local/Remote port forwarding radio buttons
actually starts off selected!

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

21 years agoFixed the bug whereby PuTTYgen went into generation mode as soon as
simon [Sat, 22 Mar 2003 09:22:52 +0000 (09:22 +0000)]
Fixed the bug whereby PuTTYgen went into generation mode as soon as
it started up. The problem was that I was accepting _any_ event on
IDC_GENERATE to trigger this, not just the `clicked' event, and some
uninteresting event like `initialise' must have occurred. Quite why
this only showed up as a result of the config box revamp I can't
imagine.

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

21 years agoAdd crude support for multiple panels in the config dialogue box. There's
ben [Fri, 21 Mar 2003 00:24:17 +0000 (00:24 +0000)]
Add crude support for multiple panels in the config dialogue box.  There's
no way to switch between panels yet, though, so you're stuck on the first one.

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

21 years agoPass a pointer to the entire dialog box structure to event handlers, rather
ben [Thu, 20 Mar 2003 23:15:25 +0000 (23:15 +0000)]
Pass a pointer to the entire dialog box structure to event handlers, rather
than just the individual control pointer, because otherwise event handlers
can't modify other controls.

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

21 years agoMention xterm mouse reporting in the section on copy and paste.
ben [Thu, 20 Mar 2003 22:12:12 +0000 (22:12 +0000)]
Mention xterm mouse reporting in the section on copy and paste.

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

21 years agoAdd support for drawing a ring around the default button in System 7.
ben [Wed, 19 Mar 2003 00:40:15 +0000 (00:40 +0000)]
Add support for drawing a ring around the default button in System 7.

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

21 years agoAdd support for changing the contents of a pre-Appearance static text control.
ben [Tue, 18 Mar 2003 23:47:33 +0000 (23:47 +0000)]
Add support for changing the contents of a pre-Appearance static text control.

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

21 years agoTag the "Cancel" button appropriately, in case anyone's using a theme that
ben [Tue, 18 Mar 2003 23:41:14 +0000 (23:41 +0000)]
Tag the "Cancel" button appropriately, in case anyone's using a theme that
pays attention to it.

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

21 years agoBetter appearance and positioning for dlg_error_msg box, and also
simon [Tue, 18 Mar 2003 19:47:28 +0000 (19:47 +0000)]
Better appearance and positioning for dlg_error_msg box, and also
I've just found out that it's easy to ask for the config box to be
centred on the screen by default, which is kinda cool.

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

21 years agoChange the token for HTTP Basic Authentication from "basic" to "Basic".
ben [Tue, 18 Mar 2003 19:12:40 +0000 (19:12 +0000)]
Change the token for HTTP Basic Authentication from "basic" to "Basic".
According to RFC 2617, it should be case-insensitive, but some proxies
(Microsoft Proxy Server in particular) erroneously reject "basic".
Should fix semi-bug msproxy-denied.

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

21 years agoBig sprawling dialog-box commit covering all sorts of things.
simon [Tue, 18 Mar 2003 19:06:51 +0000 (19:06 +0000)]
Big sprawling dialog-box commit covering all sorts of things.
Buttons now have an `iscancel' flag to go with `isdefault';
dlg_last_focused() now explicitly passes the control it _doesn't_
care about (`I want the last control that had focus and isn't this
one'); and in the GTK implementation, various fixes have happened,
notably including arrow keys working sensibly in list boxes and the
treeview and short font aliases being expanded correctly to
initialise the font selectors.

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

21 years agoGah, another duplicate keyword. I must stop creating new docs
simon [Tue, 18 Mar 2003 09:03:31 +0000 (09:03 +0000)]
Gah, another duplicate keyword. I must stop creating new docs
sections by cut and paste.

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

21 years agoMy First CDEF: A terribly trivial static text control for System 7.
ben [Tue, 18 Mar 2003 00:35:40 +0000 (00:35 +0000)]
My First CDEF:  A terribly trivial static text control for System 7.
Needs work.

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

21 years agoInsert a missing ampersand that meant that the last version didn't even
ben [Mon, 17 Mar 2003 22:38:18 +0000 (22:38 +0000)]
Insert a missing ampersand that meant that the last version didn't even
compile.

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

21 years agoPartial implementation of the platform-independent dialogue-box interface
ben [Mon, 17 Mar 2003 21:40:37 +0000 (21:40 +0000)]
Partial implementation of the platform-independent dialogue-box interface
for the Mac OS.  This isn't anywhere near complete, and is wrong in a few
important regards, but I think it's heading in the right direction.

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

21 years agoIf I() and S() aren't inline, provide a prototype even if we're defining
ben [Mon, 17 Mar 2003 21:36:13 +0000 (21:36 +0000)]
If I() and S() aren't inline, provide a prototype even if we're defining
them.  This is useful for compilers that warn about un-prototyped functions.

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

21 years agoWhen running on a system with Aqua menu layout, delete the separator line
ben [Mon, 17 Mar 2003 19:00:36 +0000 (19:00 +0000)]
When running on a system with Aqua menu layout, delete the separator line
above "Quit" as well as "Quit" itself.

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

21 years agoError messages update. It's now abundantly clear that WSAECONNABORTED
simon [Mon, 17 Mar 2003 16:57:23 +0000 (16:57 +0000)]
Error messages update. It's now abundantly clear that WSAECONNABORTED
is not the same thing as ECONNABORTED, so I've removed the `we're a
bit confused about this, send us details' text. And someone has just
been confused by `connection timed out', so I've added that too.

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

21 years agotypo
jacob [Sun, 16 Mar 2003 20:18:11 +0000 (20:18 +0000)]
typo

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

21 years agoRSA blinding requires random numbers. Hence, Pageant now needs to
simon [Sun, 16 Mar 2003 13:28:48 +0000 (13:28 +0000)]
RSA blinding requires random numbers. Hence, Pageant now needs to
have the random number generator linked in.

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

21 years agoFurther work on the GTK config box; mostly implemented keyboard
simon [Sun, 16 Mar 2003 12:37:48 +0000 (12:37 +0000)]
Further work on the GTK config box; mostly implemented keyboard
shortcuts now (only treeviews and list boxes to go, which currently
do very weird things and I need to overhaul them completely).

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

21 years agoFixed accelerator clash in the Unix-specific config, since gtkdlg.c
simon [Sun, 16 Mar 2003 12:36:33 +0000 (12:36 +0000)]
Fixed accelerator clash in the Unix-specific config, since gtkdlg.c
is now competent to detect them :-)

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

21 years agoMy comment about RSA blinding was talking slight tosh. Fixed in case
simon [Sat, 15 Mar 2003 18:39:10 +0000 (18:39 +0000)]
My comment about RSA blinding was talking slight tosh. Fixed in case
anyone ever actually reads it :-)

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

21 years agoImplement RSA blinding, to defeat Brumley and Boneh's RSA timing
simon [Sat, 15 Mar 2003 17:51:05 +0000 (17:51 +0000)]
Implement RSA blinding, to defeat Brumley and Boneh's RSA timing
attacks. In the PuTTY suite I'm pretty sure they're only applicable
to a forwarded Pageant, and if your remote sysadmin is abusing your
Pageant then you're shafted _anyway_; but it can't hurt to take
precautions now, just in case things change in future.

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

21 years agoWhen a piece of text overflows its column in a tabbed list box, I
simon [Sat, 15 Mar 2003 15:56:51 +0000 (15:56 +0000)]
When a piece of text overflows its column in a tabbed list box, I
think on balance I rather like the natural behaviour of the way I've
done it, except that non-zero separation between the columns would
be even nicer. Accordingly, here is some.

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

21 years agoThe Telnet ENVIRON configurer also had a list box with an implicit
simon [Sat, 15 Mar 2003 15:55:03 +0000 (15:55 +0000)]
The Telnet ENVIRON configurer also had a list box with an implicit
tab stop. Fixed this one too.

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

21 years agoEvent handling in the GTK dialog engine is now basically present and
simon [Sat, 15 Mar 2003 15:50:42 +0000 (15:50 +0000)]
Event handling in the GTK dialog engine is now basically present and
correct. All the callbacks are getting called, all the dialog
actions are working (the port forwarding, colour and charclass
configurers are all completely functional), file, font and colour
selectors happen, and it's all looking pretty cool.

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

21 years agoWindows sets automatic tabs in list boxes, but GTK doesn't, so we
simon [Sat, 15 Mar 2003 15:49:04 +0000 (15:49 +0000)]
Windows sets automatic tabs in list boxes, but GTK doesn't, so we
should make the tab stop in the forwarded-ports list explicit.

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

21 years agoMissed a couple of the Unix-specific settings out of settings.c. One
simon [Sat, 15 Mar 2003 09:42:15 +0000 (09:42 +0000)]
Missed a couple of the Unix-specific settings out of settings.c. One
of these days I'll have to separate the platform-specific settings
out into winsett and uxsett modules, but for now it's not too urgent.

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

21 years agoWhile I'm adding explanatory comments by the coroutine macros, it
simon [Fri, 14 Mar 2003 21:20:32 +0000 (21:20 +0000)]
While I'm adding explanatory comments by the coroutine macros, it
occurs to me that would also be a good place to put a copy of the
instructions for disabling Edit and Continue debugging. Nobody
_actually_ reads the README, after all...

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

21 years agoThe divisor in the bell timing boxes should be TICKSPERSEC, not 1000.
simon [Fri, 14 Mar 2003 21:18:13 +0000 (21:18 +0000)]
The divisor in the bell timing boxes should be TICKSPERSEC, not 1000.

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

21 years agoContinuing work on the GTK config box. Created uxcfg.c for the
simon [Fri, 14 Mar 2003 18:35:01 +0000 (18:35 +0000)]
Continuing work on the GTK config box. Created uxcfg.c for the
Unix-specific config items; moved a stray Windows-specific config
item (scrollbar-in-fullscreen) out into wincfg.c to stop it
appearing on Unix; continued updates to gtkdlg.c. I now believe the
GTK config box looks basically correct (modulo minor cosmetic issues
and keyboard accelerators). Next step, add the event handling so
it's actually functional.

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

21 years agoFirst stab at a GTK layout engine. It's missing all sorts of stuff
simon [Thu, 13 Mar 2003 19:52:28 +0000 (19:52 +0000)]
First stab at a GTK layout engine. It's missing all sorts of stuff
(list boxes are particularly conspicuously absent), it has no event
handling at all, and it isn't in any way integrated into pterm - you
have to build it specially using the test stubs in gtkdlg.c. But
what there is so far seems to work plausibly well, so it's a start.
Rather than browbeat the existing GTK container/layout widgets into
doing what I wanted, I decided to implement two subclasses of
GtkContainer myself, which implement precisely the layout model
assumed by the config box specification; this has the rather cool
consequence that the box can be resized and will maintain the same
layout at all times that it would have had if initially created at
that size.

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

21 years agoIncrease PuTTY's default partition size to 2 MB. 1 MB just isn't enough.
ben [Tue, 11 Mar 2003 22:35:07 +0000 (22:35 +0000)]
Increase PuTTY's default partition size to 2 MB.  1 MB just isn't enough.

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

21 years agoNever pass a `char' to a ctype function. I had relied on gcc -Wall
simon [Tue, 11 Mar 2003 09:30:31 +0000 (09:30 +0000)]
Never pass a `char' to a ctype function. I had relied on gcc -Wall
letting me know about instances of this, but it turns out that my
ctype.h explicitly casts input values to `int' to evade the
`subscript has type char' warning, so it had been carefully not
letting me know! Found them all by compiling with a doctored
ctype.h, and hopefully fixed them all too.

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

21 years agoAdd the ability to allocate extra per-dialog-instance private data
simon [Sat, 8 Mar 2003 11:46:42 +0000 (11:46 +0000)]
Add the ability to allocate extra per-dialog-instance private data
in the portable dialog interface. This has allowed me to remove
`ssd->savedsession' in config.c, which was (I believe) the only
out-of-place piece of per-instance data in the dialog template
stuff. Now we should actually be able to run more than one config
box in the same process at the same time (for platforms that'll find
that useful).

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

21 years agoRichard B's patch for resize behaviour. The scrollback now contains
simon [Fri, 7 Mar 2003 18:18:38 +0000 (18:18 +0000)]
Richard B's patch for resize behaviour. The scrollback now contains
a marker which defines everything before it as `permanent'
scrollback and everything after it as `temporary'; only temporary
scrollback lines are returned to the main screen when the window
height is increased. Screen clears mark the lines pushed into the
scrollback as permanent; so lines explicitly cleared off the screen
by ESC[2J are never returned to it by mistake. This patch also fixes
the incorrect state the primary screen is left in when the window is
resized while the alternate screen is active.

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

21 years agoOvernight docs build found a duplicate section keyword. Oops. Fixed.
simon [Fri, 7 Mar 2003 09:03:11 +0000 (09:03 +0000)]
Overnight docs build found a duplicate section keyword. Oops. Fixed.

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

21 years agoAlert box to support host-key checking.
ben [Thu, 6 Mar 2003 23:46:06 +0000 (23:46 +0000)]
Alert box to support host-key checking.

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

21 years agoSlightly better than null verify_ssh_host_key(). It's broken in more ways
ben [Thu, 6 Mar 2003 23:44:47 +0000 (23:44 +0000)]
Slightly better than null verify_ssh_host_key().  It's broken in more ways
than I can comfortably enumerate (see the comments in the code), but it's
better than always assuming everything's OK.

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

21 years agoJust for Jacob, the ciphers drag list is now six lines high instead
simon [Thu, 6 Mar 2003 19:20:33 +0000 (19:20 +0000)]
Just for Jacob, the ciphers drag list is now six lines high instead
of five, so that the scroll bar doesn't show up when it's active.

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

21 years agoGot a bit of a better handle on the whole GDI `logical units' mess,
simon [Thu, 6 Mar 2003 19:18:25 +0000 (19:18 +0000)]
Got a bit of a better handle on the whole GDI `logical units' mess,
and sorted out the static-control text wrapping rather better. Now
it works under both large fonts and small fonts on Win2K, so I have
high hopes that it's actually correct this time.

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

21 years agoFix a couple of stupid typos in the session-saving code.
simon [Thu, 6 Mar 2003 18:49:05 +0000 (18:49 +0000)]
Fix a couple of stupid typos in the session-saving code.

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

21 years agoJacob points out that TS_EOL is broken in BINARY mode.
simon [Thu, 6 Mar 2003 13:25:48 +0000 (13:25 +0000)]
Jacob points out that TS_EOL is broken in BINARY mode.

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

21 years agoReorganisation of misc.c: Minefield has moved out to winmisc.c, and
simon [Thu, 6 Mar 2003 13:24:02 +0000 (13:24 +0000)]
Reorganisation of misc.c: Minefield has moved out to winmisc.c, and
so has the Windows dputs() - which has also acquired a Unix
counterpart in uxmisc.c. -DDEBUG should now work on Unix.

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

21 years agoOops, another missing forward-struct-declaration.
simon [Thu, 6 Mar 2003 12:58:01 +0000 (12:58 +0000)]
Oops, another missing forward-struct-declaration.

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

21 years agoRichard B's patch to add WINDOWID support to pterm.
simon [Thu, 6 Mar 2003 12:57:37 +0000 (12:57 +0000)]
Richard B's patch to add WINDOWID support to pterm.

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

21 years agoRepair the delete-saved-session button (trivial braino).
simon [Thu, 6 Mar 2003 12:52:36 +0000 (12:52 +0000)]
Repair the delete-saved-session button (trivial braino).

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

21 years agoRichard B's patch to push erased text into the scrollback on ESC[2J
simon [Thu, 6 Mar 2003 12:51:12 +0000 (12:51 +0000)]
Richard B's patch to push erased text into the scrollback on ESC[2J
clears, and also to temporarily push the primary screen contents
into the scrollback while the alternate screen is active and bring
it back afterwards.

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

21 years agoAs usual, gcc is better at warnings than MSVC, so here are some
simon [Thu, 6 Mar 2003 12:41:39 +0000 (12:41 +0000)]
As usual, gcc is better at warnings than MSVC, so here are some
pedantic fiddlings with the new config-box stuff to cure some.

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

21 years agoThe long-awaited config box revamp! I've taken the whole config box
simon [Wed, 5 Mar 2003 22:07:40 +0000 (22:07 +0000)]
The long-awaited config box revamp! I've taken the whole config box
to pieces, and put it back together in a new table-driven form.
config.c sets up a data structure describing most of the config box;
wincfg.c adds in the Windows-specific options (so that config.c can
also form the basis for Mac and Unix config boxes). Then winctrls.c
contains a shiny new layout engine which consumes that data
structure, and windlg.c passes all WM_COMMAND and similar messages
to a driver alongside that layout engine. In the process I've sorted
out nicer-looking panel titles and finally fixed the list-boxes-are-
never-the-right-size bug (turned out to be Windows's fault, of
course). I _believe_ it should do everything the old config box did,
including context help. Now everyone has to test it thoroughly...

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

21 years agoAdd 'what does "PuTTY" mean?', and add some IPA to the shortened pronunciation
ben [Tue, 4 Mar 2003 14:14:17 +0000 (14:14 +0000)]
Add 'what does "PuTTY" mean?', and add some IPA to the shortened pronunciation
answer.

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

21 years agoI've been meaning to get round to this for _ages_: in front of my
simon [Mon, 3 Mar 2003 16:35:45 +0000 (16:35 +0000)]
I've been meaning to get round to this for _ages_: in front of my
coroutine macros, I now include a comment linking to my web article
that explains what they do.

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

21 years agoImprove scheduling on the Mac:
ben [Sat, 1 Mar 2003 15:12:03 +0000 (15:12 +0000)]
Improve scheduling on the Mac:
1: Only update the screen when there's nothing else to do.  This means that
it's a lot harder for a fast typist to outrun PuTTY.
2: Only sleep for at most 100ms at a time.  This is a kludge to work around
the WakeUpProcess caused by incoming data can happen before the
WaitNextEvent it's meant to interrupt, leading to PuTTY sleeping forever
because it doesn't know there's network data pending.

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

21 years agoIn merging the username and password input functions I inadvertently
simon [Fri, 28 Feb 2003 20:28:03 +0000 (20:28 +0000)]
In merging the username and password input functions I inadvertently
removed the support for control characters in passwords. Replaced.

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

21 years agoHandle the Aqua menu layout, in which the system provides a "quit" option
ben [Thu, 27 Feb 2003 23:34:59 +0000 (23:34 +0000)]
Handle the Aqua menu layout, in which the system provides a "quit" option
for us, correctly.

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

21 years agoAdd 'plst' 0 resources to help Mac OS X do magic things.
ben [Thu, 27 Feb 2003 23:21:23 +0000 (23:21 +0000)]
Add 'plst' 0 resources to help Mac OS X do magic things.
These aren't actually compiled yet because they must only be present in
the Carbon build, and I don't currently compile the resources separately for
each platform.

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

21 years agoAdd some parentheses for general robustness. (In particular I just
simon [Mon, 24 Feb 2003 22:39:14 +0000 (22:39 +0000)]
Add some parentheses for general robustness. (In particular I just
tried to run mkfiles.pl on Perl 5.005_03 and it didn't work without
them.)

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

21 years agoSet the executable fragment name (in CFM builds) to the name of the target
ben [Sun, 23 Feb 2003 13:42:34 +0000 (13:42 +0000)]
Set the executable fragment name (in CFM builds) to the name of the target
pgram, rather than to "PuTTY" unconditionally.

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

21 years agoI think the Carbon build now works well enough to be worth turning on by
ben [Sun, 23 Feb 2003 13:34:14 +0000 (13:34 +0000)]
I think the Carbon build now works well enough to be worth turning on by
default.  It's not particularly useful, but it runs.

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

21 years agoHandle suspend and resume events in PuTTYgen as well.
ben [Sun, 23 Feb 2003 13:31:12 +0000 (13:31 +0000)]
Handle suspend and resume events in PuTTYgen as well.

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

21 years agoDon't open the event log whenever an event is logged; instead handle the
ben [Sun, 23 Feb 2003 13:00:38 +0000 (13:00 +0000)]
Don't open the event log whenever an event is logged; instead handle the
"Show Event Log" menu entry sensibly.  Similarly, make it possible to close
(hide) the event log.

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

21 years agoScroll the event log to the end after adding a line if it was looking at the
ben [Sun, 23 Feb 2003 12:41:44 +0000 (12:41 +0000)]
Scroll the event log to the end after adding a line if it was looking at the
end before the line was added.

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

21 years agoAdd handling for suspend and resume events, and set the flags in our 'SIZE'
ben [Sun, 23 Feb 2003 11:58:59 +0000 (11:58 +0000)]
Add handling for suspend and resume events, and set the flags in our 'SIZE'
resource that say we can handle them.  This seems to avoid a crash when PuTTY's
switched away from, and is necessary for Carbon anyway.

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

21 years agoWork around an SC bug that causes it to try to use the same register for
ben [Sun, 23 Feb 2003 00:13:17 +0000 (00:13 +0000)]
Work around an SC bug that causes it to try to use the same register for
two purposes in s_wrpkt_prepare().  This makes SSH1 work on 68K Macs, at
least until I deactivate the terminal window...

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

21 years agoAdd a mechanism for collecting entropy, and displaying how much we've got,
ben [Thu, 20 Feb 2003 22:55:09 +0000 (22:55 +0000)]
Add a mechanism for collecting entropy, and displaying how much we've got,
based on the Windows version.  We don't _do_ anything with the entropy yet,
though.

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

21 years agoBe careful not to try to get information from windows we don't own, or that
ben [Thu, 20 Feb 2003 22:31:52 +0000 (22:31 +0000)]
Be careful not to try to get information from windows we don't own, or that
don't exist at all.  Also a small PuTTYgen change that I can't be bothered
to filter out of this commit.

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

21 years agoChange some of the blocks of cut&pasted code into loops.
ben [Thu, 20 Feb 2003 22:22:14 +0000 (22:22 +0000)]
Change some of the blocks of cut&pasted code into loops.

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

21 years agoAsk for traceback tables in PowerPC objects, since that should make
ben [Thu, 20 Feb 2003 00:40:39 +0000 (00:40 +0000)]
Ask for traceback tables in PowerPC objects, since that should make
tracking down crashes easier.

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

21 years agoFix documentation for `ssh2-keyderive-nonbug'.
jacob [Wed, 19 Feb 2003 09:54:45 +0000 (09:54 +0000)]
Fix documentation for `ssh2-keyderive-nonbug'.

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

21 years agoMake this compile in Carbon.
ben [Wed, 19 Feb 2003 01:03:47 +0000 (01:03 +0000)]
Make this compile in Carbon.

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

21 years agoFix `ssh2.0.11-keyderive-nonbug' on the strength of Ben's analysis.
jacob [Tue, 18 Feb 2003 20:10:24 +0000 (20:10 +0000)]
Fix `ssh2.0.11-keyderive-nonbug' on the strength of Ben's analysis.
Not tested it myself.

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

21 years agoBring PuTTYgen into the world of object-oriented event handling.
ben [Sun, 16 Feb 2003 14:27:37 +0000 (14:27 +0000)]
Bring PuTTYgen into the world of object-oriented event handling.
Also add a non-functional "generate" button the the key window.

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

21 years agoMake it possible to close the "about" and "licence" boxes again.
ben [Sun, 16 Feb 2003 13:44:18 +0000 (13:44 +0000)]
Make it possible to close the "about" and "licence" boxes again.

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

21 years agoActually use macabout.c.
ben [Sun, 16 Feb 2003 13:03:33 +0000 (13:03 +0000)]
Actually use macabout.c.

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

21 years agoStub code for handling key windows in PuTTYgen. This file will eventually
ben [Sun, 16 Feb 2003 13:03:12 +0000 (13:03 +0000)]
Stub code for handling key windows in PuTTYgen.  This file will eventually
include all the stuff that does actual work in PuTTYgen.

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

21 years agofaq-support:
jacob [Sat, 15 Feb 2003 18:47:22 +0000 (18:47 +0000)]
faq-support:
Modified text to reflect the fact that the wishlist now shows bugs fixed
recently (FSVO "recently"). Hopefully I haven't made it too confusing.

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

21 years agoRather than increasing the size of my switch statements yet further, have
ben [Sat, 15 Feb 2003 16:22:15 +0000 (16:22 +0000)]
Rather than increasing the size of my switch statements yet further, have
a bunch of function pointers associated with each window to do things like
updates and click handling.  This is all looking disturbingly object-oriented.
.
While I'm here, separate out the about box into its own file, shared by PuTTY
and PuTTYgen.

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

21 years agoTiny amount of infrastructure for having actual keys in PuTTYgen.
ben [Sat, 15 Feb 2003 14:20:43 +0000 (14:20 +0000)]
Tiny amount of infrastructure for having actual keys in PuTTYgen.

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

21 years ago<OpenTransportInternet.h> seems to want <Files.h>. Silly thing.
ben [Sat, 15 Feb 2003 14:20:04 +0000 (14:20 +0000)]
<OpenTransportInternet.h> seems to want <Files.h>.  Silly thing.

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

21 years agoMake various internal functions static.
ben [Sat, 15 Feb 2003 13:29:26 +0000 (13:29 +0000)]
Make various internal functions static.

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

21 years agoMove the 'vers' resources for Mac OS into their own file, to be shared
ben [Thu, 13 Feb 2003 12:30:10 +0000 (12:30 +0000)]
Move the 'vers' resources for Mac OS into their own file, to be shared
by the various applications.

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

21 years agoMinimal shell of PuTTYgen for Mac. No actual PuTTYgen-specific code there
ben [Wed, 12 Feb 2003 23:53:15 +0000 (23:53 +0000)]
Minimal shell of PuTTYgen for Mac.  No actual PuTTYgen-specific code there
yet, but an absence of PuTTY-specific code.

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

21 years agoDeal with a "possible extraneous ';'" warning.
ben [Wed, 12 Feb 2003 23:21:38 +0000 (23:21 +0000)]
Deal with a "possible extraneous ';'" warning.

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

21 years agoConvert implicit (char *) and (unsigned char *) casts to explicit ones.
ben [Wed, 12 Feb 2003 23:06:40 +0000 (23:06 +0000)]
Convert implicit (char *) and (unsigned char *) casts to explicit ones.

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

21 years agoUpdate list of Telnet options to match what IANA currently have.
ben [Wed, 12 Feb 2003 19:49:25 +0000 (19:49 +0000)]
Update list of Telnet options to match what IANA currently have.

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

21 years agoClip host resize requests to the size of the desktop.
ben [Tue, 11 Feb 2003 23:10:34 +0000 (23:10 +0000)]
Clip host resize requests to the size of the desktop.

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

21 years agoRemove another `please pester ssh.com for their agent protocol' bit.
simon [Tue, 11 Feb 2003 14:10:20 +0000 (14:10 +0000)]
Remove another `please pester ssh.com for their agent protocol' bit.

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

21 years agoThe event log is implemented; remove it from the list.
ben [Mon, 10 Feb 2003 23:49:58 +0000 (23:49 +0000)]
The event log is implemented; remove it from the list.

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

21 years agoSet some parent windows on PuTTYgen and Pageant About/Licence dialog to
jacob [Fri, 7 Feb 2003 14:22:19 +0000 (14:22 +0000)]
Set some parent windows on PuTTYgen and Pageant About/Licence dialog to
improve window management behaviour.

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

21 years agoGive PuTTYgen an icon.
jacob [Fri, 7 Feb 2003 13:54:34 +0000 (13:54 +0000)]
Give PuTTYgen an icon.

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

21 years agoCrude Event Log implementation for the Mac. I'm fairly convinced now that
ben [Fri, 7 Feb 2003 01:38:12 +0000 (01:38 +0000)]
Crude Event Log implementation for the Mac.  I'm fairly convinced now that
using the List Manager was entirely the wrong decision on my part, so I'll
probably rewrite this to use TextEdit at some point, but it's better than
stderr even so.

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

21 years agoClean up Carbon build procedures somewhat. I still don't have anything that
ben [Fri, 7 Feb 2003 01:33:24 +0000 (01:33 +0000)]
Clean up Carbon build procedures somewhat.  I still don't have anything that
actually works, but I think I'm getting closer.

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

21 years agoMove net_service_lookup() to macnet.c, since that's where it belongs.
ben [Thu, 6 Feb 2003 01:01:27 +0000 (01:01 +0000)]
Move net_service_lookup() to macnet.c, since that's where it belongs.

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

21 years agoOops; overzealous copy-and-paste in the Windows Help context names.
simon [Wed, 5 Feb 2003 09:05:35 +0000 (09:05 +0000)]
Oops; overzealous copy-and-paste in the Windows Help context names.

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

21 years agoAdd a level of indirection to make it rather easier to work out which of a
ben [Tue, 4 Feb 2003 23:39:26 +0000 (23:39 +0000)]
Add a level of indirection to make it rather easier to work out which of a
session's windows we're dealing with.

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

21 years agoAdd another bug workaround, this one for old OpenSSH (<2.3) servers
simon [Tue, 4 Feb 2003 13:02:51 +0000 (13:02 +0000)]
Add another bug workaround, this one for old OpenSSH (<2.3) servers
which have a strange idea of what data should be signed in a PK auth
request. This actually got in my way while doing serious things at
work! :-)

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