]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
21 years agoSHA512_Core_Init() and SHA512_Block() are unused outside this file. Make
Ben Harris [Sun, 5 Jan 2003 23:34:00 +0000 (23:34 +0000)]
SHA512_Core_Init() and SHA512_Block() are unused outside this file.  Make
them static.

[originally from svn r2484]

21 years agorsa2_sign() is unused outside this file. Make it static.
Ben Harris [Sun, 5 Jan 2003 23:32:19 +0000 (23:32 +0000)]
rsa2_sign() is unused outside this file.  Make it static.

[originally from svn r2483]

21 years agorandom_stir() is unused outside this file. Make it static.
Ben Harris [Sun, 5 Jan 2003 23:30:48 +0000 (23:30 +0000)]
random_stir() is unused outside this file.  Make it static.
Include putty.h to get prototypes for random_init() and random_get_savedata().

[originally from svn r2482]

21 years agoMove prototypes for base64_decode_atom(), base64_lines(), and base64_encode()
Ben Harris [Sun, 5 Jan 2003 23:28:02 +0000 (23:28 +0000)]
Move prototypes for base64_decode_atom(), base64_lines(), and base64_encode()
from import.c to ssh.h, so that the implementation can see them.  This
necessitates ssh.h's including <stdio.h>.
Also remove a spare prototype for base64_encode_atom() from import.c.

[originally from svn r2481]

21 years agodss_sign() is unused outside this file. Make it static.
Ben Harris [Sun, 5 Jan 2003 23:14:04 +0000 (23:14 +0000)]
dss_sign() is unused outside this file.  Make it static.

[originally from svn r2480]

21 years agodes_key_setup(), des_encipher(), and des_decipher() are unreferenced outside
Ben Harris [Sun, 5 Jan 2003 23:12:58 +0000 (23:12 +0000)]
des_key_setup(), des_encipher(), and des_decipher() are unreferenced outside
this file.  Make them static.

[originally from svn r2479]

21 years agoInclude ssh.h for the crc32() and crc32_update() prototypes.
Ben Harris [Sun, 5 Jan 2003 23:09:53 +0000 (23:09 +0000)]
Include ssh.h for the crc32() and crc32_update() prototypes.

[originally from svn r2478]

21 years agobigdivmod() is unreferenced outside this file. Make it static.
Ben Harris [Sun, 5 Jan 2003 23:05:49 +0000 (23:05 +0000)]
bigdivmod() is unreferenced outside this file.  Make it static.
diagbn() is unreferenced.  #if it out.

[originally from svn r2477]

21 years agoaes_setup() is unused outside this file. Make it static.
Ben Harris [Sun, 5 Jan 2003 23:03:02 +0000 (23:03 +0000)]
aes_setup() is unused outside this file.  Make it static.

[originally from svn r2476]

21 years agoMake ssh1_pkt_type(), ssh2_pkt_type, logeventf(), setup_userpass_input(),
Ben Harris [Sun, 5 Jan 2003 23:01:43 +0000 (23:01 +0000)]
Make ssh1_pkt_type(), ssh2_pkt_type, logeventf(), setup_userpass_input(),
process_userpass_input(), and ssh_unthrottle() static, since they're not
referenced outside this file.

[originally from svn r2475]

21 years agoMove x11fwd and portfwd prototypes from ssh.c into ssh.h so they can be seen
Ben Harris [Sun, 5 Jan 2003 22:53:23 +0000 (22:53 +0000)]
Move x11fwd and portfwd prototypes from ssh.c into ssh.h so they can be seen
by (and checked against) the definitions.

[originally from svn r2474]

21 years agoSC in "finding an actual bug" shocker! Set the port number before passing
Ben Harris [Sun, 5 Jan 2003 22:52:11 +0000 (22:52 +0000)]
SC in "finding an actual bug" shocker!  Set the port number before passing
it to name_lookup().

[originally from svn r2473]

21 years agosshsha.c and sshmd5.c compile fine on PowerPC now.
Ben Harris [Sun, 5 Jan 2003 15:31:45 +0000 (15:31 +0000)]
sshsha.c and sshmd5.c compile fine on PowerPC now.

[originally from svn r2471]

21 years agoMake SHA_Core_Init() (only used in this file) static.
Ben Harris [Sun, 5 Jan 2003 15:31:09 +0000 (15:31 +0000)]
Make SHA_Core_Init() (only used in this file) static.

[originally from svn r2470]

21 years agoMake MD5_Core_Init and MD5_Block (both only referenced in this file) static.
Ben Harris [Sun, 5 Jan 2003 15:29:22 +0000 (15:29 +0000)]
Make MD5_Core_Init and MD5_Block (both only referenced in this file) static.

[originally from svn r2469]

21 years ago"possible unintended assignment"? I think not.
Ben Harris [Sun, 5 Jan 2003 14:23:30 +0000 (14:23 +0000)]
"possible unintended assignment"?  I think not.

[originally from svn r2468]

21 years agochar * vs unsigned char * (by explicit cast).
Ben Harris [Sun, 5 Jan 2003 14:20:49 +0000 (14:20 +0000)]
char * vs unsigned char * (by explicit cast).

[originally from svn r2467]

21 years agoCommas at the end of enumerator lists aren't allowed.
Ben Harris [Sun, 5 Jan 2003 14:18:00 +0000 (14:18 +0000)]
Commas at the end of enumerator lists aren't allowed.

[originally from svn r2466]

21 years agoEliminate more unsigned char * vs char * errors using explicit casts.
Ben Harris [Sun, 5 Jan 2003 14:14:51 +0000 (14:14 +0000)]
Eliminate more unsigned char * vs char * errors using explicit casts.

[originally from svn r2465]

21 years agoFix more unsigned char * vs char * warnings, usually by making implicit
Ben Harris [Sun, 5 Jan 2003 14:11:14 +0000 (14:11 +0000)]
Fix more unsigned char * vs char * warnings, usually by making implicit
casts explicit.

[originally from svn r2464]

21 years agoReplace implict char-*-to-unsigned-char-* casts with explicit ones.
Ben Harris [Sun, 5 Jan 2003 14:00:16 +0000 (14:00 +0000)]
Replace implict char-*-to-unsigned-char-* casts with explicit ones.

[originally from svn r2463]

21 years agoSC (Apple's 68K C compiler) seems to treat tentative definitions of complete
Ben Harris [Sun, 5 Jan 2003 13:57:09 +0000 (13:57 +0000)]
SC (Apple's 68K C compiler) seems to treat tentative definitions of complete
arrya as full definitions, and hence gets upset when it finds a full definition
later.  This is a bug (see K&R2 A10.2), but an easy one to work around by
making the tentative definitions incomplete, so I've done that.

[originally from svn r2462]

21 years agoDeal with "possible unintended assignment" warnings.
Ben Harris [Sun, 5 Jan 2003 13:46:13 +0000 (13:46 +0000)]
Deal with "possible unintended assignment" warnings.

[originally from svn r2461]

21 years agoAttack char * vs unsigned char * conversions. In most cases, I've just
Ben Harris [Sun, 5 Jan 2003 13:43:02 +0000 (13:43 +0000)]
Attack char * vs unsigned char * conversions.  In most cases, I've just
gone for replacing the implicit casts with explicit ones.  Where there was
something obviously better that I could do, I've done it, though.

[originally from svn r2460]

21 years agoFix more "possible unintended assignment" warnings.
Ben Harris [Sun, 5 Jan 2003 13:04:04 +0000 (13:04 +0000)]
Fix more "possible unintended assignment" warnings.

[originally from svn r2459]

21 years agoAdd reception support for MacTCP. Now I can log in over TELNET, just about.
Ben Harris [Sun, 5 Jan 2003 12:53:38 +0000 (12:53 +0000)]
Add reception support for MacTCP.  Now I can log in over TELNET, just about.
There are still lots of things to fix, like urgent data or the fact that
everything seems to happen one keypress too late, but this is an important
milestone.

[originally from svn r2458]

21 years agoWhen looking for the correct backend to use, look in the configuration
Ben Harris [Sun, 5 Jan 2003 11:31:51 +0000 (11:31 +0000)]
When looking for the correct backend to use, look in the configuration
structure for the session, not the almost-dead global cfg.

[originally from svn r2457]

21 years agoSecond work-in-progress MacTCP commit. We can now open a connection, but
Ben Harris [Sun, 5 Jan 2003 10:52:56 +0000 (10:52 +0000)]
Second work-in-progress MacTCP commit.  We can now open a connection, but
not transfer any data across it.

[originally from svn r2456]

21 years agoAdd some backends, a network interface and some library routines to the
Ben Harris [Sun, 5 Jan 2003 00:06:25 +0000 (00:06 +0000)]
Add some backends, a network interface and some library routines to the
Mac port.

[originally from svn r2453]

21 years agoBeginnings of a MacTCP network layer. This has all of the DNS interface
Ben Harris [Sat, 4 Jan 2003 19:51:20 +0000 (19:51 +0000)]
Beginnings of a MacTCP network layer.  This has all of the DNS interface
present, including stuff to find and load the MacTCP DNR.  Actually making
a TCP connection is still unimplemented, though, and much testing remains
to be done.

[originally from svn r2452]

21 years agoAdd a vsnprintf() for the Mac, which doesn't have one of its own. This is
Ben Harris [Sat, 4 Jan 2003 19:01:45 +0000 (19:01 +0000)]
Add a vsnprintf() for the Mac, which doesn't have one of its own.  This is
the NetBSD kernel printf, which is integer-only and under a Berkeley-style
(now 3-clause) copyright owned by UCB.  This has only been compile-tested,
but almost all of my changes were in the definitions at the top (the exception
being to remove tty output).  This lacks 64-bit support because the Apple
68K C compiler, SC, lacks it too.

[originally from svn r2451]

21 years agoProvide a version of stricmp() and strnicmp() for Mac OS, which doesn't have
Ben Harris [Sat, 4 Jan 2003 17:24:49 +0000 (17:24 +0000)]
Provide a version of stricmp() and strnicmp() for Mac OS, which doesn't have
its own.  These are from NetBSD's libc, and have a standard (now 3-clause)
Berkeley licence.

Also provide a definition of DWORD and a better definition of BYTE.

[originally from svn r2449]

21 years agoFix some char * vs unsigned char * conversions, plus a stylistic nit, both
Ben Harris [Sat, 4 Jan 2003 16:56:33 +0000 (16:56 +0000)]
Fix some char * vs unsigned char * conversions, plus a stylistic nit, both
courtesy of Apple's compilers.

[originally from svn r2448]

21 years agoHammer out some char * vs unsigned char * problems. In general, I've kept
Ben Harris [Sat, 4 Jan 2003 16:42:53 +0000 (16:42 +0000)]
Hammer out some char * vs unsigned char * problems.  In general, I've kept
any buffers used internally by telnet.c as unsigned char, and cast to/from
char * when interacting with the rest of PuTTY.  Not actually tested, since
I'm some way from actually being able to link this yet.

Also clean up a couple of style warnings from Apple's compilers.

[originally from svn r2447]

21 years agoFix a few stylistic warnings from Apple's C compilers.
Ben Harris [Sat, 4 Jan 2003 16:21:17 +0000 (16:21 +0000)]
Fix a few stylistic warnings from Apple's C compilers.

[originally from svn r2446]

21 years ago<MacTypes.h> says we should use NULL rather than nil in C, so do that.
Ben Harris [Sat, 4 Jan 2003 12:45:11 +0000 (12:45 +0000)]
<MacTypes.h> says we should use NULL rather than nil in C, so do that.

[originally from svn r2444]

21 years agoRe-arrange the sums in the size tip code so as to ensure that we're always do
Ben Harris [Sat, 4 Jan 2003 00:48:13 +0000 (00:48 +0000)]
Re-arrange the sums in the size tip code so as to ensure that we're always do
division on positive numbers, hence avoiding nasty problems of rounding
towards zero when I wanted rounding down.

[originally from svn r2443]

21 years agoSmall simplification in mac_init().
Ben Harris [Sat, 4 Jan 2003 00:31:04 +0000 (00:31 +0000)]
Small simplification in mac_init().

[originally from svn r2442]

21 years agoCorrect handling of Mac OS 8.5 Window Manager and Control Manager. The new
Ben Harris [Sat, 4 Jan 2003 00:13:18 +0000 (00:13 +0000)]
Correct handling of Mac OS 8.5 Window Manager and Control Manager.  The new
functions turn out to be available only to PowerPC applications, through
WindowsLib and ControlsLib respectively, so we weak-link against those in
the obvious way.

[originally from svn r2441]

21 years agoWork around a weird bug in gdk_draw_text_wc().
Simon Tatham [Fri, 3 Jan 2003 17:52:51 +0000 (17:52 +0000)]
Work around a weird bug in gdk_draw_text_wc().

[originally from svn r2437]

21 years agoUpdate copyright notices that both Owen and Simon managed to miss.
Ben Harris [Fri, 3 Jan 2003 12:20:14 +0000 (12:20 +0000)]
Update copyright notices that both Owen and Simon managed to miss.
_How_ many copies of the licence do we need? *grin*

[originally from svn r2435]

21 years agoUpdate more copyright dates. Sometimes I think we ought to have an
Simon Tatham [Fri, 3 Jan 2003 10:59:53 +0000 (10:59 +0000)]
Update more copyright dates. Sometimes I think we ought to have an
automated means of doing this every year :-(

[originally from svn r2434]

21 years agoUpdate copyright dates
Owen Dunn [Fri, 3 Jan 2003 09:49:04 +0000 (09:49 +0000)]
Update copyright dates

[originally from svn r2433]

21 years agoPull in Script.r so we can use verBritain in the 'vers' resources rather
Ben Harris [Fri, 3 Jan 2003 00:40:52 +0000 (00:40 +0000)]
Pull in Script.r so we can use verBritain in the 'vers' resources rather
than hardcoding 2.

[originally from svn r2432]

21 years agoAny Mac that can handle CFM-68K code must have at least a 68020 CPU, and hence
Ben Harris [Thu, 2 Jan 2003 23:52:44 +0000 (23:52 +0000)]
Any Mac that can handle CFM-68K code must have at least a 68020 CPU, and hence
be equipped with Color QuickDraw, as are all PowerPC systems.  Hence, don't
bother with support for basic QuickDraw in the CFM-68K and PowerPC builds.

[originally from svn r2431]

21 years agoAdd a prototype for init_ucs().
Ben Harris [Thu, 2 Jan 2003 23:39:53 +0000 (23:39 +0000)]
Add a prototype for init_ucs().

[originally from svn r2430]

21 years agoHaving tested it, note that the Classic 68K build seems to work on Mac OS X
Ben Harris [Thu, 2 Jan 2003 18:09:21 +0000 (18:09 +0000)]
Having tested it, note that the Classic 68K build seems to work on Mac OS X
now.  Also describe more generally which builds work where.

[originally from svn r2429]

21 years ago... of course, that would be better still if I remembered to update
Simon Tatham [Thu, 2 Jan 2003 17:07:24 +0000 (17:07 +0000)]
... of course, that would be better still if I remembered to update
`nvalid'. Ahem.

[originally from svn r2428]

21 years agoA better solution to the problem of duplicated positions in
Simon Tatham [Thu, 2 Jan 2003 16:56:29 +0000 (16:56 +0000)]
A better solution to the problem of duplicated positions in
CS_ISO8859_1_X11: where two SBCS positions map to the same Unicode
code point, we now have a `sortpriority' hint which can tell
sbcsgen.pl which one it should preferentially generate when
converting back to SBCS.

[originally from svn r2427]

21 years agoCJK cleanups. Correct handling when the cursor is covering the
Simon Tatham [Thu, 2 Jan 2003 16:20:29 +0000 (16:20 +0000)]
CJK cleanups. Correct handling when the cursor is covering the
right-hand half of a CJK wide character; correct handling of cut and
paste when CJK text wraps between lines _irrespective of the parity
of the starting column_; correct handling of wordness values
irrespective of which half of a CJK character the user
double-clicked on; correct handling when any terminal activity
overwrites only one half of a CJK wide character. I think we now
behave marginally better than xterm in this respect (it has a redraw
problem when you overwrite the RH half of a CJK char), so I'm happy.
Also redefined the internal UCSWIDE marker to something in the
surrogate range, while I'm here, so that U+303F is available for use
by actual users.

[originally from svn r2426]

21 years agoFixes to direct-to-font mode: I'd inadvertently enabled it for any
Simon Tatham [Thu, 2 Jan 2003 16:17:56 +0000 (16:17 +0000)]
Fixes to direct-to-font mode: I'd inadvertently enabled it for any
font whose encoding comes up as CS_NONE - but this is also true for
iso10646-1 fonts, since libcharset doesn't support wide-character
encodings! Hence UTF-8 cut and paste was enabled in ordinary modes,
but disabled in UTF-8 mode, which was a bit embarrassing. Now we
have a dedicated flag variable indicating direct-to-font mode.

[originally from svn r2425]

21 years agoMention that Shift-Ins works here.
Ben Harris [Thu, 2 Jan 2003 14:23:36 +0000 (14:23 +0000)]
Mention that Shift-Ins works here.

[originally from svn r2424]

21 years agoFix `telnet-resize-iac'. (IAC bytes were not duplicated when they
Simon Tatham [Thu, 2 Jan 2003 11:14:35 +0000 (11:14 +0000)]
Fix `telnet-resize-iac'. (IAC bytes were not duplicated when they
occurred in a NAWS subnegotiation. Result: a terminal width or
height of 255 was not being correctly sent to the server.)

[originally from svn r2421]

21 years agoA couple of X forwarding fixes for Unix Plink. Firstly, under Unix
Simon Tatham [Thu, 2 Jan 2003 10:45:56 +0000 (10:45 +0000)]
A couple of X forwarding fixes for Unix Plink. Firstly, under Unix
the default X display should be whatever comes out of $DISPLAY,
rather than Windows's hardwired `localhost:0'. Secondly, this may
give rise to a display name without a hostname (`:0' or similar),
which we now need to be able to deal with. Of course, we still don't
_properly_ support X forwarding in Unix Plink, since we still can't
authenticate with the local display.

[originally from svn r2420]

21 years agoPropagate the screen number from a local X display to the remote
Simon Tatham [Thu, 2 Jan 2003 10:41:22 +0000 (10:41 +0000)]
Propagate the screen number from a local X display to the remote
forwarded one. Fixes `x11-default-screen'.

[originally from svn r2418]

21 years agosk_nonamelookup() should ensure the sockaddr it returns has `error'
Simon Tatham [Thu, 2 Jan 2003 10:07:50 +0000 (10:07 +0000)]
sk_nonamelookup() should ensure the sockaddr it returns has `error'
set to NULL. Otherwise it'll be random uninitialised goop. Not good.

[originally from svn r2416]

21 years agoPresence of unexpected characters in the proxy exclude list causes a
Simon Tatham [Thu, 2 Jan 2003 10:07:17 +0000 (10:07 +0000)]
Presence of unexpected characters in the proxy exclude list causes a
tight loop in proxy_for_destination(). Fixed.

[originally from svn r2415]

21 years agoIf for some reason do_text() fails to translate from Unicode to the font
Ben Harris [Thu, 2 Jan 2003 00:33:40 +0000 (00:33 +0000)]
If for some reason do_text() fails to translate from Unicode to the font
encoding, have it go through the rest of its motions with an empty string
anyway, so as to at least give a sensible empty box of the right colour.

If SetFallbackUnicodeToText() fails, switch over to using the charset
library, hence avoiding problems in do_text().

If the version of the Unicode Converter we're using doesn't understand about
interrupt-safe fallback functions, don't try to tell it we've got one.  This
prevents SetFallbackUnicodeToText() from failing on systems with old Unicode
Converters.

[originally from svn r2414]

21 years agoProper support for using the font's own character encoding. If we
Simon Tatham [Wed, 1 Jan 2003 22:25:25 +0000 (22:25 +0000)]
Proper support for using the font's own character encoding. If we
know what that encoding actually is, we can do our best to support
additional charsets (VT100 linedrawing, SCO ACS, UTF-8 mode) using
the available characters; if we don't, we fall back to a mode where
we disable all Unicode cut-and-paste and assume any Unicode
character is undisplayable.

[originally from svn r2413]

21 years agoSupport for double-width (CJK) characters, using the xterm-like
Simon Tatham [Wed, 1 Jan 2003 21:53:22 +0000 (21:53 +0000)]
Support for double-width (CJK) characters, using the xterm-like
options -fw and -fwb to specify wide and wide-bold fonts.

[originally from svn r2412]

21 years agoThe redirection operator I wanted was >>, not >.
Ben Harris [Wed, 1 Jan 2003 20:28:52 +0000 (20:28 +0000)]
The redirection operator I wanted was >>, not >.

[originally from svn r2411]

21 years agoIgnore .rsrc files.
Ben Harris [Wed, 1 Jan 2003 20:26:55 +0000 (20:26 +0000)]
Ignore .rsrc files.

[originally from svn r2410]

21 years agoAdd a mechanism for determining which charset to use for a given Mac OS font,
Ben Harris [Wed, 1 Jan 2003 19:51:13 +0000 (19:51 +0000)]
Add a mechanism for determining which charset to use for a given Mac OS font,
and use it.

[originally from svn r2409]

21 years agoHaving painstakingly generated those reverse mapping tables in
Simon Tatham [Wed, 1 Jan 2003 17:03:27 +0000 (17:03 +0000)]
Having painstakingly generated those reverse mapping tables in
sbcsdat.c, it would seem a shame not to actually use them. Ahem.
Thanks to Ben, without whose checkin in this area I'd have forgotten
completely :-)

[originally from svn r2404]

21 years agoAdd all the Mac OS simple single-byte character sets from ftp.unicode.org.
Ben Harris [Wed, 1 Jan 2003 16:24:01 +0000 (16:24 +0000)]
Add all the Mac OS simple single-byte character sets from ftp.unicode.org.
Also add the older variants described there, and the character set used by
the "VT100" font (old and new).

Since RFC 1345 defines "macintosh" to refer to the currency-sign variant
of Mac OS Roman, update our table to match.

[originally from svn r2403]

21 years agoRemove a couple of unnecessary casts that my compiler seems to have taken
Ben Harris [Wed, 1 Jan 2003 11:45:43 +0000 (11:45 +0000)]
Remove a couple of unnecessary casts that my compiler seems to have taken
exception to.

[originally from svn r2402]

21 years agoUse the shiny new character-set library to handle conversion from Unicode
Ben Harris [Tue, 31 Dec 2002 22:49:03 +0000 (22:49 +0000)]
Use the shiny new character-set library to handle conversion from Unicode
to Mac OS Roman for display if the Unicode Converter isn't around.  Support
for Mac character sets other than Roman (e.g. the variant used by the Apple
VT100 font) is still absent.

[originally from svn r2401]

21 years agoAdd "-notOnce" to the compiler options on the Mac to stop the compiler
Ben Harris [Tue, 31 Dec 2002 22:40:38 +0000 (22:40 +0000)]
Add "-notOnce" to the compiler options on the Mac to stop the compiler
assuming that duplicate #includes of the same file are idempotent.  I mean,
it's not even true for the standard headers (think <assert.h>), and
certainly isn't true here.

[originally from svn r2400]

21 years agoI have no idea what Simon thought he was doing casting what was once a
Ben Harris [Tue, 31 Dec 2002 22:37:27 +0000 (22:37 +0000)]
I have no idea what Simon thought he was doing casting what was once a
struct sbcs_data * (first element an array of unsigned long) into a
wchar_t *, but I think it's reasonably safe to assume that it was a
mistake.

[originally from svn r2399]

21 years agoAdd internal prototypes to keep my compiler from complaining.
Ben Harris [Tue, 31 Dec 2002 21:12:29 +0000 (21:12 +0000)]
Add internal prototypes to keep my compiler from complaining.

[originally from svn r2398]

21 years agoAdd a small comment explaining my failure to find any way to get QuickDraw
Ben Harris [Tue, 31 Dec 2002 20:11:38 +0000 (20:11 +0000)]
Add a small comment explaining my failure to find any way to get QuickDraw
to give me the missing-character glyph for a font.
While I'm here, change the character we substitute for unmappable ones
to '.', since that's what the charset library uses.

[originally from svn r2397]

21 years agoBetter, I think, to avoid mapping 0x00 -> U+0020 in the X11
Simon Tatham [Tue, 31 Dec 2002 15:42:07 +0000 (15:42 +0000)]
Better, I think, to avoid mapping 0x00 -> U+0020 in the X11
nonstandard font encoding. 0x20 maps to it, so it's not as if it's
in short supply.

[originally from svn r2396]

21 years agoFirst draft of Unicode support in pterm. It's pretty complete: it
Simon Tatham [Tue, 31 Dec 2002 12:20:34 +0000 (12:20 +0000)]
First draft of Unicode support in pterm. It's pretty complete: it
does UTF-8 copy and paste (falling back to normal strings if
necessary), it understands X font encodings and translates things
accordingly so that if you have a Unicode font you can ask for
virtually any single-byte encoding and get it (Mac-Roman pterm,
anyone?), and so on. There's work left to be done (wide fonts for
CJK spring to mind), but I reckon this is a pretty good start.

[originally from svn r2395]

21 years agoSCO ACS part 2 (ESC[12m) apparently puts the top half of CP437 into
Simon Tatham [Tue, 31 Dec 2002 11:03:23 +0000 (11:03 +0000)]
SCO ACS part 2 (ESC[12m) apparently puts the top half of CP437 into
_both_ halves of the character set, rather than flipping the two
halves. My source for this is linux/drivers/char/console.c.

[originally from svn r2394]

21 years agoDimitrie Paun's patch for Winelib support. Actually does nothing
Simon Tatham [Tue, 31 Dec 2002 10:04:35 +0000 (10:04 +0000)]
Dimitrie Paun's patch for Winelib support. Actually does nothing
except add a couple of commented-out lines to Makefile.cyg; the
Winelib user must uncomment them to do the compilation.

[originally from svn r2393]

21 years agoAdd a minimalist settings dialogue, which contains a single button
Ben Harris [Tue, 31 Dec 2002 01:40:14 +0000 (01:40 +0000)]
Add a minimalist settings dialogue, which contains a single button
marked "open".  Still, it seems to work.

[originally from svn r2392]

21 years agoRemove mentions of files and functions that no longer exist.
Ben Harris [Mon, 30 Dec 2002 23:33:13 +0000 (23:33 +0000)]
Remove mentions of files and functions that no longer exist.

[originally from svn r2391]

21 years agoNo need to compile resources manually now.
Ben Harris [Mon, 30 Dec 2002 23:15:46 +0000 (23:15 +0000)]
No need to compile resources manually now.

[originally from svn r2390]

21 years agoAdd support for compiling 'vers' resources into Mac applications. This is
Ben Harris [Mon, 30 Dec 2002 23:14:11 +0000 (23:14 +0000)]
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]

21 years agoSet the default directory to somewhere useful (the PuTTY saved sessions
Ben Harris [Mon, 30 Dec 2002 19:01:44 +0000 (19:01 +0000)]
Set the default directory to somewhere useful (the PuTTY saved sessions
folder) when we start up.

[originally from svn r2388]

21 years agoAdd an "open" command to the "file" (now "session") menu on the Mac to
Ben Harris [Mon, 30 Dec 2002 18:21:17 +0000 (18:21 +0000)]
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]

21 years agoRemove a spurious reference to a variable I've removed.
Ben Harris [Mon, 30 Dec 2002 15:41:52 +0000 (15:41 +0000)]
Remove a spurious reference to a variable I've removed.

[originally from svn r2386]

21 years agoFinally add support for building Mac resource forks. This adds a new kind
Ben Harris [Mon, 30 Dec 2002 14:20:25 +0000 (14:20 +0000)]
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]

21 years agoAdd spaces to system include lines to that mkfiles.pl doesn't try to
Ben Harris [Mon, 30 Dec 2002 14:17:51 +0000 (14:17 +0000)]
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]

21 years agoMore cleanup to Mac build procedures, notably:
Ben Harris [Mon, 30 Dec 2002 13:43:19 +0000 (13:43 +0000)]
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]

21 years agoAdd various files produced by the build system.
Ben Harris [Sun, 29 Dec 2002 19:19:10 +0000 (19:19 +0000)]
Add various files produced by the build system.

[originally from svn r2382]

21 years agoDon't try to call TerminateUnicodeConverter() in the CFM world: it isn't there.
Ben Harris [Sun, 29 Dec 2002 19:14:56 +0000 (19:14 +0000)]
Don't try to call TerminateUnicodeConverter() in the CFM world: it isn't there.

[originally from svn r2381]

21 years agoBrutally simplify out all the junk that MPW left here when it first wrote this
Ben Harris [Sun, 29 Dec 2002 19:11:40 +0000 (19:11 +0000)]
Brutally simplify out all the junk that MPW left here when it first wrote this
file.

[originally from svn r2380]

21 years agoAdd support for building a CFM-68K version of PuTTY, which is rather smaller
Ben Harris [Sun, 29 Dec 2002 19:01:33 +0000 (19:01 +0000)]
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]

21 years agoSubstantial overhaul of Mac build system. We now have working PowerPC builds,
Ben Harris [Sun, 29 Dec 2002 15:44:15 +0000 (15:44 +0000)]
Substantial overhaul of Mac build system.  We now have working PowerPC builds,
and optimisation (for size) enabled.

[originally from svn r2378]

21 years agoPut prototypes for the functions exported by wcwidth.c in putty.h, and remove
Ben Harris [Sun, 29 Dec 2002 15:08:27 +0000 (15:08 +0000)]
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]

21 years agoMake resizeline() and lineptr() static and give them prototypes.
Ben Harris [Sun, 29 Dec 2002 14:47:01 +0000 (14:47 +0000)]
Make resizeline() and lineptr() static and give them prototypes.

[originally from svn r2376]

21 years agoUse the "far" versions of all libraries for which they seem to exist.
Ben Harris [Sun, 29 Dec 2002 13:41:38 +0000 (13:41 +0000)]
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]

21 years agoAdd some pragmas so that Mac compilers know that fatalbox() and
Ben Harris [Sun, 29 Dec 2002 13:21:12 +0000 (13:21 +0000)]
Add some pragmas so that Mac compilers know that fatalbox() and
modalfatalbox() don't return.

[originally from svn r2374]

21 years agoIt would be better if I deleted the unused variable from the correct function.
Ben Harris [Sat, 28 Dec 2002 22:44:27 +0000 (22:44 +0000)]
It would be better if I deleted the unused variable from the correct function.

[originally from svn r2373]

21 years agoRemove more unused variables.
Ben Harris [Sat, 28 Dec 2002 22:25:31 +0000 (22:25 +0000)]
Remove more unused variables.

[originally from svn r2372]

21 years agoDispose of some unused local variables.
Ben Harris [Sat, 28 Dec 2002 22:22:43 +0000 (22:22 +0000)]
Dispose of some unused local variables.

[originally from svn r2371]

21 years agoThe current version of SC generates warnings for unused parameters just
Ben Harris [Sat, 28 Dec 2002 22:17:51 +0000 (22:17 +0000)]
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]

21 years agoMention in the documentation that the method of generating RSA keys
Simon Tatham [Fri, 27 Dec 2002 16:54:14 +0000 (16:54 +0000)]
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]

21 years agoMove the stderr output of event log messages in verbose mode to the
Simon Tatham [Thu, 19 Dec 2002 14:24:28 +0000 (14:24 +0000)]
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]