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
Ben Harris
907a420878
Add some backends, a network interface and some library routines to the
...
Mac port.
[originally from svn r2453]
2003-01-05 00:06:25 +00:00
Ben Harris
ba15f25503
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]
2003-01-04 19:51:20 +00:00
Ben Harris
94b7de24f1
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]
2003-01-04 19:01:45 +00:00
Ben Harris
a952ead769
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]
2003-01-04 17:24:49 +00:00
Ben Harris
6796ffc082
Fix some char * vs unsigned char * conversions, plus a stylistic nit, both
...
courtesy of Apple's compilers.
[originally from svn r2448]
2003-01-04 16:56:33 +00:00
Ben Harris
1e158ceb91
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]
2003-01-04 16:42:53 +00:00
Ben Harris
f10bd67f3a
Fix a few stylistic warnings from Apple's C compilers.
...
[originally from svn r2446]
2003-01-04 16:21:17 +00:00
Ben Harris
e82053be5c
<MacTypes.h> says we should use NULL rather than nil in C, so do that.
...
[originally from svn r2444]
2003-01-04 12:45:11 +00:00
Ben Harris
e13dfa3562
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]
2003-01-04 00:48:13 +00:00
Ben Harris
7c40e3434d
Small simplification in mac_init().
...
[originally from svn r2442]
2003-01-04 00:31:04 +00:00
Ben Harris
561029bfdf
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]
2003-01-04 00:13:18 +00:00
Simon Tatham
106bf20b35
Work around a weird bug in gdk_draw_text_wc().
...
[originally from svn r2437]
2003-01-03 17:52:51 +00:00
Ben Harris
0a6e82b4dd
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]
2003-01-03 12:20:14 +00:00
Simon Tatham
d13a41a5f1
Update more copyright dates. Sometimes I think we ought to have an
...
automated means of doing this every year :-(
[originally from svn r2434]
2003-01-03 10:59:53 +00:00
Owen Dunn
5b05ee09f3
Update copyright dates
...
[originally from svn r2433]
2003-01-03 09:49:04 +00:00
Ben Harris
8af9c0a745
Pull in Script.r so we can use verBritain in the 'vers' resources rather
...
than hardcoding 2.
[originally from svn r2432]
2003-01-03 00:40:52 +00:00
Ben Harris
375185cf9f
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]
2003-01-02 23:52:44 +00:00
Ben Harris
44a1e7fff2
Add a prototype for init_ucs().
...
[originally from svn r2430]
2003-01-02 23:39:53 +00:00
Ben Harris
19ed21b98a
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]
2003-01-02 18:09:21 +00:00