Simon Tatham
d5240d4157
Make memory management uniform: _everything_ now goes through the
...
smalloc() macros and thence to the safemalloc() functions in misc.c.
This should allow me to plug in a debugging allocator and track
memory leaks and segfaults and things.
[originally from svn r818]
2000-12-12 10:33:13 +00:00
Simon Tatham
8eca227b92
Improve SSH2 host key abstraction into a generic `signing key'
...
abstraction, so as to be able to re-use the same abstraction for
user authentication keys and probably in the SSH2 agent (when that
happens) as well.
[originally from svn r815]
2000-12-02 12:48:15 +00:00
Simon Tatham
6bdd92be5f
Fix bugtraq 1949: server could open an agent forwarding channel even
...
if agent forwarding had not been negotiated on, and more
particularly even if it had been deliberately disabled by the user.
[originally from svn r814]
2000-12-02 11:43:25 +00:00
Simon Tatham
b9c07ac266
Prevent wildcards in source specs from matching . or ..
...
[originally from svn r813]
2000-11-30 21:35:28 +00:00
Simon Tatham
d75f3687fb
Correct pointer types in new clipme function
...
[originally from svn r812]
2000-11-24 22:27:51 +00:00
Simon Tatham
9147f68fb6
Ron Kuris's "copy everything to clipboard" patch
...
[originally from svn r808]
2000-11-21 19:28:25 +00:00
Simon Tatham
f7aec0aa10
Patch from Robert de Bath: increase timer resolution.
...
[originally from svn r807]
2000-11-21 19:00:32 +00:00
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