Owen Dunn
a057db9fee
Another compiler pickiness. It feels wrong to be doing this to
...
perfectly idiomatic code, somehow, and I half wonder whether the
Mac compilers are too stupid to be allowed to treat warnings as
errors.
[originally from svn r5228]
2005-01-29 22:50:18 +00:00
Owen Dunn
72cce92fa7
Make Change Settings do something.
...
[originally from svn r5227]
2005-01-29 22:46:43 +00:00
Owen Dunn
13de3f2357
Enable the Open Transport networking implementation unless NO_OT is defined.
...
[originally from svn r5224]
2005-01-28 23:39:38 +00:00
Ben Harris
e12b2dcb71
Split discussion of diabling rekeys between time-based and data-based, since
...
disabling the former is much more useful, and much safer, than disabling the
latter. The new wording on data-based rekeys might need some polishing.
[originally from svn r5222]
2005-01-28 13:47:37 +00:00
Owen Dunn
871fb84047
sfree the memory dupprintf allocated
...
[originally from svn r5221]
2005-01-28 11:50:56 +00:00
Ben Harris
3d44cb23c8
Use AF_UNIX, not AF_LOCAL, since the former is in POSIX and the latter is not.
...
[originally from svn r5220]
2005-01-28 11:47:33 +00:00
Ben Harris
865fbaa8ce
Overhaul of client-side XDM-AUTHORIZATION-1:
...
* Make sk_getxdmdata() return an arbitrary string rather than two integers.
This better matches the spec, even if the current version always returns
six bytes
* On Unix, for PF_UNIX sockets, return a counter rather than a constant along
with the PID. This should allow multiple clients to connect within one
second, and is what Xlib does.
* On Unix, interpret AF_INET6 addresses like Xlib does, returning the
embedded IPv4 address for v4-mapped addresses, and six bytes of zeroes
otherwise. The latter is silly, but if I'm going to do anything more sane
I need to check that X servers won't reject it.
[originally from svn r5219]
2005-01-28 11:39:45 +00:00
Ben Harris
5e35aa383a
Buffer overruns are embarassing (even if caused by user error), so assert
...
that this one can't happen until I actually fix it.
[originally from svn r5217]
2005-01-26 23:49:56 +00:00
Owen Dunn
2374544eb3
Add a Change Settings dialogue box. Doesn't do anything yet.
...
[originally from svn r5216]
2005-01-26 23:30:34 +00:00
Ben Harris
3f725a56ef
Move sockaddr_is_loopback() to before sk_address_is_local(), and define the
...
latter in terms of the former. Also adjust the definition of
ipv4_is_loopback() to avoid using the non-standard inet_netof() and
IN_LOOPBACKNET, and move it next to its remaining uses.
[originally from svn r5215]
2005-01-26 20:18:33 +00:00
Owen Dunn
fc0d87aa1d
Move sk_poll() inside (!gotevent), which is more logical but doesn't have
...
any actual beneficial effect on event handling, sadly.
[originally from svn r5214]
2005-01-26 19:05:50 +00:00
Owen Dunn
09dae8d5dc
Add ssh.h for prototypes for the X display stubs
...
[originally from svn r5213]
2005-01-26 19:04:42 +00:00
Owen Dunn
71e3ce0498
Make a few things static
...
[originally from svn r5212]
2005-01-26 18:11:28 +00:00
Owen Dunn
f8dfe9717c
Give the config window a title.
...
[originally from svn r5181]
2005-01-23 15:01:21 +00:00
Ben Harris
15e7d71f39
When checking if a connection comes from localhost, don't assume it's an IPv4
...
connection. Instead, correctly check IPv4 and IPv6 connections, assume that
AF_LOCAL is always local, and anything else is always remote.
This makes trivial local-to-remote forwarding work on my system.
[originally from svn r5180]
2005-01-23 14:31:08 +00:00
Ben Harris
11bc6185ec
Don't abuse a remote channel number of (unsigned)(-1) to indicate a channel
...
for which we don't yet have a remote number, and instead add a flag to indicate
this fact. Fixes bug ssh-remoteid-minusone.
[originally from svn r5171]
2005-01-22 16:06:21 +00:00
Ben Harris
30fae9ffcb
When calling getaddrinfo() for a listening socket, pass in a suggested type
...
of SOCK_STREAM, since that's what we'll be using.
[originally from svn r5170]
2005-01-22 15:32:10 +00:00
Ben Harris
a54961fe87
Stupid typo, spotted by GCC.
...
[originally from svn r5168]
2005-01-22 15:20:35 +00:00
Ben Harris
258a87361a
If getaddrinfo() fails, it's not safe to dereference the struct addrinfo* it
...
passes back to us, so don't.
[originally from svn r5167]
2005-01-22 15:19:21 +00:00
Simon Tatham
31133eb077
Owen's just pointed out that random_stir() is capable of recursion.
...
I'm sure I didn't mean that to happen! Added a lock to stop it.
[originally from svn r5166]
2005-01-22 14:51:29 +00:00
Ben Harris
9f8182ffd7
Explicitly ignore SCI rather than translating it into DECID. Should fix
...
bug sci-is-not-decid.
[originally from svn r5164]
2005-01-22 14:01:01 +00:00
Ben Harris
5140b67435
Probable support for first_kex_packet_follows in KEXINIT. Not significantly
...
tested since none of the common key-exchange protocols starts with a packet
from the server, so I don't have a server that implements this.
[originally from svn r5162]
2005-01-22 13:32:41 +00:00
Owen Dunn
c29e61381a
Colours now work properly, including 256-colour stuff.
...
Timing stuff now there, but almost certainly bogus.
[originally from svn r5160]
2005-01-21 00:02:59 +00:00
Ben Harris
961319c14c
Dispose of a variable whose only use was being set to zero.
...
[originally from svn r5156]
2005-01-20 21:45:42 +00:00
Owen Dunn
eb4bb72cc6
Fix/bludgeon Mac compile wrinkles.
...
[originally from svn r5154]
2005-01-20 16:42:25 +00:00
Ben Harris
37278b3bfc
Add an assertion so that short-rsa2-key-crash at least avoids segfaulting
...
while we come up with a better solution.
[originally from svn r5146]
2005-01-19 23:30:38 +00:00
Ben Harris
f1a22fb3cb
While we're here, pad USERAUTH_INFO_RESPONSEs to 256 bytes too.
...
[originally from svn r5145]
2005-01-19 17:41:21 +00:00
Ben Harris
e94042612f
Make the outgoing SSH2 sequence number unsigned, so as to avoid depending
...
on overflow behaviour of signed integers.
[originally from svn r5142]
2005-01-19 12:34:52 +00:00
Simon Tatham
b4b415e546
Add a lengthy comment warning future front-end implementors about
...
the right and wrong way to implement the timing interface.
[originally from svn r5137]
2005-01-19 10:07:58 +00:00
Owen Dunn
75008d9da0
Bits and pieces, mostly stubs, for the Mac port.
...
[originally from svn r5136]
2005-01-18 22:01:25 +00:00
Owen Dunn
9318800643
Yes we do mean assignment. Bah.
...
[originally from svn r5135]
2005-01-18 19:09:02 +00:00
Owen Dunn
cd58af8938
The terminal reengineering of r4609 left an unused `start' lying around.
...
Remove it.
[originally from svn r5134]
[r4609 == 709a94e5f2
]
2005-01-18 19:04:59 +00:00
Owen Dunn
7e19075103
ssh_pkt_getstring wants a boring int rather than an unsigned int. Let's
...
give it one.
[originally from svn r5129]
2005-01-18 09:38:58 +00:00
Ben Harris
d2b22cf1f6
Currentish ssh.com supports single-DES in SSH2 as "des-cbc@ssh.com". It
...
seems to be entirely the same as "des-cbc", so supporting it is trivial
and we may as well do so. If nothing else, it makes it clear whose fault
it is.
[originally from svn r5128]
2005-01-17 16:38:55 +00:00
Owen Dunn
8bd1aacec0
Change some function arguments to void * to placate picky compilers.
...
[originally from svn r5124]
2005-01-17 10:07:13 +00:00
Ben Harris
8a20515844
In SSH2, rather than sending an SSH_MSG_IGNORE after every password, just
...
pad the packet out to 256 bytes. Much simpler.
This leavs ssh2_pkt_defer() unused, so ifdef it out.
[originally from svn r5122]
2005-01-17 00:50:35 +00:00
Ben Harris
214e11a7fe
Be a little less enthusiastic about sending SSH_MSG_CHANNEL_WINDOW_ADJUST:
...
only send it when it will significantly increase the server's idea of our
window. This avoids the slew of one-byte WINDOW_ADJUSTs that an interactive
shell typically generates.
[originally from svn r5121]
2005-01-16 14:43:12 +00:00
Owen Dunn
a6614021ee
Mac SC compiler whinges about trailing commas in enums
...
[originally from svn r5120]
2005-01-16 14:33:43 +00:00
Simon Tatham
f70efc5cc6
Support for falling back through the list of addresses returned from
...
a DNS lookup, whether they're IPv4, v6 or a mixture of both.
[originally from svn r5119]
[this svn revision also touched putty-wishlist]
2005-01-16 14:29:34 +00:00
Ben Harris
0f754aac82
Make our SSH2 maximum packet size into a constant, since it's used in several
...
places.
[originally from svn r5118]
2005-01-16 14:14:59 +00:00
Simon Tatham
5e2305bdc9
Owen tells me the Mac compiler complains at a char / unsigned char
...
mismatch in the invocation of hmacmd5_key(). Do it properly with a
void * argument.
[originally from svn r5117]
2005-01-16 14:02:56 +00:00
Owen Dunn
76c2183709
Add minibidi to Mac PuTTY objects
...
[originally from svn r5116]
2005-01-16 13:40:36 +00:00
Simon Tatham
8167dfd406
Rewrite of Unix sk_newlistener() which should fix any possible
...
problems involving trying to bind an IPv6 socket to an IPv4 address.
[originally from svn r5115]
2005-01-16 12:37:19 +00:00
Ben Harris
178a66ea0f
Turn of ICRNL in the client tty when we're not in editing mode. This
...
means that we send literal CRs and let the remote pty layer work out what to
do with them, so that if it wants raw mode it can have it.
[originally from svn r5114]
2005-01-15 20:39:27 +00:00
Ben Harris
6b1afc2a68
FWHACK has been dead for years. Remove it from the Makefiles.
...
[originally from svn r5113]
2005-01-15 18:30:05 +00:00
Owen Dunn
97c851e77f
Fix prototypes for mactcp_new and ot_new.
...
[originally from svn r5112]
2005-01-15 17:28:44 +00:00
Owen Dunn
4be66f3a59
Throw away "./" in findfile so that the Mac makefile has valid paths.
...
[originally from svn r5111]
2005-01-15 17:16:48 +00:00
Ben Harris
b4f0ffc2bf
INADDR_NONE is nonstandard. Use (in_addr_t)(-1) instead.
...
[originally from svn r5109]
2005-01-14 19:28:18 +00:00
Ben Harris
2a37818026
Don't use GNUish pattern rules in the Unix Makefile, since they're not
...
supported by non-GNU makes. This allows the standard Solaris /usr/ccs/bin/make
to handle that Makefile.
[originally from svn r5108]
2005-01-14 12:26:38 +00:00
Ben Harris
a78e7271ee
Mention Cygwin/X as a potential X server, since it's free.
...
[originally from svn r5107]
2005-01-13 21:50:41 +00:00