1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00
Commit Graph

2438 Commits

Author SHA1 Message Date
Jacob Nevins
162398e55e Comment explaining location in top-level directory.
[originally from svn r5270]
2005-02-07 15:23:45 +00:00
Jacob Nevins
0259612237 Petri Kero pointed out a FreeLibrary() call that should be guarded by NO_IPV6.
[originally from svn r5268]
2005-02-07 12:23:10 +00:00
Owen Dunn
3fa46caeb8 Add a comment about the deficiencies of the host key cache implementation.
[originally from svn r5263]
2005-02-07 10:47:48 +00:00
Simon Tatham
471624882b Reinstate the broken -e option in pterm. Also I've just worked out a
much better way of handling pty_argv which doesn't require uxpty.c
to be linked in to Unix PuTTY and PuTTYtel.

[originally from svn r5262]
2005-02-06 15:52:00 +00:00
Simon Tatham
f5442209d4 Encapsulated most of the pty backend's variables into a proper data
structure, in preparation for wanting more than one of them in a
single process. This can't be done cleanly, because the whole
business with pty_pre_init pre-allocating the pty rather assumes we
want a known number of the things before we drop privileges; so
there's a horrid hack to make pty_pre_init work on platforms that
have at most one pty instance per process, but at the same time
things ought to work sensibly with more than one per process _if_
pty_pre_init isn't required.

[originally from svn r5261]
2005-02-06 15:14:34 +00:00
Owen Dunn
d13ac1bc34 First stab at a host key cache on the Mac.
[originally from svn r5260]
2005-02-06 15:00:36 +00:00
Simon Tatham
3fb9e2326d The pty backend won't _always_ be running under X, so it should be
possible to compile it without the WINDOWID variable.

[originally from svn r5259]
2005-02-06 13:33:41 +00:00
Simon Tatham
fd961b398a When allocating BSD-style ptys, we should not be satisfied with a
/dev/ptyXX we can open: we must also check that we can open and use
the corresponding /dev/ttyXX, because if it's been left in the wrong
mode then we will look terribly silly when we fork and _then_
discover our pty is unusable.

[originally from svn r5257]
2005-02-05 15:33:36 +00:00
Owen Dunn
0eb1e5df8d Implement refreshing the whole dialogue box with dlg_refresh, so that
if you load a session all the panels in the configuration dialogue
reflect the new settings.  However, there's a glitch which paints a white
rectangle between the Saved Sessions listbox and the Close-on-exit radios.

[originally from svn r5256]
2005-02-05 14:50:42 +00:00
Simon Tatham
c3dce77780 Added a small shell script to run enough SetFile commands to make
MPW builds work after checking out on Mac OS X.

[originally from svn r5255]
2005-02-05 14:46:39 +00:00
Simon Tatham
17f484ae66 This file needs to have CR line endings for MPW to be happy with it.
[originally from svn r5254]
2005-02-05 14:39:22 +00:00
Simon Tatham
0c90b55556 Mac PuTTY.ppc wouldn't compile for me until I added this prototype.
Not sure why it's been working for Owen and not me, but the
prototype ought to be there anyway, so *shrug*.

[originally from svn r5251]
2005-02-05 10:55:09 +00:00
Owen Dunn
45700b21e8 Times and dates in the event log, fixing ltime() in the process.
[originally from svn r5250]
2005-02-05 00:29:20 +00:00
Owen Dunn
061cfb7ef3 mac_pollterm() is no longer useful and can be retired.
[originally from svn r5249]
2005-02-05 00:14:24 +00:00
Ben Harris
b69e9d0781 Implement anti-replay protection for XDM-AUTHORIZATION-1, as required by
the specification.  We keep a cache of tickets we've seen recently and 
reject duplicates.  Once a ticket in our cache is old enough that we
wouldn't accept a duplicate anyway, we expire it.

[originally from svn r5236]
2005-02-02 23:51:58 +00:00
Owen Dunn
76231a5c98 Flashing things now work as a natural consequence of the timing interface.
[originally from svn r5235]
2005-02-02 21:33:13 +00:00
Owen Dunn
19e5743976 Make ot_recv less voracious.
[originally from svn r5234]
2005-02-02 21:18:39 +00:00
Owen Dunn
00c57c6bc5 Update the configuration when the window is resized.
[originally from svn r5233]
2005-02-02 19:56:29 +00:00
Owen Dunn
ea225b5889 Hide/show the scrollbar
[originally from svn r5230]
2005-01-30 14:59:47 +00:00
Owen Dunn
bb787c53fb The HI guidelines seem adamant that the File menu should never be called
anything but File, and two Mac users expressed profound distress at the
thought of it being called Session.  File it is.

[originally from svn r5229]
2005-01-30 14:10:05 +00:00
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