Ben Harris
5d90fd4d1d
Remove code for splatting test data into new terminals, since we can do
...
that over real network connections now.
[originally from svn r2549]
2003-01-12 01:25:34 +00:00
Ben Harris
139271a71a
Change error handling to store the error number rather than the string,
...
and to convert to a string only on demand. This makes it possible to have
the string contain the error number if we don't recognise it.
[originally from svn r2548]
2003-01-12 01:24:03 +00:00
Ben Harris
f9300b0011
Initial import of Owen's OpenTransport interface. It doesn't work yet, but
...
it does compile and link.
[originally from svn r2547]
2003-01-11 23:33:57 +00:00
Ben Harris
4818639014
Add an indirection layer between mtcpnet.c and the rest of PuTTY so that
...
we can have runtime switching between MacTCP and OpenTransport, and so
that we can cope if there's no TCP/IP stack available at all (albeit with
very little functionality at present).
[originally from svn r2546]
2003-01-11 19:43:59 +00:00
Ben Harris
2506a26ab4
Calling plug_closing() is highly likely to result in a call to sk_close(),
...
so arrange that mactcp_poll() can cope with that and not access freed memory
when it happens.
[originally from svn r2545]
2003-01-11 17:36:24 +00:00
Ben Harris
cd79a89c11
When polling MacTCP connections, check the connection state and if the far
...
end has sent a FIN pass that up to the plug.
TODO: handle less graceful connection closures.
[originally from svn r2544]
2003-01-11 17:31:59 +00:00
Ben Harris
3aec19fa72
Move the prototype for platform_get_x11_auth() from x11fwd.c to ssh.h so that
...
it can be checked against the implementation.
[originally from svn r2542]
2003-01-11 14:20:00 +00:00
Ben Harris
8adae8f2ff
Add a cast for a char * vs unsigned char * conflict.
...
[originally from svn r2541]
2003-01-11 14:08:46 +00:00
Ben Harris
0ea918fb3a
const fallout from Simon's X forwarding changes.
...
[originally from svn r2540]
2003-01-11 14:08:07 +00:00
Simon Tatham
ee54789b25
Yet _another_ `received data for nonexistent channel' bug. This time
...
it was because we received WINDOW_ADJUST on a channel we'd already
sent CLOSE on, and reflexively attempted to continue sending the
buffered data in response. Should now be fixed.
[originally from svn r2539]
2003-01-11 10:05:29 +00:00
Simon Tatham
fda9983243
Hack around an oddity in X display names and xauth.
...
[originally from svn r2538]
2003-01-11 09:46:50 +00:00
Simon Tatham
87f9446a26
Support XDM-AUTHORIZATION-1 for connecting to local X servers. If
...
we're going to be a security program, we can at least make a token
effort to use the most secure local X auth available! And I'm still
half-tempted to see if I can support it for remote X servers too...
[originally from svn r2537]
2003-01-11 09:31:54 +00:00
Simon Tatham
86977efa81
Introduce framework for authenticating with the local X server.
...
Windows and Mac backends have acquired auth-finding functions which
do nothing; Unix backend has acquired one which actually works, so
Plink can now do X forwarding believably.
(This checkin stretches into some unlikely parts of the code because
there have been one or two knock-on effects involving `const'. Bah.)
[originally from svn r2536]
2003-01-10 18:33:35 +00:00
Ben Harris
2e8b94c8d4
Ask for a meaningful subject line on messages.
...
[originally from svn r2532]
2003-01-10 15:23:01 +00:00
Ben Harris
0d8ee2458a
Implement get_window_title().
...
[originally from svn r2525]
2003-01-09 23:29:22 +00:00
Ben Harris
c342678579
Forcibly close any TCP connections that are still open when PuTTY exits.
...
This saves leaving them lying around to crash the machine later.
[originally from svn r2524]
2003-01-09 23:04:34 +00:00
Ben Harris
34a96d4924
Use c2pstrcpy() rather than silly sprintf() tricks.
...
[originally from svn r2523]
2003-01-09 22:51:41 +00:00
Ben Harris
76a43ad512
c2pstr() is deprecated. Use c2pstrcpy() instead.
...
[originally from svn r2522]
2003-01-09 22:45:48 +00:00
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