Граф коммитов

1704 Коммитов

Автор SHA1 Сообщение Дата
Simon Tatham fca92a5b43 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.

[originally from svn r2933]
2003-03-14 18:35:01 +00:00
Simon Tatham df85003ea5 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.

[originally from svn r2931]
2003-03-13 19:52:28 +00:00
Ben Harris a816d2df18 Increase PuTTY's default partition size to 2 MB. 1 MB just isn't enough.
[originally from svn r2928]
2003-03-11 22:35:07 +00:00
Simon Tatham 73203bce79 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.

[originally from svn r2927]
2003-03-11 09:30:31 +00:00
Simon Tatham 43fe7d3c87 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).

[originally from svn r2925]
2003-03-08 11:46:42 +00:00
Simon Tatham e9cc328501 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.

[originally from svn r2923]
2003-03-07 18:18:38 +00:00
Simon Tatham 4efe692e88 Overnight docs build found a duplicate section keyword. Oops. Fixed.
[originally from svn r2921]
2003-03-07 09:03:11 +00:00
Ben Harris 43d2fa847f Alert box to support host-key checking.
[originally from svn r2920]
2003-03-06 23:46:06 +00:00
Ben Harris 33e7ee09ab 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.

[originally from svn r2919]
2003-03-06 23:44:47 +00:00
Simon Tatham c06c12983c 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.

[originally from svn r2918]
2003-03-06 19:20:33 +00:00
Simon Tatham 9e0a7aa86d 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.

[originally from svn r2917]
2003-03-06 19:18:25 +00:00
Simon Tatham 88d0a45b0f Fix a couple of stupid typos in the session-saving code.
[originally from svn r2916]
2003-03-06 18:49:05 +00:00
Simon Tatham 3e311e94fc Jacob points out that TS_EOL is broken in BINARY mode.
[originally from svn r2915]
2003-03-06 13:25:48 +00:00
Simon Tatham 6f693ffeb0 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.

[originally from svn r2914]
2003-03-06 13:24:02 +00:00
Simon Tatham 645eee8647 Oops, another missing forward-struct-declaration.
[originally from svn r2913]
2003-03-06 12:58:01 +00:00
Simon Tatham 83da92826e Richard B's patch to add WINDOWID support to pterm.
[originally from svn r2912]
2003-03-06 12:57:37 +00:00
Simon Tatham 5376d94b96 Repair the delete-saved-session button (trivial braino).
[originally from svn r2911]
2003-03-06 12:52:36 +00:00
Simon Tatham c5181dc498 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.

[originally from svn r2910]
2003-03-06 12:51:12 +00:00
Simon Tatham 8228cd2d72 As usual, gcc is better at warnings than MSVC, so here are some
pedantic fiddlings with the new config-box stuff to cure some.

[originally from svn r2909]
2003-03-06 12:41:39 +00:00
Simon Tatham 616c837cf0 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...

[originally from svn r2908]
2003-03-05 22:07:40 +00:00
Ben Harris a4e81c06c7 Add 'what does "PuTTY" mean?', and add some IPA to the shortened pronunciation
answer.

[originally from svn r2904]
2003-03-04 14:14:17 +00:00
Simon Tatham 9890c7a57a 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.

[originally from svn r2902]
2003-03-03 16:35:45 +00:00
Ben Harris 614c5a3b92 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.

[originally from svn r2901]
2003-03-01 15:12:03 +00:00
Simon Tatham 8aa463b7a1 In merging the username and password input functions I inadvertently
removed the support for control characters in passwords. Replaced.

[originally from svn r2900]
2003-02-28 20:28:03 +00:00
Ben Harris 000acf446c Handle the Aqua menu layout, in which the system provides a "quit" option
for us, correctly.

[originally from svn r2899]
2003-02-27 23:34:59 +00:00
Ben Harris b11ffdcd6f 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.

[originally from svn r2898]
2003-02-27 23:21:23 +00:00
Simon Tatham 2ddf9f54de 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.)

[originally from svn r2885]
2003-02-24 22:39:14 +00:00
Ben Harris 3543ba3ec9 Set the executable fragment name (in CFM builds) to the name of the target
pgram, rather than to "PuTTY" unconditionally.

[originally from svn r2883]
2003-02-23 13:42:34 +00:00
Ben Harris 160277515b I think the Carbon build now works well enough to be worth turning on by
default.  It's not particularly useful, but it runs.

[originally from svn r2882]
2003-02-23 13:34:14 +00:00
Ben Harris d563d6e35b Handle suspend and resume events in PuTTYgen as well.
[originally from svn r2881]
2003-02-23 13:31:12 +00:00
Ben Harris 8bff62d5b8 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.

[originally from svn r2880]
2003-02-23 13:00:38 +00:00
Ben Harris 791a12ce5b Scroll the event log to the end after adding a line if it was looking at the
end before the line was added.

[originally from svn r2879]
2003-02-23 12:41:44 +00:00
Ben Harris eec4b9d08d 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.

[originally from svn r2878]
2003-02-23 11:58:59 +00:00
Ben Harris 01105493cc 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...

[originally from svn r2876]
2003-02-23 00:13:17 +00:00
Ben Harris bd149e7b1e 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.

[originally from svn r2875]
2003-02-20 22:55:09 +00:00
Ben Harris f53c998569 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.

[originally from svn r2874]
2003-02-20 22:31:52 +00:00
Ben Harris fb90fa8650 Change some of the blocks of cut&pasted code into loops.
[originally from svn r2873]
2003-02-20 22:22:14 +00:00
Ben Harris b5133bc164 Ask for traceback tables in PowerPC objects, since that should make
tracking down crashes easier.

[originally from svn r2872]
2003-02-20 00:40:39 +00:00
Jacob Nevins 8d1e6bca16 Fix documentation for `ssh2-keyderive-nonbug'.
[originally from svn r2868]
2003-02-19 09:54:45 +00:00
Ben Harris eb14a580d7 Make this compile in Carbon.
[originally from svn r2867]
2003-02-19 01:03:47 +00:00
Jacob Nevins 2bb23257f2 Fix `ssh2.0.11-keyderive-nonbug' on the strength of Ben's analysis.
Not tested it myself.

[originally from svn r2861]
2003-02-18 20:10:24 +00:00
Ben Harris 670289a8b8 Bring PuTTYgen into the world of object-oriented event handling.
Also add a non-functional "generate" button the the key window.

[originally from svn r2857]
2003-02-16 14:27:37 +00:00
Ben Harris 6223099261 Make it possible to close the "about" and "licence" boxes again.
[originally from svn r2856]
2003-02-16 13:44:18 +00:00
Ben Harris b1a414efa2 Actually use macabout.c.
[originally from svn r2855]
2003-02-16 13:03:33 +00:00
Ben Harris 0b0935adf2 Stub code for handling key windows in PuTTYgen. This file will eventually
include all the stuff that does actual work in PuTTYgen.

[originally from svn r2854]
2003-02-16 13:03:12 +00:00
Jacob Nevins 862b846b74 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.

[originally from svn r2852]
2003-02-15 18:47:22 +00:00
Ben Harris 4f59bac798 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.

[originally from svn r2850]
2003-02-15 16:22:15 +00:00
Ben Harris c6a92bebfc Tiny amount of infrastructure for having actual keys in PuTTYgen.
[originally from svn r2849]
2003-02-15 14:20:43 +00:00
Ben Harris 0c1b343646 <OpenTransportInternet.h> seems to want <Files.h>. Silly thing.
[originally from svn r2848]
2003-02-15 14:20:04 +00:00
Ben Harris e572c48a4a Make various internal functions static.
[originally from svn r2847]
2003-02-15 13:29:26 +00:00