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

1426 Коммитов

Автор SHA1 Сообщение Дата
Ben Harris 79cbd905e7 Take advantage of having control over the default font to do the job properly:
ask the system script what it's preferred monospaced font is, and use that
if possible.  Failing, that, try the Roman script system, and if that fails,
fall back to Monaco 9.

[originally from svn r2521]
2003-01-09 22:39:47 +00:00
Ben Harris 627566b1f6 Set PuTTY's canBackground flag so that it receives CPU time (to process
incoming data) while in the background.

[originally from svn r2520]
2003-01-09 19:27:29 +00:00
Ben Harris f11987f988 Install a notification procedure (ASR) on each TCP connection that wakes
PuTTY up when something happens.  This should allow it to receive data without
having to poll for it continuously.

[originally from svn r2519]
2003-01-09 19:26:39 +00:00
Simon Tatham 1604a192fe Remove the diagnostic added in rev 1.42 [r2288]; apparently it's all
true and WinSock _does_ occasionally send us netevent messages with
no socket for no reason. Ignore them when they appear.

[originally from svn r2518]
[r2288 == 3bb2e4568c]
2003-01-09 19:26:12 +00:00
Ben Harris cdec9c7870 Switching from -opt space to -opt time on 68K Macs only loses us about 2K
of disc space, and we need all the speed we can get, so do that.

[originally from svn r2517]
2003-01-09 19:24:02 +00:00
Simon Tatham 35cd654c75 Unix plink now catches SIGWINCH and propagates local terminal
resizes to the remote end.

[originally from svn r2515]
2003-01-09 18:28:01 +00:00
Simon Tatham f928707849 Support asynchronous connect() in Unix networking. Now a port
forwarding to a nonexistent host shouldn't hold up the rest of the
program.

[originally from svn r2514]
2003-01-09 18:14:24 +00:00
Simon Tatham 4d86f5979d I'm sick of all those #ifdefs in settings.c, and in any case plink
and pterm need at least one default setting to be _different_ (pterm
needs the default term type to be `xterm', while plink needs it to
be taken from $TERM). So here's a completely new alternative
mechanism for platform- and app-specific default settings. Ben will
probably want to check the integrity of the Mac port, since I've
fiddled with it without testing that it still compiles.

[originally from svn r2513]
2003-01-09 18:06:29 +00:00
Simon Tatham 10c1d43ac6 Yikes! Forgot to zero the password after SSH2 PW authentication.
[originally from svn r2512]
2003-01-09 17:33:49 +00:00
Ben Harris c601d72463 Add PuTTYtel binaries.
[originally from svn r2503]
2003-01-08 23:58:50 +00:00
Ben Harris f4384cb6c7 Rather useless entropy-collection functions for Mac OS. These need work.
[originally from svn r2502]
2003-01-08 23:56:48 +00:00
Ben Harris 63543733f6 The CFM-68K build isn't working at the moment (we blow past its global data
limit what with libcharset and the crypto stuff), so don't include it in
"all".

[originally from svn r2501]
2003-01-08 22:48:57 +00:00
Ben Harris 697794abbf Fairly major hackery to get SSH going on the Mac. Half the support
functions are only dummy stubs, but it's still minimally usable.  At
least, as long as you don't want to do anything complex like logging out.

[originally from svn r2500]
2003-01-08 22:46:12 +00:00
Simon Tatham 3d90359d10 We just got mailed a Dr Watson log which suggests I failed to
initialise term->paste_len during initialisation, and indeed looking
at the code confirms this. I'm puzzled as to why valgrind didn't
spot this in pterm, though, since it's all in cross-platform code!

[originally from svn r2494]
2003-01-08 09:15:56 +00:00
Ben Harris 40493b20ea Use '\012' as the end of the SSH banner line, not '\n'.
Mac compilers default to making '\n' == '\015'.

[originally from svn r2493]
2003-01-07 23:05:12 +00:00
Ben Harris bdd6633970 Initialise the "protocol" field of a new ssh_tag to NULL so Bad Things don't
happen if we try to type things before the SSH banner has been received.

[originally from svn r2492]
2003-01-07 22:45:12 +00:00
Ben Harris a261492e70 Move the various big tables to the start of the file to save mucking about
with ifdefs for specific compilers.

[originally from svn r2491]
2003-01-07 20:47:53 +00:00
Simon Tatham b527354246 Ahem. Now pterm actually uses wc_to_mb in a situation where it needs
to pass in a default character, it would help if wc_to_mb actually
_honoured_ the default-character parameter.

[originally from svn r2490]
2003-01-07 13:09:56 +00:00
Ben Harris db9edaf8c9 It looks like Visual C (or whatever the Windows snapshots are built with)
objects to incomplete static array declarations, which I introduced to work
around a bug in SC/MrC.  Use #ifdefs to decide whether to enable the workaround
or not.

[originally from svn r2488]
2003-01-06 21:46:56 +00:00
Ben Harris 8345377529 One usually includes .h files, not .c files. That explains why it was
taking so long to compile!

[originally from svn r2487]
2003-01-05 23:48:10 +00:00
Ben Harris 2f1e76e843 Include putty.h to get prototypes for exported functions.
[originally from svn r2486]
2003-01-05 23:38:11 +00:00
Ben Harris dd8c09eeba zlib_disable_compression() and zlib_huflookup() are unused outside this file.
Make them static.

[originally from svn r2485]
2003-01-05 23:36:53 +00:00
Ben Harris bffb61b5ad SHA512_Core_Init() and SHA512_Block() are unused outside this file. Make
them static.

[originally from svn r2484]
2003-01-05 23:34:00 +00:00
Ben Harris ce269ad024 rsa2_sign() is unused outside this file. Make it static.
[originally from svn r2483]
2003-01-05 23:32:19 +00:00
Ben Harris 4296e6b786 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]
2003-01-05 23:30:48 +00:00
Ben Harris a6c994ca94 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]
2003-01-05 23:28:02 +00:00
Ben Harris 9671370f14 dss_sign() is unused outside this file. Make it static.
[originally from svn r2480]
2003-01-05 23:14:04 +00:00
Ben Harris af6342ccf8 des_key_setup(), des_encipher(), and des_decipher() are unreferenced outside
this file.  Make them static.

[originally from svn r2479]
2003-01-05 23:12:58 +00:00
Ben Harris 2df3f92ffc Include ssh.h for the crc32() and crc32_update() prototypes.
[originally from svn r2478]
2003-01-05 23:09:53 +00:00
Ben Harris 8b3b85fc5b bigdivmod() is unreferenced outside this file. Make it static.
diagbn() is unreferenced.  #if it out.

[originally from svn r2477]
2003-01-05 23:05:49 +00:00
Ben Harris 014a402b9d aes_setup() is unused outside this file. Make it static.
[originally from svn r2476]
2003-01-05 23:03:02 +00:00
Ben Harris 88b1506298 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]
2003-01-05 23:01:43 +00:00
Ben Harris 3f055f22d8 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]
2003-01-05 22:53:23 +00:00
Ben Harris 1e9b54cb1f SC in "finding an actual bug" shocker! Set the port number before passing
it to name_lookup().

[originally from svn r2473]
2003-01-05 22:52:11 +00:00
Ben Harris dd39a1919d sshsha.c and sshmd5.c compile fine on PowerPC now.
[originally from svn r2471]
2003-01-05 15:31:45 +00:00
Ben Harris 2d86617f31 Make SHA_Core_Init() (only used in this file) static.
[originally from svn r2470]
2003-01-05 15:31:09 +00:00
Ben Harris 089030b296 Make MD5_Core_Init and MD5_Block (both only referenced in this file) static.
[originally from svn r2469]
2003-01-05 15:29:22 +00:00
Ben Harris f4e13ef19b "possible unintended assignment"? I think not.
[originally from svn r2468]
2003-01-05 14:23:30 +00:00
Ben Harris b9e913ab88 char * vs unsigned char * (by explicit cast).
[originally from svn r2467]
2003-01-05 14:20:49 +00:00
Ben Harris 78acf8edb8 Commas at the end of enumerator lists aren't allowed.
[originally from svn r2466]
2003-01-05 14:18:00 +00:00
Ben Harris ac6221c757 Eliminate more unsigned char * vs char * errors using explicit casts.
[originally from svn r2465]
2003-01-05 14:14:51 +00:00
Ben Harris 2af5d85989 Fix more unsigned char * vs char * warnings, usually by making implicit
casts explicit.

[originally from svn r2464]
2003-01-05 14:11:14 +00:00
Ben Harris 24d299bbe8 Replace implict char-*-to-unsigned-char-* casts with explicit ones.
[originally from svn r2463]
2003-01-05 14:00:16 +00:00
Ben Harris 0e086031b5 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]
2003-01-05 13:57:09 +00:00
Ben Harris 7c37547df8 Deal with "possible unintended assignment" warnings.
[originally from svn r2461]
2003-01-05 13:46:13 +00:00
Ben Harris b91ae87c78 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]
2003-01-05 13:43:02 +00:00
Ben Harris 913a9ff22c Fix more "possible unintended assignment" warnings.
[originally from svn r2459]
2003-01-05 13:04:04 +00:00
Ben Harris 30bff47c89 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]
2003-01-05 12:53:38 +00:00
Ben Harris a7ba273b5b 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]
2003-01-05 11:31:51 +00:00
Ben Harris ac85d9b8c9 Second work-in-progress MacTCP commit. We can now open a connection, but
not transfer any data across it.

[originally from svn r2456]
2003-01-05 10:52:56 +00:00