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

1426 Коммитов

Автор SHA1 Сообщение Дата
Ben Harris 47f459bb5f Add support for compiling 'vers' resources into Mac applications. This is
needlessly complex because Rez's preprocessor doesn't do either ANSI or K&R
stringification, and the MPW Shell isn't much good as shells go.

Also make _all_ the Mac executables depend on reources, not just the
Classic 68K one.

[originally from svn r2389]
2002-12-30 23:14:11 +00:00
Ben Harris 14432c234a Set the default directory to somewhere useful (the PuTTY saved sessions
folder) when we start up.

[originally from svn r2388]
2002-12-30 19:01:44 +00:00
Ben Harris 71d699c28c Add an "open" command to the "file" (now "session") menu on the Mac to
open an existing saved session.  This has entailed adding an extra hook to
settings.c to allow for loading settings other than by name.

[originally from svn r2387]
2002-12-30 18:21:17 +00:00
Ben Harris d5d52933dd Remove a spurious reference to a variable I've removed.
[originally from svn r2386]
2002-12-30 15:41:52 +00:00
Ben Harris 672404dc4e Finally add support for building Mac resource forks. This adds a new kind
of compiled resource file, .rsrc, which is built from .r, and adds mechanisms
to the MPW makefile generator to handle this.

[originally from svn r2385]
2002-12-30 14:20:25 +00:00
Ben Harris 6ca089d035 Add spaces to system include lines to that mkfiles.pl doesn't try to
follow them (silly Rez can't do angle-bracket includes).

[originally from svn r2384]
2002-12-30 14:17:51 +00:00
Ben Harris f5578ea873 More cleanup to Mac build procedures, notably:
- Remove an unused library from the CFM-68K link line.
 - Set the fragment name in CFM builds to "PuTTY".
 - Set the hasBundle and isShared bits on freshly-created applications.

[originally from svn r2383]
2002-12-30 13:43:19 +00:00
Ben Harris cababe03ef Add various files produced by the build system.
[originally from svn r2382]
2002-12-29 19:19:10 +00:00
Ben Harris ecdb9ce7b1 Don't try to call TerminateUnicodeConverter() in the CFM world: it isn't there.
[originally from svn r2381]
2002-12-29 19:14:56 +00:00
Ben Harris d1eddb0958 Brutally simplify out all the junk that MPW left here when it first wrote this
file.

[originally from svn r2380]
2002-12-29 19:11:40 +00:00
Ben Harris b838180aa0 Add support for building a CFM-68K version of PuTTY, which is rather smaller
than the Classic 68K version.  This requires installing more bits of the
Text Encoding Converter SDK, since Apple seem to have forgotten to put _any_
68k bits for it, either CFM or Classic, in Universal Interfaces.

Also don't bother linking against libraries we don't seem to need.

[originally from svn r2379]
2002-12-29 19:01:33 +00:00
Ben Harris 9b45be7987 Substantial overhaul of Mac build system. We now have working PowerPC builds,
and optimisation (for size) enabled.

[originally from svn r2378]
2002-12-29 15:44:15 +00:00
Ben Harris 873b95deff Put prototypes for the functions exported by wcwidth.c in putty.h, and remove
one from terminal.c.  Have wcwidth.c include putty.h to get its prototypes.

[originally from svn r2377]
2002-12-29 15:08:27 +00:00
Ben Harris 4345935c22 Make resizeline() and lineptr() static and give them prototypes.
[originally from svn r2376]
2002-12-29 14:47:01 +00:00
Ben Harris 09dc635ba3 Use the "far" versions of all libraries for which they seem to exist.
This should make things less likely to break as the code gets bigger.

[originally from svn r2375]
2002-12-29 13:41:38 +00:00
Ben Harris d7f5c50562 Add some pragmas so that Mac compilers know that fatalbox() and
modalfatalbox() don't return.

[originally from svn r2374]
2002-12-29 13:21:12 +00:00
Ben Harris f883570ed8 It would be better if I deleted the unused variable from the correct function.
[originally from svn r2373]
2002-12-28 22:44:27 +00:00
Ben Harris 454e6d2a43 Remove more unused variables.
[originally from svn r2372]
2002-12-28 22:25:31 +00:00
Ben Harris 1cfe88e9d2 Dispose of some unused local variables.
[originally from svn r2371]
2002-12-28 22:22:43 +00:00
Ben Harris ee01ff5731 The current version of SC generates warnings for unused parameters just
like MrC.  Turn them off, since they're clearly silly.

[originally from svn r2370]
2002-12-28 22:17:51 +00:00
Simon Tatham b2f4de02b9 Mention in the documentation that the method of generating RSA keys
might give a bit count one less than the one the user asked for. Two
people have been worried by this now, and it's probably worth
documenting that it's perfectly normal.

[originally from svn r2369]
2002-12-27 16:54:14 +00:00
Simon Tatham 6c34f06a71 Move the stderr output of event log messages in verbose mode to the
general logging module rather than localising it in ssh.c. This
means it should work in other protocols as well (notably Telnet,
where it might actually be useful for debugging negotiations).

[originally from svn r2360]
2002-12-19 14:24:28 +00:00
Simon Tatham 6adef8429a First crack at an implementation of TELOPT_BINARY, which apparently
RFC 1123 (host requirements) says is compulsory.

[originally from svn r2358]
2002-12-19 14:22:16 +00:00
Simon Tatham 7f7e3f539c logeventf() shouldn't throw stuff at stderr, since it invokes the
ssh.c logevent _macro_ which has already done so! Duhh.

[originally from svn r2356]
2002-12-19 11:51:42 +00:00
Simon Tatham a564ad3140 Support for doing DNS at the proxy end. I've invented a new type of
SockAddr, which just contains an unresolved hostname and is created
by a stub function in *net.c. It's an error to pass this to most of
the real-meat functions in *net.c; these fake addresses should have
been dealt with by the time they get down that far. proxy.c now
contains name_lookup(), a wrapper on sk_namelookup() which decides
whether or not to do real DNS, and the individual proxy
implementations each deal sensibly with being handed an unresolved
address and avoid ever passing one down to *net.c.

[originally from svn r2353]
2002-12-18 16:23:11 +00:00
Simon Tatham e1cc16e6be Better reporting of DNS errors while trying to find the proxy server.
[originally from svn r2350]
2002-12-18 12:32:18 +00:00
Simon Tatham 8304f4e0dc Stop proxying connections to localhost by default; should fix
`x11-proxy-crash'.

[originally from svn r2348]
2002-12-18 12:18:54 +00:00
Simon Tatham c583c6e85e Placate a trivial compiler warning.
[originally from svn r2347]
2002-12-18 11:51:09 +00:00
Simon Tatham 297e5d8e45 Improve the tab order in the Tunnels box: the `Add' button should
happen _after_ all the controls that set up the forwarding, since
that's the obvious order you'd want to use them in.

[originally from svn r2346]
2002-12-18 11:49:14 +00:00
Simon Tatham 99b870dbc6 Implement `portfwd-loopback-choice'. Works on local side in Unix as
well, though it's a lot less useful since you still can't bind to
low-numbered ports of odd loopback IPs. Should work in principle for
SSH2 remote forwardings as well as local ones, but OpenSSH seems
unwilling to cooperate.

[originally from svn r2344]
2002-12-18 11:39:25 +00:00
Simon Tatham 8cb52a26e1 BUG_SSH2_DERIVEKEY is apparently only present in SSH 2.0.11 and
before, not in 2.0.13. Verified on at least one host. Fixes bug
`ssh2-keyderive-nonbug'.

[originally from svn r2342]
2002-12-18 10:06:38 +00:00
Simon Tatham 801832bf59 `Leonid' points out a stupid mistake in MD5 HMAC initialisation: we
should initialise _both_ MD5 states, not the same one twice.

[originally from svn r2341]
2002-12-18 09:54:55 +00:00
Simon Tatham 29b0705961 logeventf()'s first argument is ssh, not ssh->frontend! This is what
I get for making the latter a `void *' - type checking deserts me in
my hour of need. Should fix Andrey Borzenkov's bug.

[originally from svn r2340]
2002-12-18 09:47:20 +00:00
Jacob Nevins 368ee4856b Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
window.c:90: warning: `do_mouse_wheel_msg' declared `static' but never defined
Introduced in 1.185 [r1499]. This function doesn't appear to ever have
existed.

[originally from svn r2334]
[r1499 == d6016149bf]
2002-12-15 13:31:58 +00:00
Jacob Nevins c399f8381f Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
psftp.c: In function `sftp_cmd_chmod':
  psftp.c:835: warning: too many arguments for format

[originally from svn r2333]
2002-12-15 13:25:24 +00:00
Jacob Nevins 6f5012dfa6 Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
plink.c:65: warning: `password' defined but not used
(introduced in 1.50 [r1525])

[originally from svn r2332]
[r1525 == 466b1c82d5]
2002-12-15 13:23:13 +00:00
Jacob Nevins e891f79c12 Fixing trivial warnings spotted by Mingw-2.0.0/gcc-3.2:
plink.c: In function `from_backend':
  plink.c:172: warning: unused variable `h'
(introduced in 1.35 [r1198])

[originally from svn r2331]
[r1198 == c87fa98d09]
2002-12-15 13:19:59 +00:00
Jacob Nevins 414b896aaf From Greg Prosser: Apparently using "MS Shell Dlg" instead of "MS Sans Serif"
in resource files interoperates better with WinXP (enabling font smoothing
and improving display of password boxes). I've verified that it's harmless
on Win95.

[originally from svn r2329]
2002-12-15 12:44:21 +00:00
Jacob Nevins 23a2fb17d8 faq-rh8-utf8: Problems with Red Hat 8.0 and UTF-8
[originally from svn r2327]
2002-12-15 11:51:21 +00:00
Ben Harris 875d7c351e Remove an unnecessary "{Includes}" from the example Rez command.
[originally from svn r2317]
2002-12-13 00:50:53 +00:00
Ben Harris 8abe8187f7 Provide a full set of small application icons for PuTTY, now equipped with
small lightning flashes too.

[originally from svn r2316]
2002-12-13 00:45:08 +00:00
Ben Harris 93f12a008d Use the Unicode Converter to convert from Unicode to the display encoding
if it's available.  Linking against the static Unicode Converter library
costs us about 30k on Classic 68K, which I can live with.

Because the default fallback converter can generate multiple output
characters for a single input character, we provide our own fallback that
doesn't.  It converts everything to '?' instead.

[originally from svn r2315]
2002-12-13 00:02:48 +00:00
Ben Harris c6bbb682a3 When loading a string setting, expect in the same form we would have
saved (raw text rather than Pascal string).

[originally from svn r2314]
2002-12-12 23:55:51 +00:00
Ben Harris 5b4947e590 Add some documentation for the Mac port.
[originally from svn r2305]
2002-12-11 18:34:49 +00:00
Jacob Nevins 93c1b22f0d IPv4/IPv6 sense problem in SOCKS5 proxying spotted by Andrey Borzenkov --
recent change.

[originally from svn r2301]
2002-12-10 10:19:51 +00:00
Ben Harris 8ff26fd9e5 Since PuTTY depends on lots of features of System 7, have it bale out if
it finds itself running on anything older.  This is better than killing the
whole system with an umimplemented trap.

[originally from svn r2300]
2002-12-10 01:11:40 +00:00
Ben Harris d78a0aacc0 When resizing the window, redraw the grow box as well as the scroll bar.
I wasn't noticing the bug on my system, since the Appearance Manager handles
the grow box itself when it's present.

[originally from svn r2299]
2002-12-09 23:26:52 +00:00
Ben Harris 05456758c4 Update the non-Color Quickdraw code in pre_paint() to match recent changes
to the Color Quickdraw code.  This makes redraw work properly on old Macs
again.

[originally from svn r2298]
2002-12-09 22:49:56 +00:00
Ben Harris e06e554830 Oops. When deciding which attributes are interesting, we want the union of
all the screens' capabilites, not the intersection.

[originally from svn r2297]
2002-12-08 22:23:08 +00:00
Ben Harris 65b8dd1501 Remove a stray prototype for mac_set_attr_mask().
[originally from svn r2296]
2002-12-08 22:15:10 +00:00