simon [Mon, 22 Jan 2001 13:32:05 +0000 (13:32 +0000)]
Update the file list in .cvsignore
git-svn-id: svn://svn.tartarus.org/sgt/putty@881
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Jan 2001 13:15:52 +0000 (13:15 +0000)]
Add a title to the Tunnels panel
git-svn-id: svn://svn.tartarus.org/sgt/putty@880
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Jan 2001 12:35:16 +0000 (12:35 +0000)]
Try the blindingly-obvious fix for the hidden-controls-are-still-
accessible GUI bug.
git-svn-id: svn://svn.tartarus.org/sgt/putty@879
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 22 Jan 2001 11:34:52 +0000 (11:34 +0000)]
Add X11 forwarding, mainly thanks to Andreas Schultz
git-svn-id: svn://svn.tartarus.org/sgt/putty@878
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 20 Jan 2001 11:00:07 +0000 (11:00 +0000)]
Make sure it's SSH, and not Rlogin, which gets omitted from the
PuTTYtel config box. Oops!
git-svn-id: svn://svn.tartarus.org/sgt/putty@877
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 19 Jan 2001 10:10:37 +0000 (10:10 +0000)]
Experimental Rlogin support, thanks to Delian Delchev. Local flow
control is unsupported, and server-to-client comms may fail for want
of working TCP Urgent.
git-svn-id: svn://svn.tartarus.org/sgt/putty@875
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 19 Jan 2001 09:01:50 +0000 (09:01 +0000)]
Keepalives are now in seconds not minutes
git-svn-id: svn://svn.tartarus.org/sgt/putty@874
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 18 Jan 2001 17:29:01 +0000 (17:29 +0000)]
Add a .cvsignore file
git-svn-id: svn://svn.tartarus.org/sgt/putty@873
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 17:25:58 +0000 (17:25 +0000)]
The `wrapnext' variable now states whether we _would_ wrap next
character if we were wrapping, not whether we _will_ wrap next
character. Makes for saner behaviour with vertical-line cursor and
also when changing autowrap mode while on rightmost column. Does
entail small behavioural changes to backspace and destructive-
backspace when in rightmost column with Auto Wrap off, but I don't
think they should be catastrophic, or indeed that there's a well
defined Right Behaviour.
git-svn-id: svn://svn.tartarus.org/sgt/putty@872
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 17:20:28 +0000 (17:20 +0000)]
Tidy up that latest checkin. PS_DOTTED is spelled PS_DOT and in any
case doesn't really cut it; we have to SetPixel every other one
manually because although PS_ALTERNATE exists it only works under
NT. Meanwhile, IDC_CURSTATIC was already used, for the cursor
_keys_. Duh.
git-svn-id: svn://svn.tartarus.org/sgt/putty@871
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 16:57:33 +0000 (16:57 +0000)]
Introduce alternative cursor shapes: underline, vertical line
git-svn-id: svn://svn.tartarus.org/sgt/putty@870
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 16:57:15 +0000 (16:57 +0000)]
Trivial fix for when the two directions select different encryption
algorithms
git-svn-id: svn://svn.tartarus.org/sgt/putty@869
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 16:33:26 +0000 (16:33 +0000)]
Further work on writing the manual
git-svn-id: svn://svn.tartarus.org/sgt/putty@868
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 12:46:50 +0000 (12:46 +0000)]
Continue writing documentation. Looks like a long job :-(
git-svn-id: svn://svn.tartarus.org/sgt/putty@867
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 17 Jan 2001 10:11:16 +0000 (10:11 +0000)]
Initial checkin of an outline for the PuTTY user manual.
git-svn-id: svn://svn.tartarus.org/sgt/putty@865
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 11 Jan 2001 13:19:11 +0000 (13:19 +0000)]
Remove rogue debug statement
git-svn-id: svn://svn.tartarus.org/sgt/putty@855
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 9 Jan 2001 17:25:06 +0000 (17:25 +0000)]
IPv4 numeric addresses were broken thanks to IPv6 patch
git-svn-id: svn://svn.tartarus.org/sgt/putty@854
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 9 Jan 2001 17:16:43 +0000 (17:16 +0000)]
Oops - accidentally undid rev 1.82 [r844]
git-svn-id: svn://svn.tartarus.org/sgt/putty@853
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 8 Jan 2001 16:28:21 +0000 (16:28 +0000)]
Enable explicit changing of the window title after session start
git-svn-id: svn://svn.tartarus.org/sgt/putty@852
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 8 Jan 2001 16:24:13 +0000 (16:24 +0000)]
Disable logging completely if the user selects Cancel when told the
file already exists
git-svn-id: svn://svn.tartarus.org/sgt/putty@851
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 8 Jan 2001 13:57:45 +0000 (13:57 +0000)]
Ensure ssh specials (EOF and PING) don't occur except in connection
states where they're meaningful. In case Plink misses an EOF by
attempting to send it before reaching SSH_STATE_SESSION, it is
buffered and sent later. PINGs can be sent during any part of the
initialisation phase _except_ before deciding whether to use
protocol 1 or 2.
git-svn-id: svn://svn.tartarus.org/sgt/putty@850
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 19:16:16 +0000 (19:16 +0000)]
Jeroen Massar's IPv6 patch. Disabled by default, for now.
git-svn-id: svn://svn.tartarus.org/sgt/putty@849
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 19:15:59 +0000 (19:15 +0000)]
Fix for spurious Space getting sent when alt_space and alt_only are
both set and you bring up the Sysmenu with an alt_space and dispatch
it with an alt_only. (The SYSKEYDOWN for alt_only is never received,
but we get the SYSKEYUP which PostMessages the space since it
expects to be triggering the _creation_ of a sysmenu. Solution: set
alt_state to 0 when an alt_space triggers a sysmenu, so that the
final SYSKEYUP will be seen as spurious, which it is. Perhaps we
could do this better.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@848
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 18:28:01 +0000 (18:28 +0000)]
Kestutis Kupciunas's Lithuanian-friendliness patch to TranslateKey
git-svn-id: svn://svn.tartarus.org/sgt/putty@847
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 18:24:59 +0000 (18:24 +0000)]
Improved session logging courtesy of Roman Pompejus
git-svn-id: svn://svn.tartarus.org/sgt/putty@846
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 17:18:24 +0000 (17:18 +0000)]
Squelch some spurious resize events.
git-svn-id: svn://svn.tartarus.org/sgt/putty@845
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 17:18:12 +0000 (17:18 +0000)]
Adam D Ligas's segfault: one form of connection closure was failing
to set SSH_STATE_CLOSED, causing subsequent resize events to go foom.
git-svn-id: svn://svn.tartarus.org/sgt/putty@844
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 16:38:35 +0000 (16:38 +0000)]
Oops - that do-we-need-to-resize-window check failed to spot font changes
git-svn-id: svn://svn.tartarus.org/sgt/putty@843
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 16:35:44 +0000 (16:35 +0000)]
Fix the System Caret so it really is invisible, and the right size
too.
git-svn-id: svn://svn.tartarus.org/sgt/putty@842
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 16:27:48 +0000 (16:27 +0000)]
`Change Settings' now behaves sensibly w.r.t. window size.
git-svn-id: svn://svn.tartarus.org/sgt/putty@841
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 15:27:19 +0000 (15:27 +0000)]
Turn a rogue malloc to smalloc
git-svn-id: svn://svn.tartarus.org/sgt/putty@840
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 15:12:20 +0000 (15:12 +0000)]
Apply `getservbyname' to the Port Number field in case it's
non-numeric. Patch due to Christian Biesinger.
git-svn-id: svn://svn.tartarus.org/sgt/putty@839
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 14:30:00 +0000 (14:30 +0000)]
AltGr should now work again even when Compose key disabled
git-svn-id: svn://svn.tartarus.org/sgt/putty@838
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 13:39:31 +0000 (13:39 +0000)]
Make the colour list failsafe. Patch due to Robert de Bath
git-svn-id: svn://svn.tartarus.org/sgt/putty@837
cda61777-01e9-0310-a592-
d414129be87e
simon [Sun, 7 Jan 2001 13:31:49 +0000 (13:31 +0000)]
Patch from Christian Biesinger: pscp guesses your Windows username by default
git-svn-id: svn://svn.tartarus.org/sgt/putty@836
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 18 Dec 2000 09:20:26 +0000 (09:20 +0000)]
Apply improved WinSock error handling to the few situations it still
hadn't been applied to.
git-svn-id: svn://svn.tartarus.org/sgt/putty@827
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 18 Dec 2000 09:20:08 +0000 (09:20 +0000)]
Attempt to get repeated key exchange working in SSH2. Still under
test - might not be 100%. I think it _ought_ to work though.
git-svn-id: svn://svn.tartarus.org/sgt/putty@826
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 12 Dec 2000 14:04:43 +0000 (14:04 +0000)]
Remove unnecessary printfs from Minefield
git-svn-id: svn://svn.tartarus.org/sgt/putty@822
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 12 Dec 2000 11:07:59 +0000 (11:07 +0000)]
Fix an intermittent segfault that prevented the new Zlib compression
from being very useful. (Thanks to Minefield for catching it.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@820
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 12 Dec 2000 10:57:34 +0000 (10:57 +0000)]
Added Minefield: an alternative memory allocator along the lines of
Electric Fence. Enable by compiling with /DMINEFIELD.
git-svn-id: svn://svn.tartarus.org/sgt/putty@819
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 12 Dec 2000 10:33:13 +0000 (10:33 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@818
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 2 Dec 2000 12:48:15 +0000 (12:48 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@815
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 2 Dec 2000 11:43:25 +0000 (11:43 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@814
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 30 Nov 2000 21:35:28 +0000 (21:35 +0000)]
Prevent wildcards in source specs from matching . or ..
git-svn-id: svn://svn.tartarus.org/sgt/putty@813
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 24 Nov 2000 22:27:51 +0000 (22:27 +0000)]
Correct pointer types in new clipme function
git-svn-id: svn://svn.tartarus.org/sgt/putty@812
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Nov 2000 19:28:25 +0000 (19:28 +0000)]
Ron Kuris's "copy everything to clipboard" patch
git-svn-id: svn://svn.tartarus.org/sgt/putty@808
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Nov 2000 19:00:32 +0000 (19:00 +0000)]
Patch from Robert de Bath: increase timer resolution.
git-svn-id: svn://svn.tartarus.org/sgt/putty@807
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Nov 2000 19:00:11 +0000 (19:00 +0000)]
Patch from Robert de Bath: blank the saved-session name edit box
when loading `Default Settings'.
git-svn-id: svn://svn.tartarus.org/sgt/putty@806
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Nov 2000 11:14:57 +0000 (11:14 +0000)]
Oops - and if we generate link maps, "make clean" should remove them too
git-svn-id: svn://svn.tartarus.org/sgt/putty@805
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Nov 2000 11:13:27 +0000 (11:13 +0000)]
Add link map files to Makefile, in case people send crash dumps
git-svn-id: svn://svn.tartarus.org/sgt/putty@804
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 21 Nov 2000 10:53:10 +0000 (10:53 +0000)]
Fix segfault when you press a key before the SSH protocol decides whether
it's doing SSH1 or SSH2. Only visible on slow servers :-)
git-svn-id: svn://svn.tartarus.org/sgt/putty@803
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 16 Nov 2000 10:47:59 +0000 (10:47 +0000)]
Improve comment so I don't misunderstand when I come back to this :-)
git-svn-id: svn://svn.tartarus.org/sgt/putty@802
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Nov 2000 15:03:17 +0000 (15:03 +0000)]
Use a Miller-Rabin test instead of a Fermat test; add comments
git-svn-id: svn://svn.tartarus.org/sgt/putty@801
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 15 Nov 2000 11:13:22 +0000 (11:13 +0000)]
Fix another silly segfault
git-svn-id: svn://svn.tartarus.org/sgt/putty@800
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 7 Nov 2000 17:50:59 +0000 (17:50 +0000)]
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
git-svn-id: svn://svn.tartarus.org/sgt/putty@793
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 1 Nov 2000 21:34:21 +0000 (21:34 +0000)]
Implement Zlib compression, in both SSH1 and SSH2.
git-svn-id: svn://svn.tartarus.org/sgt/putty@792
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 1 Nov 2000 19:54:46 +0000 (19:54 +0000)]
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'.
git-svn-id: svn://svn.tartarus.org/sgt/putty@791
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 31 Oct 2000 09:29:05 +0000 (09:29 +0000)]
Back off a bit of that vulnerability fix, which was breaking `pscp
host:wildcard* .' and suchlike.
git-svn-id: svn://svn.tartarus.org/sgt/putty@790
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 30 Oct 2000 10:39:10 +0000 (10:39 +0000)]
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
git-svn-id: svn://svn.tartarus.org/sgt/putty@780
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 30 Oct 2000 10:16:32 +0000 (10:16 +0000)]
Reset compose state to zero when PuTTY window gains focus
git-svn-id: svn://svn.tartarus.org/sgt/putty@779
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 30 Oct 2000 09:54:10 +0000 (09:54 +0000)]
Couple of fixes for pscp's GUI interface mode
git-svn-id: svn://svn.tartarus.org/sgt/putty@778
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 27 Oct 2000 09:46:04 +0000 (09:46 +0000)]
Add support for Always On Top. Patch due to Janes "Ender" Brown.
git-svn-id: svn://svn.tartarus.org/sgt/putty@773
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 27 Oct 2000 09:24:32 +0000 (09:24 +0000)]
Stop the "Sent username %s" message coming up twice in pscp -v
git-svn-id: svn://svn.tartarus.org/sgt/putty@772
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 27 Oct 2000 09:17:19 +0000 (09:17 +0000)]
Misc bugfixes
git-svn-id: svn://svn.tartarus.org/sgt/putty@771
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 26 Oct 2000 13:10:47 +0000 (13:10 +0000)]
Format SSH2_MSG_DISCONNECT correctly (with reason code, reason
string, and language tag).
git-svn-id: svn://svn.tartarus.org/sgt/putty@770
cda61777-01e9-0310-a592-
d414129be87e
simon [Thu, 26 Oct 2000 08:25:43 +0000 (08:25 +0000)]
Fix a segfault (addr->error was unpredictable following a dotted-dec lookup)
git-svn-id: svn://svn.tartarus.org/sgt/putty@768
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 25 Oct 2000 14:29:28 +0000 (14:29 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@767
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 25 Oct 2000 14:20:47 +0000 (14:20 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@766
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 25 Oct 2000 10:25:10 +0000 (10:25 +0000)]
Be more sure that state->collecting_entropy can't be spuriously set
git-svn-id: svn://svn.tartarus.org/sgt/putty@765
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 25 Oct 2000 08:23:41 +0000 (08:23 +0000)]
Fix control ID bug causing rogue Appearance title bars in other panels
git-svn-id: svn://svn.tartarus.org/sgt/putty@764
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 25 Oct 2000 06:59:25 +0000 (06:59 +0000)]
Reintroduce random_stir()
git-svn-id: svn://svn.tartarus.org/sgt/putty@763
cda61777-01e9-0310-a592-
d414129be87e
simon [Wed, 25 Oct 2000 06:57:36 +0000 (06:57 +0000)]
Enhance Diffie-Hellman implementation to use bignum_cmp
git-svn-id: svn://svn.tartarus.org/sgt/putty@762
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 21:43:39 +0000 (21:43 +0000)]
Fix another bignum formatting problem. This one hit Diffie-Hellmann
git-svn-id: svn://svn.tartarus.org/sgt/putty@761
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 13:49:23 +0000 (13:49 +0000)]
Add configurable option to disable application keypad/cursor keys totally
git-svn-id: svn://svn.tartarus.org/sgt/putty@760
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 13:40:19 +0000 (13:40 +0000)]
Add a couple of ellipses in system menu
git-svn-id: svn://svn.tartarus.org/sgt/putty@759
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 13:39:21 +0000 (13:39 +0000)]
Remove a rogue diagnostic
git-svn-id: svn://svn.tartarus.org/sgt/putty@758
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 13:38:27 +0000 (13:38 +0000)]
Add the Appearance panel and reorganise things a bit
git-svn-id: svn://svn.tartarus.org/sgt/putty@757
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 11:16:25 +0000 (11:16 +0000)]
Fix failure to re-enable local line discipline when TELOPT_ECHO is
turned _back off_ by the remote server. (server sends WONT)
git-svn-id: svn://svn.tartarus.org/sgt/putty@756
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 10:47:49 +0000 (10:47 +0000)]
Fix miscellaneous compiler warnings. Thanks to Jacob Nevins
git-svn-id: svn://svn.tartarus.org/sgt/putty@755
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 09:55:45 +0000 (09:55 +0000)]
SSH2 connections weren't closing cleanly after socket revamp. Fixed.
git-svn-id: svn://svn.tartarus.org/sgt/putty@754
cda61777-01e9-0310-a592-
d414129be87e
simon [Tue, 24 Oct 2000 09:49:03 +0000 (09:49 +0000)]
Window resizing wasn't working in SSH2
git-svn-id: svn://svn.tartarus.org/sgt/putty@753
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 16:11:31 +0000 (16:11 +0000)]
Make the frankly ridiculous prototypes for modpow() and modmul() more sane
git-svn-id: svn://svn.tartarus.org/sgt/putty@752
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 16:03:21 +0000 (16:03 +0000)]
Update DSS implementation to use new bignum routines
git-svn-id: svn://svn.tartarus.org/sgt/putty@751
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 15:20:05 +0000 (15:20 +0000)]
Improved entropy gathering.
git-svn-id: svn://svn.tartarus.org/sgt/putty@750
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 15:18:37 +0000 (15:18 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@749
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 12:31:54 +0000 (12:31 +0000)]
Oops. A field like `sending_oob' in the Socket structure really
deserves to be initialised to something sane at creation time.
git-svn-id: svn://svn.tartarus.org/sgt/putty@748
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 12:20:53 +0000 (12:20 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@747
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 11:57:41 +0000 (11:57 +0000)]
Remove the NO_SECURITY define I accidentally copied from Pageant
git-svn-id: svn://svn.tartarus.org/sgt/putty@746
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 11:55:11 +0000 (11:55 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@745
cda61777-01e9-0310-a592-
d414129be87e
simon [Mon, 23 Oct 2000 10:32:37 +0000 (10:32 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@744
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 21 Oct 2000 17:52:54 +0000 (17:52 +0000)]
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.)
git-svn-id: svn://svn.tartarus.org/sgt/putty@743
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 21 Oct 2000 17:36:44 +0000 (17:36 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@742
cda61777-01e9-0310-a592-
d414129be87e
simon [Sat, 21 Oct 2000 16:30:58 +0000 (16:30 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@741
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 18:36:15 +0000 (18:36 +0000)]
Chinese support patch from zmx@cdpa.nsysu.edu.tw
git-svn-id: svn://svn.tartarus.org/sgt/putty@740
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 17:57:47 +0000 (17:57 +0000)]
Remember to close key files when rsakey_encrypted meets a bogus one
git-svn-id: svn://svn.tartarus.org/sgt/putty@739
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 15:20:53 +0000 (15:20 +0000)]
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.
git-svn-id: svn://svn.tartarus.org/sgt/putty@733
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 15:09:56 +0000 (15:09 +0000)]
Rename "Stored Sessions" to "Saved Sessions" for consistency
git-svn-id: svn://svn.tartarus.org/sgt/putty@732
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 15:09:35 +0000 (15:09 +0000)]
Some better IDC_* names for the controls on the Colours panel
git-svn-id: svn://svn.tartarus.org/sgt/putty@731
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 14:45:16 +0000 (14:45 +0000)]
Add the LBS_NOTIFY style to the list box in colouredit(), which was
vital to it working right
git-svn-id: svn://svn.tartarus.org/sgt/putty@730
cda61777-01e9-0310-a592-
d414129be87e
simon [Fri, 20 Oct 2000 13:51:46 +0000 (13:51 +0000)]
Introduce a sane interface function, from_backend(), for backends to
use when they have data from the network. Replaces the utterly daft
inbuf / inbuf_head / term_out() interface, which only made sense
when feeding to terminal.c. (terminal.c now implements
from_backend() as a small function that gateways to the old
interface.)
As a side effect, from_backend() also has an `is_stderr' parameter,
so scp can once again separate the server's pronouncements on stderr
from the actual protocol progress on stdout.
git-svn-id: svn://svn.tartarus.org/sgt/putty@729
cda61777-01e9-0310-a592-
d414129be87e