1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00
Commit Graph

1120 Commits

Author SHA1 Message Date
Simon Tatham
7a3c5f57b5 Patch from Robert de Bath: blank the saved-session name edit box
when loading `Default Settings'.

[originally from svn r806]
2000-11-21 19:00:11 +00:00
Simon Tatham
664de6a1a8 Oops - and if we generate link maps, "make clean" should remove them too
[originally from svn r805]
2000-11-21 11:14:57 +00:00
Simon Tatham
f2d5eb542a Add link map files to Makefile, in case people send crash dumps
[originally from svn r804]
2000-11-21 11:13:27 +00:00
Simon Tatham
d094883d3c Fix segfault when you press a key before the SSH protocol decides whether
it's doing SSH1 or SSH2. Only visible on slow servers :-)

[originally from svn r803]
2000-11-21 10:53:10 +00:00
Simon Tatham
0ff0fad344 Improve comment so I don't misunderstand when I come back to this :-)
[originally from svn r802]
2000-11-16 10:47:59 +00:00
Simon Tatham
7ac98ae071 Use a Miller-Rabin test instead of a Fermat test; add comments
[originally from svn r801]
2000-11-15 15:03:17 +00:00
Simon Tatham
694fd2eedf Fix another silly segfault
[originally from svn r800]
2000-11-15 11:13:22 +00:00
Simon Tatham
8c0c31a0e9 Software invocation of the System menu now pops up the actual menu, rather
than just putting the window into the state where Down will do so

[originally from svn r793]
2000-11-07 17:50:59 +00:00
Simon Tatham
462063cdc5 Implement Zlib compression, in both SSH1 and SSH2.
[originally from svn r792]
2000-11-01 21:34:21 +00:00
Simon Tatham
84077ea5ee Move dprintf and the debug system out into misc.c, to centralise it.
Saves binary space and also allows redirection of debug statements
to a file `debug.log'.

[originally from svn r791]
2000-11-01 19:54:46 +00:00
Simon Tatham
6928fbb1e3 Back off a bit of that vulnerability fix, which was breaking `pscp
host:wildcard* .' and suchlike.

[originally from svn r790]
2000-10-31 09:29:05 +00:00
Simon Tatham
a739876719 Fix side-effect of Always On Top patch: any reconfiguring in mid-session
was zapping the window to the top left corner of the screen

[originally from svn r780]
2000-10-30 10:39:10 +00:00
Simon Tatham
21299d2c39 Reset compose state to zero when PuTTY window gains focus
[originally from svn r779]
2000-10-30 10:16:32 +00:00
Simon Tatham
2cc663cafb Couple of fixes for pscp's GUI interface mode
[originally from svn r778]
2000-10-30 09:54:10 +00:00
Simon Tatham
091acb4e06 Add support for Always On Top. Patch due to Janes "Ender" Brown.
[originally from svn r773]
2000-10-27 09:46:04 +00:00
Simon Tatham
696400a672 Stop the "Sent username %s" message coming up twice in pscp -v
[originally from svn r772]
2000-10-27 09:24:32 +00:00
Simon Tatham
2c9c817895 Misc bugfixes
[originally from svn r771]
2000-10-27 09:17:19 +00:00
Simon Tatham
eab981fbd1 Format SSH2_MSG_DISCONNECT correctly (with reason code, reason
string, and language tag).

[originally from svn r770]
2000-10-26 13:10:47 +00:00
Simon Tatham
8fff1e4821 Fix a segfault (addr->error was unpredictable following a dotted-dec lookup)
[originally from svn r768]
2000-10-26 08:25:43 +00:00
Simon Tatham
5f73cf092f Impose a lower limit of 256 on key lengths. This is mostly because
the primegen() function doesn't work well with <100 bits, so RSA
keys need to be >=200 to be generated correctly, and I thought 256
was a nice round number beyond that just to be sure. Perhaps I
should also have a security warning on any key less than 768; or
perhaps I should let people shoot themselves in the feet if they
really want to.

[originally from svn r767]
2000-10-25 14:29:28 +00:00
Simon Tatham
fc63ad0046 Gaaah, I might have known. Split combined app cursor / app keypad
disablement option into two options so the app cursor keys and app
keypad can be controlled separately. The Pedantic Software Award in
this case goes to the Midnight Commander for its egregious failure
to just use the terminal in Perfectly Normal mode.

[originally from svn r766]
2000-10-25 14:20:47 +00:00
Simon Tatham
4aafc6e5c3 Be more sure that state->collecting_entropy can't be spuriously set
[originally from svn r765]
2000-10-25 10:25:10 +00:00
Simon Tatham
9e6dc1faa1 Fix control ID bug causing rogue Appearance title bars in other panels
[originally from svn r764]
2000-10-25 08:23:41 +00:00
Simon Tatham
f9cf0d70b7 Reintroduce random_stir()
[originally from svn r763]
2000-10-25 06:59:25 +00:00
Simon Tatham
38e7de3372 Enhance Diffie-Hellman implementation to use bignum_cmp
[originally from svn r762]
2000-10-25 06:57:36 +00:00
Simon Tatham
809bd81d5c Fix another bignum formatting problem. This one hit Diffie-Hellmann
[originally from svn r761]
2000-10-24 21:43:39 +00:00
Simon Tatham
fc9b38ed01 Add configurable option to disable application keypad/cursor keys totally
[originally from svn r760]
2000-10-24 13:49:23 +00:00
Simon Tatham
779069ccd3 Add a couple of ellipses in system menu
[originally from svn r759]
2000-10-24 13:40:19 +00:00
Simon Tatham
8f7a1e30f7 Remove a rogue diagnostic
[originally from svn r758]
2000-10-24 13:39:21 +00:00
Simon Tatham
ea0d42801a Add the Appearance panel and reorganise things a bit
[originally from svn r757]
2000-10-24 13:38:27 +00:00
Simon Tatham
372a4e1e7e Fix failure to re-enable local line discipline when TELOPT_ECHO is
turned _back off_ by the remote server. (server sends WONT)

[originally from svn r756]
2000-10-24 11:16:25 +00:00
Simon Tatham
384eeb3f76 Fix miscellaneous compiler warnings. Thanks to Jacob Nevins
[originally from svn r755]
2000-10-24 10:47:49 +00:00
Simon Tatham
5ff9cc2f1f SSH2 connections weren't closing cleanly after socket revamp. Fixed.
[originally from svn r754]
2000-10-24 09:55:45 +00:00
Simon Tatham
039103ff5d Window resizing wasn't working in SSH2
[originally from svn r753]
2000-10-24 09:49:03 +00:00
Simon Tatham
e51b4da9f7 Make the frankly ridiculous prototypes for modpow() and modmul() more sane
[originally from svn r752]
2000-10-23 16:11:31 +00:00
Simon Tatham
bf2744aabf Update DSS implementation to use new bignum routines
[originally from svn r751]
2000-10-23 16:03:21 +00:00
Simon Tatham
36156d858c Improved entropy gathering.
[originally from svn r750]
2000-10-23 15:20:05 +00:00
Simon Tatham
43304f1fca Fix a bug which was causing occasional failed-host-key-check
messages. Also left some diagnostics in, under #if 0, so that next
time this happens it'll be easier to debug.

[originally from svn r749]
2000-10-23 15:18:37 +00:00
Simon Tatham
b5c41a473b Oops. A field like `sending_oob' in the Socket structure really
deserves to be initialised to something sane at creation time.

[originally from svn r748]
2000-10-23 12:31:54 +00:00
Simon Tatham
d0635e9d39 Plink and PSCP were failing to load the `Default Settings' options
when connecting to an arbitrary hostname. In particular, setting a
default user name didn't work. Now it does.

[originally from svn r747]
2000-10-23 12:20:53 +00:00
Simon Tatham
5d27e5775c Remove the NO_SECURITY define I accidentally copied from Pageant
[originally from svn r746]
2000-10-23 11:57:41 +00:00
Simon Tatham
988c1974ea Created a shiny new abstraction for the socket handling. Has many
advantages:
 - protocol modules can call sk_write() without having to worry
   about writes blocking, because blocking writes are handled in the
   abstraction layer and retried later.
 - `Lost connection while sending' is a thing of the past.
 - <winsock.h> is no longer needed in most modules, because
   "putty.h" doesn't have to declare `SOCKET' variables any more,
   only the abstracted `Socket' type.
 - select()-equivalent between multiple sockets will now be handled
   sensibly, which opens the way for things like SSH port
   forwarding.

[originally from svn r745]
2000-10-23 11:55:11 +00:00
Simon Tatham
bbbda4110b Created a shiny new abstraction for the socket handling. Has many
advantages:
 - protocol modules can call sk_write() without having to worry
   about writes blocking, because blocking writes are handled in the
   abstraction layer and retried later.
 - `Lost connection while sending' is a thing of the past.
 - <winsock.h> is no longer needed in most modules, because
   "putty.h" doesn't have to declare `SOCKET' variables any more,
   only the abstracted `Socket' type.
 - select()-equivalent between multiple sockets will now be handled
   sensibly, which opens the way for things like SSH port
   forwarding.

[originally from svn r744]
2000-10-23 10:32:37 +00:00
Simon Tatham
882f653081 Ooh. Actually, that vulnerability is further-reaching than I
thought. As well as the ".." attack in recursive copies, the name
sent by the client was also trusted in a single-file implicit-
destination copy such as "pscp host:foo .". (The result was ./foo,
where foo is what the server claimed the file was rather than what
the user asked for. I think it's not unreasonable that if the user
requests file `foo' from the host, he should get the result in a
file called `foo' no matter what the host thinks.)

[originally from svn r743]
2000-10-21 17:52:54 +00:00
Simon Tatham
b78c5699d1 Fix a potential vulnerability in incoming `pscp -r'. The server
sends filenames of things in the directory being copied. A malicious
server could have sent, for example, "..\..\windows\system\foo.dll"
and overwritten something crucial. The filenames are now vetted to
ensure they don't contain slashes or backslashes.

[originally from svn r742]
2000-10-21 17:36:44 +00:00
Simon Tatham
6eb613e3c4 Three new configurable options:
- Robert de Bath's Compose key is now off by default and configurable on
 - The ages-old controversy over whether ALT by itself should bring the
   System menu up is now controllable by a config option
 - You can now independently configure whether scrollback resets on a
   keypress _and_ whether it resets on screen activity.

[originally from svn r741]
2000-10-21 16:30:58 +00:00
Simon Tatham
77c8e3c17c Chinese support patch from zmx@cdpa.nsysu.edu.tw
[originally from svn r740]
2000-10-20 18:36:15 +00:00
Simon Tatham
964e6407e1 Remember to close key files when rsakey_encrypted meets a bogus one
[originally from svn r739]
2000-10-20 17:57:47 +00:00
Simon Tatham
17cea8353f Put back the code that ensures "Default Settings" is always in the
session list even if it isn't in the Registry. This got deleted
overenthusiastically because I didn't have a comment explaining what
it was doing there. Now there's a comment, so I probably won't
remove it again.

[originally from svn r733]
2000-10-20 15:20:53 +00:00
Simon Tatham
51b05a4438 Rename "Stored Sessions" to "Saved Sessions" for consistency
[originally from svn r732]
2000-10-20 15:09:56 +00:00