1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00
Commit Graph

1658 Commits

Author SHA1 Message Date
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
Ben Harris
ff507407b1 Move the 'vers' resources for Mac OS into their own file, to be shared
by the various applications.

[originally from svn r2843]
2003-02-13 12:30:10 +00:00
Ben Harris
8dcbb16ec2 Minimal shell of PuTTYgen for Mac. No actual PuTTYgen-specific code there
yet, but an absence of PuTTY-specific code.

[originally from svn r2842]
2003-02-12 23:53:15 +00:00
Ben Harris
a427048b29 Deal with a "possible extraneous ';'" warning.
[originally from svn r2841]
2003-02-12 23:21:38 +00:00
Ben Harris
a0e773df86 Convert implicit (char *) and (unsigned char *) casts to explicit ones.
[originally from svn r2840]
2003-02-12 23:06:40 +00:00
Ben Harris
69b51f5234 Update list of Telnet options to match what IANA currently have.
[originally from svn r2839]
2003-02-12 19:49:25 +00:00
Ben Harris
10bccffd16 Clip host resize requests to the size of the desktop.
[originally from svn r2835]
2003-02-11 23:10:34 +00:00
Simon Tatham
51d3248afc Remove another `please pester ssh.com for their agent protocol' bit.
[originally from svn r2832]
2003-02-11 14:10:20 +00:00
Ben Harris
bea09a8046 The event log is implemented; remove it from the list.
[originally from svn r2830]
2003-02-10 23:49:58 +00:00
Jacob Nevins
ae0a12c938 Set some parent windows on PuTTYgen and Pageant About/Licence dialog to
improve window management behaviour.

[originally from svn r2822]
2003-02-07 14:22:19 +00:00
Jacob Nevins
8c9ac4ac48 Give PuTTYgen an icon.
[originally from svn r2821]
2003-02-07 13:54:34 +00:00
Ben Harris
2c10ece60d 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.

[originally from svn r2811]
2003-02-07 01:38:12 +00:00
Ben Harris
60c9d7bae3 Clean up Carbon build procedures somewhat. I still don't have anything that
actually works, but I think I'm getting closer.

[originally from svn r2810]
2003-02-07 01:33:24 +00:00
Ben Harris
f9928fafae Move net_service_lookup() to macnet.c, since that's where it belongs.
[originally from svn r2806]
2003-02-06 01:01:27 +00:00
Simon Tatham
18e99dd71a Oops; overzealous copy-and-paste in the Windows Help context names.
[originally from svn r2805]
2003-02-05 09:05:35 +00:00
Ben Harris
a1e2199dc1 Add a level of indirection to make it rather easier to work out which of a
session's windows we're dealing with.

[originally from svn r2804]
2003-02-04 23:39:26 +00:00
Simon Tatham
be9718cb13 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! :-)

[originally from svn r2800]
2003-02-04 13:02:51 +00:00
Simon Tatham
b83b9fad77 Further fallout from the introduction of the Filename type. (Memo to
self: if you change the type of a variable and everything compiles
without type-checking errors, that doesn't mean it's all fixed,
because variadic functions aren't type-checked! Oops.)

[originally from svn r2799]
2003-02-04 13:00:54 +00:00
Ben Harris
1e25e56378 If we're compiling for Carbon, define OTCARBONAPPLICATION so that we get
the simplified (and backward-compatible) application-only interfaces.

[originally from svn r2793]
2003-02-04 02:15:18 +00:00
Ben Harris
24df1c5463 Carbonise, or at least disable MacTCP support under Carbon.
[originally from svn r2792]
2003-02-04 02:10:42 +00:00
Ben Harris
67312214da I can only quote the comment in <Scrap.h> which prompted this commit:
/*
    Newsflash! After 15 years of arduous toil, it's finally possible
    for specially trained typists wielding advanced text editing
    technology to define symbolic names for commonly used scrap
    flavor type constants! Apple triumphs again!
*/

[originally from svn r2791]
2003-02-04 02:08:03 +00:00
Ben Harris
16f40e8bcc Fix various breakages my Carbonisation caused in the Classic build, notably
that outside Carbon, CGrafPtr and GrafPtr are different types, even though
they're mostly interchangeable, so we need to interpose a cast between
GetWindowPort and SetPort.

[originally from svn r2790]
2003-02-04 02:03:53 +00:00
Ben Harris
13feddf9ea Carbonise. Currently, size tips and copy/paste won't work in Carbon.
[originally from svn r2789]
2003-02-04 01:53:50 +00:00
Ben Harris
45ab39dd19 Slightly improve Carbon handling: we still have to deal with the "About..."
menu entry, even if the rest of the Apple Menu is done for us.

[originally from svn r2788]
2003-02-04 00:33:11 +00:00
Ben Harris
1e67347b04 Convert keyboard events into Unicode properly. I can now type all manner of
interesting characters and have them work properly.

[originally from svn r2787]
2003-02-04 00:01:33 +00:00
Ben Harris
e83c42bb5b Update to match reality.
[originally from svn r2780]
2003-02-02 16:02:50 +00:00
Ben Harris
60b6419de5 Add support for using Navigation Services to open saved sessions.
Support for saving sessions using Navigation Services will come later.

[originally from svn r2779]
2003-02-02 15:59:00 +00:00
Ben Harris
49552525cc Carbonise, mostly by replacing addresource() with c2pstrcpy() and
AddResource(), and similar.

[originally from svn r2775]
2003-02-02 00:04:36 +00:00
Ben Harris
e68c510ac4 Carbonise. Until we support Navigation Services, loading and saving sessions
is tricky.

[originally from svn r2774]
2003-02-01 23:55:00 +00:00
Ben Harris
ac8177763e Make this compile in a Carbon world (while still supporting everything else).
[originally from svn r2773]
2003-02-01 23:42:30 +00:00
Ben Harris
fc17465c33 Add some glue to allow building a Carbon version of PuTTY. It won't
work, but it's nice to have the infrastructure in place.

[originally from svn r2772]
2003-02-01 22:20:53 +00:00
Ben Harris
61711b9594 Rather more natural (if much more complex) Mac Filename implementation.
Filenames are represented as a FSSpec, which is converted to and from an
alias record ('alis' resource) when saving and loading sessions.
.
It might be an idea to allow in-core Filenames to contain alias records too,
so that they can refer to directories that don't exist on the current system,
but that requires Filenames to be dynamically allocated, which is likely to be
a pain.

[originally from svn r2771]
2003-02-01 21:44:05 +00:00
Ben Harris
4f76d033d5 In xlatlognam(), use the start of the destination buffer as the destination
filename, not the end.

[originally from svn r2770]
2003-02-01 21:39:59 +00:00
Simon Tatham
8aa218fd1d Initialise a variable that might otherwise have caused trouble.
Thanks to Ross Younger.

[originally from svn r2769]
2003-02-01 17:25:06 +00:00
Simon Tatham
bd16b29a7a Oops, Ben is quite right about the rather appalling design of
filename_from_str. Here's a better fix, with some const
repercussions too.

[originally from svn r2768]
2003-02-01 17:24:27 +00:00
Ben Harris
947b70006e Tidy up Simon's FontSpec abstraction.
Also, make fontspec_to_str not return the address of an automatic variable.
It now has a memory leak instead.

[originally from svn r2767]
2003-02-01 15:44:08 +00:00
Ben Harris
21275897d2 Make save_scroll() static.
[originally from svn r2766]
2003-02-01 15:42:01 +00:00
Simon Tatham
f26b7aa0d3 Created new data types Filename' and FontSpec', intended to be
opaque to all platform-independent modules and only handled within
per-platform code. `Filename' is there because the Mac has a magic
way to store filenames (though currently this checkin doesn't
support it!); `FontSpec' is there so that all the auxiliary stuff
such as font height and charset and so on which is needed under
Windows but not Unix can be kept where it belongs, and so that I can
have a hope in hell of dealing with a font chooser in the forthcoming
cross-platform config box code, and best of all it gets the horrid
font height wart out of settings.c and into the Windows code where
it should be.
The Mac part of this checkin is a bunch of random guesses which will
probably not quite compile, but which look roughly right to me.
Sorry if I screwed it up, Ben :-)

[originally from svn r2765]
2003-02-01 12:54:40 +00:00
Simon Tatham
ccf35b8a26 Fix the gcc warnings in this module (since we now seem to be
building -Werror under Unix this is quite important!).

[originally from svn r2764]
2003-02-01 12:28:43 +00:00
Ben Harris
fe5f4c14f4 Richard's lazy-scrolling patch. This builds up scroll operations in a list,
combining adjacent ones for the same region, and runs them all in do_paint.
I'm not sure it's entirely right, but it works on my Mac in every case I've
tested.

[originally from svn r2763]
2003-02-01 12:26:33 +00:00
Jacob Nevins
d3d8714f06 Misc tweaks to proxy section
[originally from svn r2762]
2003-02-01 02:09:02 +00:00
Ben Harris
58176ee753 Be slightly less negative about other people's setting up PuTTY-related
fora.

[originally from svn r2760]
2003-02-01 00:29:38 +00:00
Ben Harris
8758cbf028 Mention the slightly odd "too many authentication attempts" message you
get from OpenSSH if you overfill Pageant.

[originally from svn r2757]
2003-01-31 23:18:44 +00:00
Ben Harris
df47130d30 Small amount of extra noise gathering -- slurp the process list in
noise_get_heavy().

[originally from svn r2755]
2003-01-30 23:11:07 +00:00
Simon Tatham
bcfa137c21 Yet more fallout from the 16-colour changes. I think by this time
these fiddly little changes are no longer bugs I introduced
recently, they're bugs that have been around all along and I've only
just smoked out by altering the ATTR_* definitions.

[originally from svn r2754]
2003-01-30 13:39:24 +00:00
Simon Tatham
3a841b6e10 Antonin Brothanek points out that `Incoming packet was garbled on
decryption' could be a result of the wrong setting of the
`Miscomputes SSH2 encryption keys' bug workaround option.

[originally from svn r2751]
2003-01-30 10:19:05 +00:00
Jacob Nevins
01b8739894 Further cosmetic tweaks to file-selection boxes per observed conventions
on Windows:
 - Change "AllFiles" to "All Files (*.*)"
 - Extensions in lower case

[originally from svn r2748]
2003-01-29 16:39:18 +00:00