]> asedeno.scripts.mit.edu Git - PuTTY.git/log
PuTTY.git
19 years agoFix for `pageant-dirhandle': a new wrapper functions `request_file()' maintains
Jacob Nevins [Mon, 28 Feb 2005 02:40:43 +0000 (02:40 +0000)]
Fix for `pageant-dirhandle': a new wrapper functions `request_file()' maintains
a separate CWD for the file requester, so that when the Open File box is not
open Pageant should stay where it was started.
(Also some other minor cleanups in this area of Pageant.)

[originally from svn r5413]
[this svn revision also touched putty-wishlist]

19 years agoPSFTP now needs wildcard.o, and was only getting it by luck. Make it explicit.
Jacob Nevins [Mon, 28 Feb 2005 00:17:09 +0000 (00:17 +0000)]
PSFTP now needs wildcard.o, and was only getting it by luck. Make it explicit.

[originally from svn r5411]

19 years agoMove SaneDialogBox()/SaneEndDialog() from winmisc.c to windlg.c, since they
Jacob Nevins [Sun, 27 Feb 2005 23:57:17 +0000 (23:57 +0000)]
Move SaneDialogBox()/SaneEndDialog() from winmisc.c to windlg.c, since they
seem to be PuTTY(tel)-specific (at least at the moment). Might save a bit
of space in the other binaries.

[originally from svn r5410]

19 years agoImprove Pageant's error reporting for private key load failures.
Jacob Nevins [Sun, 27 Feb 2005 23:15:22 +0000 (23:15 +0000)]
Improve Pageant's error reporting for private key load failures.

[originally from svn r5409]

19 years agoImprovements to PuTTYgen error reporting:
Jacob Nevins [Sun, 27 Feb 2005 23:01:11 +0000 (23:01 +0000)]
Improvements to PuTTYgen error reporting:
 - will now display a reason when it fails to load a key
 - uses existing error return from native keys
 - import.c had a lot of error descriptions which weren't going anywhere;
   since the strings are probably taking up space in the binary, we
   may as well use them

[originally from svn r5408]

19 years agoWarn on close. Also warn before use.
Owen Dunn [Sun, 27 Feb 2005 13:53:08 +0000 (13:53 +0000)]
Warn on close.  Also warn before use.

[originally from svn r5407]

19 years agoPull out the common compiler-specific workarounds and so on from individual
Jacob Nevins [Sat, 26 Feb 2005 17:43:47 +0000 (17:43 +0000)]
Pull out the common compiler-specific workarounds and so on from individual
resource files into windows/rcstuff.h.

[originally from svn r5405]

19 years agoAllow mkfiles.pl to put multiple verbatim sections in a Makefile, and use
Jacob Nevins [Sat, 26 Feb 2005 17:30:41 +0000 (17:30 +0000)]
Allow mkfiles.pl to put multiple verbatim sections in a Makefile, and use
one of these for the MacOSX CFLAGS tweak.

[originally from svn r5404]

19 years agoThe comment that Private-Hash: was not allowed in DSS PuTTY-User-Key-File-1
Jacob Nevins [Sat, 26 Feb 2005 15:50:29 +0000 (15:50 +0000)]
The comment that Private-Hash: was not allowed in DSS PuTTY-User-Key-File-1
keys was apparently incorrect; prior to r1413, it was both allowed, and
generated for passphraseless keys. Remove it and associated validation so that
people are able to load such keys into PuTTYgen to upgrade them, as suggested.

[originally from svn r5403]
[r1413 == 6608016fc28d97e9fd5f53cfc671f9e7ccafd8ce]

19 years agoFix segfault on forcible window closure.
Simon Tatham [Sat, 26 Feb 2005 15:13:13 +0000 (15:13 +0000)]
Fix segfault on forcible window closure.

[originally from svn r5402]

19 years agoSort out close-on-exit, connection_fatal(), fatalbox(), and
Simon Tatham [Sat, 26 Feb 2005 13:37:07 +0000 (13:37 +0000)]
Sort out close-on-exit, connection_fatal(), fatalbox(), and
[SessionWindow dealloc] (which was required in order to avoid
segfaulting when a redraw timer fired for a closed session window!).

[originally from svn r5400]

19 years agoWe weren't correctly discounting "." and ".." when they came from
Jacob Nevins [Sat, 26 Feb 2005 00:41:36 +0000 (00:41 +0000)]
We weren't correctly discounting "." and ".." when they came from
FindFirstFile(), with hilarious consequences for recursive transfers in
PSFTP. (PSCP appears to behave fine; it does its own "."/".." removal.)

[originally from svn r5398]

19 years agoMakefile.lcc mentions version.o instead of .obj (not that it matters, probably)
Jacob Nevins [Fri, 25 Feb 2005 21:26:30 +0000 (21:26 +0000)]
Makefile.lcc mentions version.o instead of .obj (not that it matters, probably)

[originally from svn r5397]

19 years agoPer Gunnar Floe spotted a reversed test in sftp_cleanup_requests().
Simon Tatham [Fri, 25 Feb 2005 09:59:24 +0000 (09:59 +0000)]
Per Gunnar Floe spotted a reversed test in sftp_cleanup_requests().

[originally from svn r5394]

19 years agoAdd RT_MANIFEST arguments to dependencies for Windows resource objects.
Jacob Nevins [Thu, 24 Feb 2005 22:45:50 +0000 (22:45 +0000)]
Add RT_MANIFEST arguments to dependencies for Windows resource objects.

[originally from svn r5393]

19 years agoSome copyright dates that were missed in the Mac port.
Jacob Nevins [Thu, 24 Feb 2005 20:28:10 +0000 (20:28 +0000)]
Some copyright dates that were missed in the Mac port.

[originally from svn r5392]

19 years agoSupport for setting some options like keepalive, oobinline, nodelay, and
Owen Dunn [Wed, 23 Feb 2005 21:19:53 +0000 (21:19 +0000)]
Support for setting some options like keepalive, oobinline, nodelay, and
SO_REUSEADDR for ot_newlistener().  Also handle remote-initiated
disconnections.

[originally from svn r5388]

19 years agoFallout from my change in the semantics of cfg.remote_cmd_ptr.
Simon Tatham [Wed, 23 Feb 2005 09:25:39 +0000 (09:25 +0000)]
Fallout from my change in the semantics of cfg.remote_cmd_ptr.
Spotted by Alano na Alania.

[originally from svn r5386]

19 years agoA first attempt at listening sockets in Open Transport.
Owen Dunn [Tue, 22 Feb 2005 23:40:47 +0000 (23:40 +0000)]
A first attempt at listening sockets in Open Transport.

[originally from svn r5385]

19 years agoRemove the two logevent calls passing NULL as the first argument.
Simon Tatham [Tue, 22 Feb 2005 23:30:09 +0000 (23:30 +0000)]
Remove the two logevent calls passing NULL as the first argument.
This was copied straight from winnet.c and I don't believe it's
_ever_ been valid in the Unix front end.

[originally from svn r5384]

19 years agoRearrange verify_ssh_host_key() for robustness in the face of strangeness, in
Jacob Nevins [Mon, 21 Feb 2005 23:43:49 +0000 (23:43 +0000)]
Rearrange verify_ssh_host_key() for robustness in the face of strangeness, in
the same manner as windows/windlg.c (but tested this time :)

[originally from svn r5380]

19 years agoAhem. Fix my hostkey dialog fix so that storing the host key doesn't
Jacob Nevins [Mon, 21 Feb 2005 23:34:41 +0000 (23:34 +0000)]
Ahem. Fix my hostkey dialog fix so that storing the host key doesn't
close the connection.

[originally from svn r5379]

19 years agoMake sure that auth->xdmseen is initialised (to NULL) even if it's not used.
Ben Harris [Mon, 21 Feb 2005 18:13:51 +0000 (18:13 +0000)]
Make sure that auth->xdmseen is initialised (to NULL) even if it's not used.

[originally from svn r5375]

19 years agoChange "are you sure you want to close this window" default back to what it
Jacob Nevins [Sun, 20 Feb 2005 23:26:47 +0000 (23:26 +0000)]
Change "are you sure you want to close this window" default back to what it
was ("yes"). Partly because it was inconsistent with gtkdlg.c, and partly
because it was annoying me.

[originally from svn r5371]

19 years agoOn Windows, MessageBoxIndirect() was sometimes failing to pop up the host key
Jacob Nevins [Sun, 20 Feb 2005 23:00:17 +0000 (23:00 +0000)]
On Windows, MessageBoxIndirect() was sometimes failing to pop up the host key
dialog and returning an unexpected value (0), causing everything to silently
behave as if the user had said "allow this connection but don't store host
key"!

Initialising (MSGBOXPARAMS).hInstance seems to have cured this (although the
MSDN docs seemed to indicate it wouldn't be used) -- if so, it's been broken
since r5309 on 2004-02-15 -- but since this was something of a Heisenbug, and
the behaviour was so catastrophic when MessageBoxIndirect() behaved oddly, I've
rearranged the code to default to cancelling, and added an assertion for
visibility.

(Windows PuTTY still seems to be broken wrt servers that send NEWKEYS while
we're waiting for the user, which happens to include the "SSH-2.0-2.4.1 SSH
Secure Shell OpenVMS V1.0" I'm testing against. I don't know why. The above bug
may also have been limited to this circumstance.)

[originally from svn r5370]
[r5309 == 99122767f528fa86e6e33c1bc594af2c0dcb884b]

19 years agoAnother failure to crStop(0) on user abort, this time for SSH-1 cipher
Jacob Nevins [Sun, 20 Feb 2005 21:00:16 +0000 (21:00 +0000)]
Another failure to crStop(0) on user abort, this time for SSH-1 cipher
askalg(). That should be the last one.

[originally from svn r5369]

19 years agoSupport the drop-down menu part of the editbox control (combobox). This
Owen Dunn [Sun, 20 Feb 2005 12:54:10 +0000 (12:54 +0000)]
Support the drop-down menu part of the editbox control (combobox).  This
cuts and pastes a lot of code from macctrl_popup, which perhaps should be
consolidated.  Also change the effective line codepage when it is changed
with Change Settings.

[originally from svn r5363]

19 years agoBump version numbers. (Forgot to do this _before_ dropping the 0.57
Simon Tatham [Sun, 20 Feb 2005 10:51:02 +0000 (10:51 +0000)]
Bump version numbers. (Forgot to do this _before_ dropping the 0.57
tag, but that's OK because SVN doesn't distinguish tags from
branches anyway...)

[originally from svn r5361]

19 years agoAdditional robustness to SFTP packet parsing and memory allocation.
Simon Tatham [Sun, 20 Feb 2005 10:30:05 +0000 (10:30 +0000)]
Additional robustness to SFTP packet parsing and memory allocation.

[originally from svn r5358]

19 years agoCorrect some comments based on feedback from Thomas Dickey.
Ben Harris [Sat, 19 Feb 2005 21:56:25 +0000 (21:56 +0000)]
Correct some comments based on feedback from Thomas Dickey.

[originally from svn r5356]

19 years agoGrey the titles of group boxes when the config box is not frontmost.
Owen Dunn [Sat, 19 Feb 2005 15:53:26 +0000 (15:53 +0000)]
Grey the titles of group boxes when the config box is not frontmost.
Edit box values still fail to be greyed.

[originally from svn r5355]

19 years agoOops; missed out a crStop in the new host key verification code.
Simon Tatham [Sat, 19 Feb 2005 14:48:36 +0000 (14:48 +0000)]
Oops; missed out a crStop in the new host key verification code.

[originally from svn r5354]

19 years agoLog file open mode lost a "b" in r5344. Windows at least needs log files to
Jacob Nevins [Sat, 19 Feb 2005 01:20:16 +0000 (01:20 +0000)]
Log file open mode lost a "b" in r5344. Windows at least needs log files to
be written in binary mode with the current code.

[originally from svn r5353]
[r5344 == f73fcb042423866a06b9e41b6934906a0fe9502e]

19 years agoNew enum constant ERROR clashed with a macro in MinGW's wingdi.h.
Jacob Nevins [Fri, 18 Feb 2005 22:03:15 +0000 (22:03 +0000)]
New enum constant ERROR clashed with a macro in MinGW's wingdi.h.
Use uglier names.

[originally from svn r5352]

19 years agoAdd plain-Unix binaries to the `make clean' list in the OS X makefile.
Simon Tatham [Fri, 18 Feb 2005 18:35:30 +0000 (18:35 +0000)]
Add plain-Unix binaries to the `make clean' list in the OS X makefile.

[originally from svn r5345]

19 years agoAdd asynchronous callback capability to the askappend() alert box.
Simon Tatham [Fri, 18 Feb 2005 18:33:31 +0000 (18:33 +0000)]
Add asynchronous callback capability to the askappend() alert box.
This was harder than verify_ssh_host_key() and askalg() put
together, because:
 (a) askappend() can be called at any time, since it's a side effect
     of data-logging functions. Therefore there can be an unfinished
     askappend() alert at any time, and hence the OS X front end has
     to be prepared to _queue_ other alerts which occur during that
     time.
 (b) logging.c has to do something with data that comes in while
     it's waiting for an answer to askappend(). It buffers it until
     it knows what the user wants done with it. This involved
     something of a reorganisation of logging.c.

[originally from svn r5344]

19 years agoA few more fixes in the new asynchronous-alert-box mechanism.
Simon Tatham [Fri, 18 Feb 2005 18:19:28 +0000 (18:19 +0000)]
A few more fixes in the new asynchronous-alert-box mechanism.

[originally from svn r5343]

19 years agoWe have a host key database, just not a very good one.
Owen Dunn [Fri, 18 Feb 2005 09:22:55 +0000 (09:22 +0000)]
We have a host key database, just not a very good one.

[originally from svn r5340]

19 years agoAdjust the semantics of cfg.remote_cmd_ptr: it is now NULL when
Simon Tatham [Thu, 17 Feb 2005 19:31:32 +0000 (19:31 +0000)]
Adjust the semantics of cfg.remote_cmd_ptr: it is now NULL when
cfg.remote_cmd is to be used, rather than actually pointing at
cfg.remote_cmd. This change restores the ability to structure-copy
Configs without breaking them. (Though of course this is only a
temporary solution: really what wants doing is to fix
`config-struct'.)

[originally from svn r5335]

19 years agoAhem. Actually _checking_ that asynchronous askalg() worked would
Simon Tatham [Thu, 17 Feb 2005 18:56:37 +0000 (18:56 +0000)]
Ahem. Actually _checking_ that asynchronous askalg() worked would
have been helpful. Since async verify_ssh_host_key() worked, I
didn't think anything else could go wrong. How wrong I was.

[originally from svn r5331]

19 years agoRevamp interface to verify_ssh_host_key() and askalg(). Each of them
Simon Tatham [Thu, 17 Feb 2005 18:34:24 +0000 (18:34 +0000)]
Revamp interface to verify_ssh_host_key() and askalg(). Each of them
now returns an integer: 0 means cancel the SSH connection and 1
means continue with it. Additionally, they can return -1, which
means `front end has set an asynchronous alert box in motion, please
wait to be called back with the result', and each one is passed a
callback function pointer and context for this purpose.

I have not yet done the same to askappend() yet, because it will
take a certain amount of reorganisation of logging.c.

Importantly, this checkin means the host key dialog box now works on
OS X.

[originally from svn r5330]

19 years agossh_do_close() should close any listening sockets associated with
Jacob Nevins [Thu, 17 Feb 2005 02:00:01 +0000 (02:00 +0000)]
ssh_do_close() should close any listening sockets associated with
port-forwardings.

[originally from svn r5325]

19 years agossh_do_close() was only closing about half the channels. Fixed.
Jacob Nevins [Thu, 17 Feb 2005 01:47:01 +0000 (01:47 +0000)]
ssh_do_close() was only closing about half the channels. Fixed.

[originally from svn r5324]

19 years agoOn the Mac, support for setting the line codepage and for combining
Owen Dunn [Wed, 16 Feb 2005 23:30:10 +0000 (23:30 +0000)]
On the Mac, support for setting the line codepage and for combining
characters.  I've just used libcharset in macucs.c since there seemed
little reason not to, and implemented combining characters by naive
overprinting.  It's not yet a lot of use without the ability to select
a font, of course.

[originally from svn r5322]

19 years agoportfwd validation was sometimes not picking up a blank source port
Jacob Nevins [Wed, 16 Feb 2005 12:13:27 +0000 (12:13 +0000)]
portfwd validation was sometimes not picking up a blank source port

[originally from svn r5319]

19 years agoFix a minor valgrind issue in dynamic port-forwarding.
Jacob Nevins [Wed, 16 Feb 2005 11:56:27 +0000 (11:56 +0000)]
Fix a minor valgrind issue in dynamic port-forwarding.

[originally from svn r5318]

19 years agoSimon suggests a better solution to valgrind's complaining about
Jacob Nevins [Wed, 16 Feb 2005 11:44:44 +0000 (11:44 +0000)]
Simon suggests a better solution to valgrind's complaining about
(struct Socket_tag).connected -- it should be entirely irrelevant to
listening sockets. Valgrind is still happy.

[originally from svn r5317]

19 years agoOops! Didn't mean to check in the OS X Makefile; that is of course
Simon Tatham [Wed, 16 Feb 2005 09:01:45 +0000 (09:01 +0000)]
Oops! Didn't mean to check in the OS X Makefile; that is of course
built by mkfiles.pl just like all the rest. Well spotted, Jacob.

[originally from svn r5316]

19 years agoMinor reorganisations to WinHelp support. (Done as part of a - failed -
Jacob Nevins [Wed, 16 Feb 2005 01:47:10 +0000 (01:47 +0000)]
Minor reorganisations to WinHelp support. (Done as part of a - failed -
attempt to fix `winhelp-crash', but we may as well keep them.)

[originally from svn r5314]

19 years agoUpdate on Mac ports.
Jacob Nevins [Tue, 15 Feb 2005 23:39:57 +0000 (23:39 +0000)]
Update on Mac ports.

[originally from svn r5311]

19 years agoGrouping boxes for the configuration dialogue. The System 7 version is
Owen Dunn [Tue, 15 Feb 2005 22:41:00 +0000 (22:41 +0000)]
Grouping boxes for the configuration dialogue.  The System 7 version is
completely untested so far, but the Appearance Manager version works and
looks plausible.  There are still some HI Guideline spacing issues to
address.

[originally from svn r5310]

19 years agoThe Windows host key dialogs now have a `Help' button that should give
Jacob Nevins [Tue, 15 Feb 2005 22:23:47 +0000 (22:23 +0000)]
The Windows host key dialogs now have a `Help' button that should give
appropriate context help, iff the help file is present. (Shame it's prey to
`winhelp-crash'.)

(I've perpetrated a widening of visibility of `hwnd'; the alternative, putting
it into a frontend handle, seemed too likely to cause maintenance trouble if
we don't also _use_ that frontend handle everywhere we now use the global
`hwnd'.)

[originally from svn r5309]

19 years agoInitial checkin of a native Mac OS X port, sharing most of its code
Simon Tatham [Tue, 15 Feb 2005 21:45:50 +0000 (21:45 +0000)]
Initial checkin of a native Mac OS X port, sharing most of its code
with the Unix port and layering a Cocoa GUI on top. The basics all
work: there's a configuration panel and a terminal window, the
timing interface works and the select interface functions. The same
application can run both SSH (or other network) connections and
local pty sessions, and multiple sessions in the same process are
fully supported.

However, it's horribly unfinished in a wide variety of other ways;
anyone interested is invited to read README.OSX and wince at the
length and content of its `unfinished' list.

[originally from svn r5308]

19 years agoAdd a couple of other sensible button defaults in MessageBox()s.
Jacob Nevins [Tue, 15 Feb 2005 19:22:47 +0000 (19:22 +0000)]
Add a couple of other sensible button defaults in MessageBox()s.

[originally from svn r5305]

19 years agoMartin Radford points out that the default action for the host key
Jacob Nevins [Tue, 15 Feb 2005 19:10:44 +0000 (19:10 +0000)]
Martin Radford points out that the default action for the host key
confirmation dialogs should be "cancel", not "accept".

[originally from svn r5304]

19 years agoThe terminal window can now indicate that PuTTY is busy in various ways, by
Jacob Nevins [Tue, 15 Feb 2005 17:05:58 +0000 (17:05 +0000)]
The terminal window can now indicate that PuTTY is busy in various ways, by
changing its mouse pointer. Currently this is only used in the (slightly-
arbitrarily-defined) "heavy" bits of SSH-2 key exchange. We override pointer
hiding while PuTTY is busy, but preserve pointer-hiding state.

Not yet implemented on the Mac.

Also switch to frobbing window-class cursor in Windows rather than relying on
SetCursor().

[originally from svn r5303]

19 years agoExtra note on "connection reset by peer" on Windows.
Jacob Nevins [Tue, 15 Feb 2005 12:35:59 +0000 (12:35 +0000)]
Extra note on "connection reset by peer" on Windows.
Note default circumstances of cipher warning. (I haven't bothered with the
similar kex warning since it doesn't come up in the default configuration,
and is in any case unlikely to be common.)

[originally from svn r5302]

19 years agoInitialise (struct Socket_tag).connected in sk_register().
Jacob Nevins [Mon, 14 Feb 2005 15:30:09 +0000 (15:30 +0000)]
Initialise (struct Socket_tag).connected in sk_register().
Again, the value could do with review.

[originally from svn r5300]

19 years agoInitialise (struct Socket_tag).connected in sk_newlistener() since Valgrind
Jacob Nevins [Mon, 14 Feb 2005 15:03:32 +0000 (15:03 +0000)]
Initialise (struct Socket_tag).connected in sk_newlistener() since Valgrind
complained.
(I _think_ this is the correct initialisation.)

[originally from svn r5299]

19 years agoMartin Prikryl points out that we weren't always initialising new "addrinfo"
Jacob Nevins [Mon, 14 Feb 2005 11:43:27 +0000 (11:43 +0000)]
Martin Prikryl points out that we weren't always initialising new "addrinfo"
members of Windows SockAddr_tag; particular in sk_nonamelookup() (proxy
resolution at far end) this was causing trouble.

Make sure they _always_ start out NULL (since the Windows getaddrinfo()
documentation doesn't make any claims about initialisation), and also
initialise 'naddresses' in sk_nonamelookup() for good measure.

[originally from svn r5297]

19 years agoWSAECONNABORTED: Soften claims + emphasise applicability to established
Jacob Nevins [Mon, 14 Feb 2005 11:07:52 +0000 (11:07 +0000)]
WSAECONNABORTED: Soften claims + emphasise applicability to established
connections, based on KB 819124.

[originally from svn r5296]

19 years agoOh, and (there's always one) remove the unnecessary extra parameter
Simon Tatham [Mon, 14 Feb 2005 07:44:50 +0000 (07:44 +0000)]
Oh, and (there's always one) remove the unnecessary extra parameter
from unix_setup_config_box().

[originally from svn r5293]

19 years agoSaw uxcfg.c in half down the middle, to separate out config changes
Simon Tatham [Mon, 14 Feb 2005 07:41:41 +0000 (07:41 +0000)]
Saw uxcfg.c in half down the middle, to separate out config changes
that apply to all Unix-like systems from those which apply
specifically to the GTK front end.

[originally from svn r5292]

19 years agoDisplay panel titles and grouping box titles.
Owen Dunn [Sun, 13 Feb 2005 00:00:59 +0000 (00:00 +0000)]
Display panel titles and grouping box titles.

[originally from svn r5291]

19 years agoTidy up the host key alerts a little, and swap the Just Once and Cancel
Owen Dunn [Fri, 11 Feb 2005 18:01:59 +0000 (18:01 +0000)]
Tidy up the host key alerts a little, and swap the Just Once and Cancel
buttons so that they appear in the standard action and cancel positions.

[originally from svn r5288]

19 years agoMention saving mid-session and some of its wrinkles.
Jacob Nevins [Thu, 10 Feb 2005 01:25:50 +0000 (01:25 +0000)]
Mention saving mid-session and some of its wrinkles.
Formatting tweaks in the same general area.

[originally from svn r5284]

19 years agoDocument effect of settings changes on existing connections/forwardings.
Jacob Nevins [Thu, 10 Feb 2005 01:04:06 +0000 (01:04 +0000)]
Document effect of settings changes on existing connections/forwardings.
Also mention that service names can be used instead of port numbers.

[originally from svn r5283]

19 years agossh_setup_portfwd() should usually be looking at the new cfg, not the old
Jacob Nevins [Thu, 10 Feb 2005 01:03:08 +0000 (01:03 +0000)]
ssh_setup_portfwd() should usually be looking at the new cfg, not the old
one, so that changes to port visibility are honoured in new forwardings.

[originally from svn r5282]

19 years agoSlightly gratuitous logeventf() crusade and purge of fixed-length buffers.
Jacob Nevins [Thu, 10 Feb 2005 00:16:59 +0000 (00:16 +0000)]
Slightly gratuitous logeventf() crusade and purge of fixed-length buffers.
Also a bonus sfree().

[originally from svn r5281]

19 years agoAdd some host key dialogue boxes. These still look a little rough around
Owen Dunn [Wed, 9 Feb 2005 21:18:44 +0000 (21:18 +0000)]
Add some host key dialogue boxes.  These still look a little rough around
the edges and need to have all their controls properly aligned and spaced
according to the HI guidelines.  Also, fix store_host_key() so that it
replaces a host key correctly when the host key has changed and the user
opts to update the cached one.

[originally from svn r5280]

19 years agoImprove documentation of the SCP wildcard safety issue: in
Simon Tatham [Wed, 9 Feb 2005 15:57:07 +0000 (15:57 +0000)]
Improve documentation of the SCP wildcard safety issue: in
particular, mention that doing an SCP wildcard download into a clean
directory is adequate protection against a malicious server trying
to overwrite your files.

[originally from svn r5279]

19 years agoMissing {Question}
Jacob Nevins [Wed, 9 Feb 2005 15:42:28 +0000 (15:42 +0000)]
Missing {Question}

[originally from svn r5278]

19 years agoWe _really_ don't need to hear about WSAECONNABORTED any more.
Ben Harris [Tue, 8 Feb 2005 14:13:57 +0000 (14:13 +0000)]
We _really_ don't need to hear about WSAECONNABORTED any more.

[originally from svn r5276]

19 years agoMention that a common reason for keys' being rejected is dodgy permissions.
Ben Harris [Tue, 8 Feb 2005 12:40:51 +0000 (12:40 +0000)]
Mention that a common reason for keys' being rejected is dodgy permissions.

[originally from svn r5274]

19 years agoRevert my LF->CR change following Owen's comment that it actually
Simon Tatham [Mon, 7 Feb 2005 20:24:13 +0000 (20:24 +0000)]
Revert my LF->CR change following Owen's comment that it actually
breaks netatalk-based setups (which _swap_ LF and CR). Instead,
setfile.sh (which I have to run _anyway_ on OS X) copies mkputty.mpw
to mk.mpw and then makes that CR-based.

[originally from svn r5271]

19 years agoComment explaining location in top-level directory.
Jacob Nevins [Mon, 7 Feb 2005 15:23:45 +0000 (15:23 +0000)]
Comment explaining location in top-level directory.

[originally from svn r5270]

19 years agoPetri Kero pointed out a FreeLibrary() call that should be guarded by NO_IPV6.
Jacob Nevins [Mon, 7 Feb 2005 12:23:10 +0000 (12:23 +0000)]
Petri Kero pointed out a FreeLibrary() call that should be guarded by NO_IPV6.

[originally from svn r5268]

19 years agoAdd a comment about the deficiencies of the host key cache implementation.
Owen Dunn [Mon, 7 Feb 2005 10:47:48 +0000 (10:47 +0000)]
Add a comment about the deficiencies of the host key cache implementation.

[originally from svn r5263]

19 years agoReinstate the broken -e option in pterm. Also I've just worked out a
Simon Tatham [Sun, 6 Feb 2005 15:52:00 +0000 (15:52 +0000)]
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]

19 years agoEncapsulated most of the pty backend's variables into a proper data
Simon Tatham [Sun, 6 Feb 2005 15:14:34 +0000 (15:14 +0000)]
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]

19 years agoFirst stab at a host key cache on the Mac.
Owen Dunn [Sun, 6 Feb 2005 15:00:36 +0000 (15:00 +0000)]
First stab at a host key cache on the Mac.

[originally from svn r5260]

19 years agoThe pty backend won't _always_ be running under X, so it should be
Simon Tatham [Sun, 6 Feb 2005 13:33:41 +0000 (13:33 +0000)]
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]

19 years agoWhen allocating BSD-style ptys, we should not be satisfied with a
Simon Tatham [Sat, 5 Feb 2005 15:33:36 +0000 (15:33 +0000)]
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]

19 years agoImplement refreshing the whole dialogue box with dlg_refresh, so that
Owen Dunn [Sat, 5 Feb 2005 14:50:42 +0000 (14:50 +0000)]
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]

19 years agoAdded a small shell script to run enough SetFile commands to make
Simon Tatham [Sat, 5 Feb 2005 14:46:39 +0000 (14:46 +0000)]
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]

19 years agoThis file needs to have CR line endings for MPW to be happy with it.
Simon Tatham [Sat, 5 Feb 2005 14:39:22 +0000 (14:39 +0000)]
This file needs to have CR line endings for MPW to be happy with it.

[originally from svn r5254]

19 years agoMac PuTTY.ppc wouldn't compile for me until I added this prototype.
Simon Tatham [Sat, 5 Feb 2005 10:55:09 +0000 (10:55 +0000)]
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]

19 years agoTimes and dates in the event log, fixing ltime() in the process.
Owen Dunn [Sat, 5 Feb 2005 00:29:20 +0000 (00:29 +0000)]
Times and dates in the event log, fixing ltime() in the process.

[originally from svn r5250]

19 years agomac_pollterm() is no longer useful and can be retired.
Owen Dunn [Sat, 5 Feb 2005 00:14:24 +0000 (00:14 +0000)]
mac_pollterm() is no longer useful and can be retired.

[originally from svn r5249]

19 years agoImplement anti-replay protection for XDM-AUTHORIZATION-1, as required by
Ben Harris [Wed, 2 Feb 2005 23:51:58 +0000 (23:51 +0000)]
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]

19 years agoFlashing things now work as a natural consequence of the timing interface.
Owen Dunn [Wed, 2 Feb 2005 21:33:13 +0000 (21:33 +0000)]
Flashing things now work as a natural consequence of the timing interface.

[originally from svn r5235]

19 years agoMake ot_recv less voracious.
Owen Dunn [Wed, 2 Feb 2005 21:18:39 +0000 (21:18 +0000)]
Make ot_recv less voracious.

[originally from svn r5234]

19 years agoUpdate the configuration when the window is resized.
Owen Dunn [Wed, 2 Feb 2005 19:56:29 +0000 (19:56 +0000)]
Update the configuration when the window is resized.

[originally from svn r5233]

19 years agoHide/show the scrollbar
Owen Dunn [Sun, 30 Jan 2005 14:59:47 +0000 (14:59 +0000)]
Hide/show the scrollbar

[originally from svn r5230]

19 years agoThe HI guidelines seem adamant that the File menu should never be called
Owen Dunn [Sun, 30 Jan 2005 14:10:05 +0000 (14:10 +0000)]
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]

19 years agoAnother compiler pickiness. It feels wrong to be doing this to
Owen Dunn [Sat, 29 Jan 2005 22:50:18 +0000 (22:50 +0000)]
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]

19 years agoMake Change Settings do something.
Owen Dunn [Sat, 29 Jan 2005 22:46:43 +0000 (22:46 +0000)]
Make Change Settings do something.

[originally from svn r5227]

19 years agoEnable the Open Transport networking implementation unless NO_OT is defined.
Owen Dunn [Fri, 28 Jan 2005 23:39:38 +0000 (23:39 +0000)]
Enable the Open Transport networking implementation unless NO_OT is defined.

[originally from svn r5224]

19 years agoSplit discussion of diabling rekeys between time-based and data-based, since
Ben Harris [Fri, 28 Jan 2005 13:47:37 +0000 (13:47 +0000)]
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]

19 years agosfree the memory dupprintf allocated
Owen Dunn [Fri, 28 Jan 2005 11:50:56 +0000 (11:50 +0000)]
sfree the memory dupprintf allocated

[originally from svn r5221]