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
Simon Tatham
f3b5bddd32
Fix `disconnect': arrange that we keep track of when we're expecting
...
to see the server slam the TCP connection shut (i.e. almost never,
unless it's just sent us an SSH_MSG_DISCONNECT), and treat an
unexpected closure as a non-clean session termination. Previously
any server-initiated connection closure was being treated as a clean
exit, which was a hangover from the good old Telnet-only days.
[originally from svn r5098]
[this svn revision also touched putty-wishlist]
2005-01-11 19:33:41 +00:00
Ben Harris
95368801d3
Versions of OpenSSH before 2.5.4 kill the connection if the client attempts
...
to rekey. Extend the description of SSH2_BUG_REKEY to cover this situation
and apply it to the relevant OpenSSH versions.
[originally from svn r5097]
2005-01-11 16:33:08 +00:00
Simon Tatham
d5de8eacab
Bah, I left a rogue event log entry lying around.
...
[originally from svn r5095]
2005-01-11 15:33:35 +00:00
Ben Harris
a16d64ee49
Sun_SSH_1.0.1 also has BUG_SSH2_REKEY.
...
[originally from svn r5094]
2005-01-11 13:24:47 +00:00
Simon Tatham
a29dea954c
The Unix `make install' target now allows you to define UTMP_GROUP,
...
in which case pterm will be installed setgid that, or to define
UTMP_USER in which case it will be installed setuid that. If you
define neither, it will be installed without any set-id bits as
before.
[originally from svn r5093]
2005-01-11 10:45:43 +00:00
Simon Tatham
e7b53c3ad5
Servers announcing themselves as `Sun_SSH_1.0' apparently cannot
...
deal with rekeys at all: they totally ignore mid-session KEXINIT
sent by the client. Hence, a new bug entry so we don't try it.
[originally from svn r5092]
2005-01-11 10:37:55 +00:00
Simon Tatham
378dbbb06b
sk_namelookup() on Unix was failing to translate from our platform-
...
independent ADDRTYPE_* constants to real AF_* ones, causing explicit
protocol specification to fail.
[originally from svn r5089]
2005-01-09 14:55:55 +00:00
Owen Dunn
ea218e4d2c
Remove unwanted underscore.
...
[originally from svn r5088]
2005-01-09 14:45:00 +00:00
Owen Dunn
06434ffc71
New function ltime() returns a struct tm of the current local time.
...
Fixes crashes when time() returns (time_t)-1 on Windows by using the
Win32 GetLocalTime() function. (The Unix implementation still just
uses time() and localtime().)
[originally from svn r5086]
2005-01-09 14:27:48 +00:00
Simon Tatham
3669401216
Having laboriously constructed a hints parameter for getaddrinfo, it
...
would help to _use_ it!
[originally from svn r5085]
2005-01-09 11:58:36 +00:00