u/mdw/putty
23 years agoPlacate gcc's `-Wall' warnings.
simon [Sun, 13 May 2001 14:02:28 +0000 (14:02 +0000)]
Placate gcc's `-Wall' warnings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1121 cda61777-01e9-0310-a592-d414129be87e

23 years agoTrim leading whitespace off the hostname if it's there.
simon [Sun, 13 May 2001 13:23:12 +0000 (13:23 +0000)]
Trim leading whitespace off the hostname if it's there.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1120 cda61777-01e9-0310-a592-d414129be87e

23 years agoOops - initialise sesslist_has_focus.
simon [Sun, 13 May 2001 13:11:53 +0000 (13:11 +0000)]
Oops - initialise sesslist_has_focus.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1119 cda61777-01e9-0310-a592-d414129be87e

23 years agoJacob's patch to make pressing Return on a selected saved session
simon [Sun, 13 May 2001 11:58:36 +0000 (11:58 +0000)]
Jacob's patch to make pressing Return on a selected saved session
load it and go, and simultaneously allow Alt-L on a selected saved
session not to change the focus.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1118 cda61777-01e9-0310-a592-d414129be87e

23 years agoBorland and Cygwin makefiles now support XFLAGS.
simon [Sun, 13 May 2001 11:46:00 +0000 (11:46 +0000)]
Borland and Cygwin makefiles now support XFLAGS.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1117 cda61777-01e9-0310-a592-d414129be87e

23 years agoControl characters are now allowed as part of the password, if
simon [Sun, 13 May 2001 11:44:57 +0000 (11:44 +0000)]
Control characters are now allowed as part of the password, if
they're not special control characters processed by the line input
routines.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1116 cda61777-01e9-0310-a592-d414129be87e

23 years agoDefine WM_MOUSEWHEEL (to 0x20A) if it's not defined by windows.h.
simon [Sun, 13 May 2001 11:19:20 +0000 (11:19 +0000)]
Define WM_MOUSEWHEEL (to 0x20A) if it's not defined by windows.h.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1115 cda61777-01e9-0310-a592-d414129be87e

23 years agoAttempt to report the error condition right when an SCP connection
simon [Sun, 13 May 2001 11:15:16 +0000 (11:15 +0000)]
Attempt to report the error condition right when an SCP connection
with a pre-supplied password fails to authenticate.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1114 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the SCO function keys, which weren't quite right.
simon [Sun, 13 May 2001 10:58:51 +0000 (10:58 +0000)]
Fix the SCO function keys, which weren't quite right.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1113 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdded a new large icon for the PuTTY config box. Doesn't show up in
simon [Sun, 13 May 2001 10:45:56 +0000 (10:45 +0000)]
Added a new large icon for the PuTTY config box. Doesn't show up in
the actual window at all, but appears in the Alt-Tab task switcher
box in place of the tedious Windows Default icon.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1112 cda61777-01e9-0310-a592-d414129be87e

23 years agoA patch to the new character set stuff to add the Windows code pages
simon [Thu, 10 May 2001 10:31:44 +0000 (10:31 +0000)]
A patch to the new character set stuff to add the Windows code pages
themselves (Win1250 - Win1258).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1111 cda61777-01e9-0310-a592-d414129be87e

23 years agoRDB's Unicode patch. Fonts are now used in Unicode mode where
simon [Thu, 10 May 2001 08:34:20 +0000 (08:34 +0000)]
RDB's Unicode patch. Fonts are now used in Unicode mode where
possible and we have a single unified means of trying to display any
Unicode code point. Instead of the various ad-hoc translation modes
we had before, we now have a single `codepage' option which allows
us to treat the incoming (and outgoing) text as any given character
set, and locally we map that to Unicode and back.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1110 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: a patch to allow special keys (^C, ^Z, Delete, Return) to
simon [Wed, 9 May 2001 15:12:26 +0000 (15:12 +0000)]
From RDB: a patch to allow special keys (^C, ^Z, Delete, Return) to
send Telnet special sequences (Interrupt Process, Suspend, Erase
Char, End Of Line) instead of their ASCII equivalents. In particular
Return -> Telnet End Of Line is _always_ enabled irrespective of the
configuration, while the others are optional. Also in this patch, an
entertainingly ghastly use of `switch' to allow literal ^M^J to do
the same thing as magic-^M (the Return key) when in Raw protocol.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1109 cda61777-01e9-0310-a592-d414129be87e

23 years ago`realhost', passed back from all the backend init functions, was
simon [Wed, 9 May 2001 14:01:15 +0000 (14:01 +0000)]
`realhost', passed back from all the backend init functions, was
scoped within those functions. It's now dynamically allocated.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1108 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: telnet can now start up in passive mode, in which it
simon [Wed, 9 May 2001 13:51:07 +0000 (13:51 +0000)]
From RDB: telnet can now start up in passive mode, in which it
doesn't do any negotiation until the remote side does.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1107 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: a few extra escape sequences seen in SCO terminals.
simon [Wed, 9 May 2001 13:35:08 +0000 (13:35 +0000)]
From RDB: a few extra escape sequences seen in SCO terminals.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1106 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: according to VT manuals, application cursor keys should
simon [Wed, 9 May 2001 13:30:06 +0000 (13:30 +0000)]
From RDB: according to VT manuals, application cursor keys should
never be enabled when app keypad is disabled. Also CTRL+arrows flips
the application-ness to make it easy to generate the other sequences
if required.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1105 cda61777-01e9-0310-a592-d414129be87e

23 years agoWe can now save the protocol and port number in Default Settings.
simon [Wed, 9 May 2001 13:26:14 +0000 (13:26 +0000)]
We can now save the protocol and port number in Default Settings.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1104 cda61777-01e9-0310-a592-d414129be87e

23 years agoFrom RDB: yet another fix in the ongoing quest to deal correctly
simon [Wed, 9 May 2001 13:12:46 +0000 (13:12 +0000)]
From RDB: yet another fix in the ongoing quest to deal correctly
with font point sizes :-(

git-svn-id: svn://svn.tartarus.org/sgt/putty@1103 cda61777-01e9-0310-a592-d414129be87e

23 years agoRDB's alternative way to interpret the window size in Change
simon [Wed, 9 May 2001 13:03:16 +0000 (13:03 +0000)]
RDB's alternative way to interpret the window size in Change
Settings: it describes the size of the _unmaximised_ window.
Maximisedness is a separate property which Change Settings doesn't
affect. So if you change the font while the window is maximised, the
terminal size adjusts accordingly. The downside is that you can't
read the width and height of a maximised window out of Change
Settings. Suggestions that restore this property are welcome.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1102 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix due to Robert de Bath: backspace should not cross line
simon [Wed, 9 May 2001 12:48:01 +0000 (12:48 +0000)]
Fix due to Robert de Bath: backspace should not cross line
boundaries when auto wrap is disabled.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1101 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix de Bath's last-ditch bell overload
simon [Sun, 6 May 2001 16:18:58 +0000 (16:18 +0000)]
Fix de Bath's last-ditch bell overload

git-svn-id: svn://svn.tartarus.org/sgt/putty@1100 cda61777-01e9-0310-a592-d414129be87e

23 years agoStrip off and ignore `:port' on the end of a hostname.
simon [Sun, 6 May 2001 15:09:32 +0000 (15:09 +0000)]
Strip off and ignore `:port' on the end of a hostname.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1099 cda61777-01e9-0310-a592-d414129be87e

23 years agoRun entire source base through GNU indent to tidy up the varying
simon [Sun, 6 May 2001 14:35:20 +0000 (14:35 +0000)]
Run entire source base through GNU indent to tidy up the varying
coding styles of the various contributors! Woohoo!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1098 cda61777-01e9-0310-a592-d414129be87e

23 years agoWez Furlong's patch to add xterm mouse reporting and proper mouse
simon [Sun, 6 May 2001 14:20:41 +0000 (14:20 +0000)]
Wez Furlong's patch to add xterm mouse reporting and proper mouse
wheel support.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1097 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove diagnostics and attempt to work around VC compiler bug :-(
simon [Thu, 3 May 2001 10:10:53 +0000 (10:10 +0000)]
Remove diagnostics and attempt to work around VC compiler bug :-(

git-svn-id: svn://svn.tartarus.org/sgt/putty@1096 cda61777-01e9-0310-a592-d414129be87e

23 years agoExtra diagnostics in the hope that we can track down the problem with
simon [Wed, 2 May 2001 14:45:25 +0000 (14:45 +0000)]
Extra diagnostics in the hope that we can track down the problem with
the nightlies. I must remember to take it all out again when we do!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1095 cda61777-01e9-0310-a592-d414129be87e

23 years agoTEMPORARY ONLY: enable debugging on default build to try to get
simon [Wed, 2 May 2001 08:59:36 +0000 (08:59 +0000)]
TEMPORARY ONLY: enable debugging on default build to try to get
tomorrow's nightly to show us what the problem with term_size is.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1094 cda61777-01e9-0310-a592-d414129be87e

23 years agoReduce out-of-focus timer interval to 2 seconds so we still have
simon [Sat, 28 Apr 2001 18:23:58 +0000 (18:23 +0000)]
Reduce out-of-focus timer interval to 2 seconds so we still have
some control over keepalives when not in the foreground.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1093 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd Jordan Russell's patch for a sunken-edge border like a DOS box.
simon [Sat, 28 Apr 2001 18:02:19 +0000 (18:02 +0000)]
Add Jordan Russell's patch for a sunken-edge border like a DOS box.
Configurable, of course, because I for one like the border as thin
as possible.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1092 cda61777-01e9-0310-a592-d414129be87e

23 years agoDebugging improvements. Started using Dave Hinton's dmemdump
simon [Sat, 28 Apr 2001 17:35:18 +0000 (17:35 +0000)]
Debugging improvements. Started using Dave Hinton's dmemdump
function (woohoo!), improved that function so it provides an ASCII
dump as well as hex (whee!), removed all remaining spurious \r in
debug statements (ooh!), and made enabling of packet debugging in
SSH a matter of one ifdef rather than lots (phew!).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1091 cda61777-01e9-0310-a592-d414129be87e

23 years agoPut the \001 prefix back on scp error messages when they're sent to
simon [Sat, 28 Apr 2001 17:18:47 +0000 (17:18 +0000)]
Put the \001 prefix back on scp error messages when they're sent to
the server. (Not sure _why_ they're sent to the server; scp is
weird.) It may be pointless when sent to the screen, which is why I
removed it, but it's extremely pointful on the wire :-(

git-svn-id: svn://svn.tartarus.org/sgt/putty@1090 cda61777-01e9-0310-a592-d414129be87e

23 years agoThe bell overload times are now measured in milliseconds, although
simon [Sat, 28 Apr 2001 15:47:26 +0000 (15:47 +0000)]
The bell overload times are now measured in milliseconds, although
the config box still enters them in seconds (it allows fractions).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1089 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove stray diagnostics. When will I learn?
simon [Sat, 28 Apr 2001 15:33:48 +0000 (15:33 +0000)]
Remove stray diagnostics. When will I learn?

git-svn-id: svn://svn.tartarus.org/sgt/putty@1088 cda61777-01e9-0310-a592-d414129be87e

23 years agoImplement lazy horizontal resizing of screen and scrollback.
simon [Sat, 28 Apr 2001 15:32:25 +0000 (15:32 +0000)]
Implement lazy horizontal resizing of screen and scrollback.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1087 cda61777-01e9-0310-a592-d414129be87e

23 years agoArrange that explicit visual bells performed using ESC[?5h and
simon [Sat, 28 Apr 2001 14:39:16 +0000 (14:39 +0000)]
Arrange that explicit visual bells performed using ESC[?5h and
ESC[?5l in immediate succession will still give a visibly long flash
of the screen.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1086 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd the missing "all" target in the Cygwin makefile
simon [Sat, 28 Apr 2001 12:07:41 +0000 (12:07 +0000)]
Add the missing "all" target in the Cygwin makefile

git-svn-id: svn://svn.tartarus.org/sgt/putty@1085 cda61777-01e9-0310-a592-d414129be87e

23 years agoJacob's patch to make passphrase boxes work more sanely
simon [Sat, 28 Apr 2001 11:41:33 +0000 (11:41 +0000)]
Jacob's patch to make passphrase boxes work more sanely

git-svn-id: svn://svn.tartarus.org/sgt/putty@1084 cda61777-01e9-0310-a592-d414129be87e

23 years agoOnly update the system caret when we have the focus. This was
simon [Sat, 28 Apr 2001 11:27:04 +0000 (11:27 +0000)]
Only update the system caret when we have the focus. This was
apparently causing the weird caret behaviour in Change Settings,
because that routine was still being called...

git-svn-id: svn://svn.tartarus.org/sgt/putty@1083 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix completely stupid agent_exists test. (Hint to self: you have to
simon [Sat, 28 Apr 2001 11:25:58 +0000 (11:25 +0000)]
Fix completely stupid agent_exists test. (Hint to self: you have to
actually _call_ a boolean-returning function, not just test its
address for nonzerohood.) Thanks Jacob.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1082 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd -lwinmm to Cygwin makefile. Thanks Jacob.
simon [Sat, 28 Apr 2001 11:25:03 +0000 (11:25 +0000)]
Add -lwinmm to Cygwin makefile. Thanks Jacob.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1081 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove my dire-warning `FIXME' in IPv4 dotted-decimal handling
simon [Sat, 28 Apr 2001 11:24:45 +0000 (11:24 +0000)]
Remove my dire-warning `FIXME' in IPv4 dotted-decimal handling
because Jeroen points out that it's perfectly OK the way it is :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1080 cda61777-01e9-0310-a592-d414129be87e

23 years agoDave Hinton's debugging patch.
simon [Sat, 28 Apr 2001 09:24:19 +0000 (09:24 +0000)]
Dave Hinton's debugging patch.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1079 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd some fflushes to make it easier for piped programs to talk to
simon [Sat, 28 Apr 2001 08:42:06 +0000 (08:42 +0000)]
Add some fflushes to make it easier for piped programs to talk to
plink and pscp

git-svn-id: svn://svn.tartarus.org/sgt/putty@1078 cda61777-01e9-0310-a592-d414129be87e

23 years agoUpdated dependencies thanks to Dave Hinton's mkdeps script
simon [Sat, 28 Apr 2001 07:49:23 +0000 (07:49 +0000)]
Updated dependencies thanks to Dave Hinton's mkdeps script

git-svn-id: svn://svn.tartarus.org/sgt/putty@1077 cda61777-01e9-0310-a592-d414129be87e

23 years agoUsing plink with CVS - need to make sure the saved session uses SSH
owen [Wed, 18 Apr 2001 15:23:36 +0000 (15:23 +0000)]
Using plink with CVS - need to make sure the saved session uses SSH

git-svn-id: svn://svn.tartarus.org/sgt/putty@1065 cda61777-01e9-0310-a592-d414129be87e

23 years agoUseful workaround I was given, to fake storing settings in a file.
simon [Tue, 17 Apr 2001 10:39:19 +0000 (10:39 +0000)]
Useful workaround I was given, to fake storing settings in a file.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1064 cda61777-01e9-0310-a592-d414129be87e

23 years agoTwo more small bugs introduced by the B-tree reorg: scroll() now
simon [Tue, 17 Apr 2001 09:25:52 +0000 (09:25 +0000)]
Two more small bugs introduced by the B-tree reorg: scroll() now
requires fix_cpos() to be called after it (otherwise cpos might point
to a line that isn't where you remember it being), and a mis-aimed
incpos() was causing forward selection dragging not to include the
char under the mouse. Both fixed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1063 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix alternate-screen bugs introduced by move to B-trees. Alternate
simon [Tue, 17 Apr 2001 08:53:31 +0000 (08:53 +0000)]
Fix alternate-screen bugs introduced by move to B-trees. Alternate
screen wasn't being correctly cleared on creation, and also wasn't
inhibiting scrollback like it should have.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1061 cda61777-01e9-0310-a592-d414129be87e

23 years agoHaving now compiled the last few days' changes with MSVC, it's turned
simon [Tue, 17 Apr 2001 08:24:29 +0000 (08:24 +0000)]
Having now compiled the last few days' changes with MSVC, it's turned
up a bunch of warnings, mostly unused variables. All fixed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1058 cda61777-01e9-0310-a592-d414129be87e

23 years agoInclude <mmsystem.h> and winmm.lib for PlaySound.
simon [Mon, 16 Apr 2001 21:33:18 +0000 (21:33 +0000)]
Include <mmsystem.h> and winmm.lib for PlaySound.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1057 cda61777-01e9-0310-a592-d414129be87e

23 years agoPut back Robert de Bath's second level of bell overload tracking. It
simon [Mon, 16 Apr 2001 21:29:12 +0000 (21:29 +0000)]
Put back Robert de Bath's second level of bell overload tracking. It
had a useful purpose: when primary overload handling is disabled, it
prevents MessageBeep calls overloading the program, because they
don't cancel each other like async PlaySounds do.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1056 cda61777-01e9-0310-a592-d414129be87e

23 years agoTerminal now uses unsorted counted tree234 as its basic data type.
simon [Mon, 16 Apr 2001 21:25:13 +0000 (21:25 +0000)]
Terminal now uses unsorted counted tree234 as its basic data type.
Should speed up scrollback to usable levels no matter how big your
scrollback buffer.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1055 cda61777-01e9-0310-a592-d414129be87e

23 years agocountnode234() should politely return 0 when passed NULL. Was
simon [Mon, 16 Apr 2001 21:24:38 +0000 (21:24 +0000)]
countnode234() should politely return 0 when passed NULL. Was
breaking delpos234(empty_tree, 0).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1054 cda61777-01e9-0310-a592-d414129be87e

23 years agoReplace PuTTY's 2-3-4 tree implementation with the shiny new counted
simon [Mon, 16 Apr 2001 17:18:24 +0000 (17:18 +0000)]
Replace PuTTY's 2-3-4 tree implementation with the shiny new counted
one, in preparation for using it to speed up scrollback.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1053 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix excessive calls to random_byte()
simon [Mon, 16 Apr 2001 16:25:57 +0000 (16:25 +0000)]
Fix excessive calls to random_byte()

git-svn-id: svn://svn.tartarus.org/sgt/putty@1052 cda61777-01e9-0310-a592-d414129be87e

23 years agoQuote the hostname in the `unable to connect' box so that if the
simon [Mon, 16 Apr 2001 16:19:30 +0000 (16:19 +0000)]
Quote the hostname in the `unable to connect' box so that if the
user starts up N PuTTYs at once and one reports failure, they know
which one.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1051 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd two more ghastly function key options. WE HAVE TOO MANY!
simon [Mon, 16 Apr 2001 16:16:52 +0000 (16:16 +0000)]
Add two more ghastly function key options. WE HAVE TOO MANY!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1050 cda61777-01e9-0310-a592-d414129be87e

23 years agoRoman Pompejus's patch to allow you to automatically select
simon [Mon, 16 Apr 2001 15:58:43 +0000 (15:58 +0000)]
Roman Pompejus's patch to allow you to automatically select
overwrite or append in logging mode.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1049 cda61777-01e9-0310-a592-d414129be87e

23 years agoMakefile enhancements by Robert de Bath.
simon [Mon, 16 Apr 2001 12:38:35 +0000 (12:38 +0000)]
Makefile enhancements by Robert de Bath.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1048 cda61777-01e9-0310-a592-d414129be87e

23 years agoIncrease the read buffer size in network processing for extra speed.
simon [Mon, 16 Apr 2001 12:25:03 +0000 (12:25 +0000)]
Increase the read buffer size in network processing for extra speed.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1047 cda61777-01e9-0310-a592-d414129be87e

23 years agoSmall keyboard patches from Robert de Bath. Should fix the dead-key
simon [Mon, 16 Apr 2001 12:08:37 +0000 (12:08 +0000)]
Small keyboard patches from Robert de Bath. Should fix the dead-key
problem and also some unspecified woe with the ever-problematic
Compose key.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1046 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove the diagnostics I checked in by mistake in the last revision.
simon [Mon, 16 Apr 2001 11:18:15 +0000 (11:18 +0000)]
Remove the diagnostics I checked in by mistake in the last revision.
AGAIN. I really must stop doing that.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1045 cda61777-01e9-0310-a592-d414129be87e

23 years agoPageant interface changes. You can now do `pageant -c command' to
simon [Mon, 16 Apr 2001 11:16:58 +0000 (11:16 +0000)]
Pageant interface changes. You can now do `pageant -c command' to
spawn another command after starting Pageant. Also, if Pageant is
already running, `pageant keyfile' and `pageant -c command' will do
the Right Thing, that is, add the key to the _first_ Pageant and/or
run a command and then exit. The only time you now get the `Pageant
is already running' error is if you try to start the second copy
with no arguments.
NB the affected files in this checkin are rather wide-ranging
because I renamed the not really SSH1-specific
`ssh1_bignum_bitcount' function to just `bignum_bitcount'.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1044 cda61777-01e9-0310-a592-d414129be87e

23 years agoLog the text message in SSH_MSG_DISCONNECT (both protocols) so that
simon [Mon, 16 Apr 2001 09:10:34 +0000 (09:10 +0000)]
Log the text message in SSH_MSG_DISCONNECT (both protocols) so that
when people submit Event Logs for diagnosis it's a little easier to
work out what's up.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1043 cda61777-01e9-0310-a592-d414129be87e

23 years agoAfter we fall back to 3DES, double-check the server really does
simon [Mon, 16 Apr 2001 07:49:11 +0000 (07:49 +0000)]
After we fall back to 3DES, double-check the server really does
support it, and bomb out with a complaint if not.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1042 cda61777-01e9-0310-a592-d414129be87e

23 years agoBell can now play an arbitrary sound file.
simon [Sat, 14 Apr 2001 11:37:47 +0000 (11:37 +0000)]
Bell can now play an arbitrary sound file.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1041 cda61777-01e9-0310-a592-d414129be87e

23 years agoOops - remove rogue debug messages!
simon [Fri, 13 Apr 2001 11:01:56 +0000 (11:01 +0000)]
Oops - remove rogue debug messages!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1040 cda61777-01e9-0310-a592-d414129be87e

23 years agoNew improved bell handling. Choice between visual and audible bell;
simon [Fri, 13 Apr 2001 10:52:36 +0000 (10:52 +0000)]
New improved bell handling. Choice between visual and audible bell;
configurable bell overload handling. Thanks to Robert de Bath for
galvanising me into doing this, but I've had to rip most of his code
out and redo it myself...

git-svn-id: svn://svn.tartarus.org/sgt/putty@1039 cda61777-01e9-0310-a592-d414129be87e

23 years agoSome introductory blurb in the docs
simon [Fri, 13 Apr 2001 09:39:08 +0000 (09:39 +0000)]
Some introductory blurb in the docs

git-svn-id: svn://svn.tartarus.org/sgt/putty@1038 cda61777-01e9-0310-a592-d414129be87e

23 years agoExperimental checkin to see if we can prevent multiple closes ever
simon [Wed, 11 Apr 2001 12:29:35 +0000 (12:29 +0000)]
Experimental checkin to see if we can prevent multiple closes ever
being sent on an SSH1 forwarding (or indeed primary) channel.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1037 cda61777-01e9-0310-a592-d414129be87e

23 years agoJordan Russell's patch to match the PuTTY cursor blink rate to the
simon [Wed, 11 Apr 2001 10:03:46 +0000 (10:03 +0000)]
Jordan Russell's patch to match the PuTTY cursor blink rate to the
system-configured one.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1036 cda61777-01e9-0310-a592-d414129be87e

23 years agoKeyboard handling patch from RDB: the Windows Application key is now
simon [Mon, 9 Apr 2001 12:52:43 +0000 (12:52 +0000)]
Keyboard handling patch from RDB: the Windows Application key is now
always Compose (we have no better use for it), and Ctrl-Alt can be
made to act like AltGr (but it's never Compose even when AltGr is).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1033 cda61777-01e9-0310-a592-d414129be87e

23 years agoDon't assume OEM fonts have a space in position 255. We know there's
simon [Mon, 9 Apr 2001 12:46:45 +0000 (12:46 +0000)]
Don't assume OEM fonts have a space in position 255. We know there's
one in position 32 so let's use that! (Thanks RDB.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1032 cda61777-01e9-0310-a592-d414129be87e

23 years agoWe can now configure the terminal's answerback string when it receives ^E.
simon [Mon, 9 Apr 2001 12:43:46 +0000 (12:43 +0000)]
We can now configure the terminal's answerback string when it receives ^E.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1031 cda61777-01e9-0310-a592-d414129be87e

23 years agoThe About box now contains a button that starts up a browser pointing
simon [Mon, 9 Apr 2001 12:23:45 +0000 (12:23 +0000)]
The About box now contains a button that starts up a browser pointing
at the PuTTY web site. Thanks to Eric Theriault.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1030 cda61777-01e9-0310-a592-d414129be87e

23 years agoDefault handling of VT100 line drawing characters in cut and paste is
simon [Mon, 9 Apr 2001 11:59:35 +0000 (11:59 +0000)]
Default handling of VT100 line drawing characters in cut and paste is
now to translate them into poor man's characters (+--+ and |). We also
have an option to disable this (and map line drawing characters to the
corresponding ASCII code as before). Thanks to Robert de Bath.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1029 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the detect_bugs routine, which was failing to find the right bit
simon [Thu, 29 Mar 2001 13:40:03 +0000 (13:40 +0000)]
Fix the detect_bugs routine, which was failing to find the right bit
of the version string :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1026 cda61777-01e9-0310-a592-d414129be87e

23 years agoOops. The new remote_cmd_ptr points in the wrong place when you copy a
simon [Wed, 28 Mar 2001 16:38:40 +0000 (16:38 +0000)]
Oops. The new remote_cmd_ptr points in the wrong place when you copy a
Config structure like plink does at one point. (I'm almost tempted to
say this is where a copy constructor would be handy :-/ )

git-svn-id: svn://svn.tartarus.org/sgt/putty@1025 cda61777-01e9-0310-a592-d414129be87e

23 years agoModify the new rsa_verify routine. We now also check the integrity of
simon [Fri, 23 Mar 2001 13:02:39 +0000 (13:02 +0000)]
Modify the new rsa_verify routine. We now also check the integrity of
the private data (verifying that p > q and that iqmp really is the
inverse of q mod p). In addition, we _no longer_ check that e*d == 1
mod (p-1)(q-1): instead we do separate checks mod (p-1) and mod (q-1),
since the order of the multiplicative group mod n is actually equal to
lcm(p-1,q-1) rather than phi(n)=(p-1)(q-1). (In other words, the
Fermat-Euler theorem doesn't point both ways.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1024 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix the SSH protocol version exchange, which had a weird stack trash
simon [Fri, 23 Mar 2001 10:28:36 +0000 (10:28 +0000)]
Fix the SSH protocol version exchange, which had a weird stack trash
in it which for some reason didn't show up when built with VC++6 but
blew up the nightlies. Should be OK now.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1023 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix a couple of silly compiler warnings
simon [Fri, 23 Mar 2001 09:20:43 +0000 (09:20 +0000)]
Fix a couple of silly compiler warnings

git-svn-id: svn://svn.tartarus.org/sgt/putty@1022 cda61777-01e9-0310-a592-d414129be87e

23 years agoFollowing the recent advisory about attacks on PGP keys based on
simon [Thu, 22 Mar 2001 21:48:33 +0000 (21:48 +0000)]
Following the recent advisory about attacks on PGP keys based on
tampering with the unencrypted public part of the key but leaving
the private part intact ... we are now ultra-paranoid about RSA key
files, and we check that the public part matches the private part
_before_ we generate any signatures with them.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1021 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove needless redeclaration of word32 (it was in ssh.h)
simon [Thu, 22 Mar 2001 21:48:32 +0000 (21:48 +0000)]
Remove needless redeclaration of word32 (it was in ssh.h)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1020 cda61777-01e9-0310-a592-d414129be87e

23 years agoRemove the length limit on protocol version strings. (In principle, I
simon [Thu, 22 Mar 2001 17:32:40 +0000 (17:32 +0000)]
Remove the length limit on protocol version strings. (In principle, I
could have got away with upping it to 256, but I didn't want a repeat
of the chaos when some server accidentally breaks that limit too...)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1019 cda61777-01e9-0310-a592-d414129be87e

23 years agoPlink in noninteractive-script mode should not show the `Authenticated
simon [Mon, 19 Mar 2001 10:27:59 +0000 (10:27 +0000)]
Plink in noninteractive-script mode should not show the `Authenticated
with public key' message in SSH2 (it already doesn't in SSH1). It
shouldn't show the login banner either, since its output is probably
redirected to something which will choke on it.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1011 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd Norman Brandinger's suggested `-m' option in plink, to read the
simon [Mon, 19 Mar 2001 10:24:55 +0000 (10:24 +0000)]
Add Norman Brandinger's suggested `-m' option in plink, to read the
remote command from a local file. Advantage: you can have more than
one line in it, so you can remotely run what's effectively a small
script.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1010 cda61777-01e9-0310-a592-d414129be87e

23 years agoSSH2 channel fix: received WINDOW_ADJUSTs were always applied to the
simon [Fri, 16 Mar 2001 12:09:44 +0000 (12:09 +0000)]
SSH2 channel fix: received WINDOW_ADJUSTs were always applied to the
primary (shell session) channel, rather than the one they were aimed
at. This _despite_ me having deliberately gone and looked the channel
ID up in the B-tree - I was ignoring the result by accident :-/

X forwarding should now work in SSH2 even on non-trivial clients (ie
things other than xdpyinfo).

git-svn-id: svn://svn.tartarus.org/sgt/putty@1007 cda61777-01e9-0310-a592-d414129be87e

23 years agoCorrect handling of SSH1 protocol flags, in particular
simon [Fri, 16 Mar 2001 11:58:54 +0000 (11:58 +0000)]
Correct handling of SSH1 protocol flags, in particular
PROTOFLAG_SCREEN_NUMBER, without which OpenSSH 2.5.1 was objecting to
my gratuitous inclusion of a screen number in the SSH1 X forwarding
request. Ahem.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1006 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd support for SSH2 userauth banners. We currently can't deal with
simon [Thu, 15 Mar 2001 17:14:31 +0000 (17:14 +0000)]
Add support for SSH2 userauth banners. We currently can't deal with
printing them _before_ the username prompt. This apparently isn't very
serious because OpenSSH doesn't _send_ it before the username prompt,
but only in response to USERAUTH_REQUEST "none". Good job we do that!

git-svn-id: svn://svn.tartarus.org/sgt/putty@1005 cda61777-01e9-0310-a592-d414129be87e

23 years agoDavid Brinegar's workaround for an error reporting problem in some
simon [Thu, 15 Mar 2001 13:25:48 +0000 (13:25 +0000)]
David Brinegar's workaround for an error reporting problem in some
WinSocks.

git-svn-id: svn://svn.tartarus.org/sgt/putty@1004 cda61777-01e9-0310-a592-d414129be87e

23 years agoAt long last: PuTTY will now report its version to the server
simon [Thu, 15 Mar 2001 12:15:02 +0000 (12:15 +0000)]
At long last: PuTTY will now report its version to the server
sensibly, as a release or a snapshot or a local build. With any luck
this should make bug reporting easier to handle, because anyone who
sends their Event Log should automatically include the version :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@1003 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix a trivial compiler warning
simon [Thu, 15 Mar 2001 12:14:09 +0000 (12:14 +0000)]
Fix a trivial compiler warning

git-svn-id: svn://svn.tartarus.org/sgt/putty@1002 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix a few trivial compiler warnings
simon [Thu, 15 Mar 2001 11:39:17 +0000 (11:39 +0000)]
Fix a few trivial compiler warnings

git-svn-id: svn://svn.tartarus.org/sgt/putty@1001 cda61777-01e9-0310-a592-d414129be87e

23 years agoBit more robustness when talking to Pageant
simon [Thu, 15 Mar 2001 11:38:02 +0000 (11:38 +0000)]
Bit more robustness when talking to Pageant

git-svn-id: svn://svn.tartarus.org/sgt/putty@1000 cda61777-01e9-0310-a592-d414129be87e

23 years agoOops - don't invent an X authorisation when doing agent forwarding!
simon [Thu, 15 Mar 2001 11:32:23 +0000 (11:32 +0000)]
Oops - don't invent an X authorisation when doing agent forwarding!
Overenthusiastic c'n'p breaks the world.

git-svn-id: svn://svn.tartarus.org/sgt/putty@999 cda61777-01e9-0310-a592-d414129be87e

23 years agoFix a segfault on abrupt X connection shutdown.
simon [Thu, 15 Mar 2001 11:19:59 +0000 (11:19 +0000)]
Fix a segfault on abrupt X connection shutdown.

git-svn-id: svn://svn.tartarus.org/sgt/putty@998 cda61777-01e9-0310-a592-d414129be87e

23 years agoAES should have accelerator s, not a, to avoid a clash
simon [Wed, 14 Mar 2001 11:47:11 +0000 (11:47 +0000)]
AES should have accelerator s, not a, to avoid a clash

git-svn-id: svn://svn.tartarus.org/sgt/putty@997 cda61777-01e9-0310-a592-d414129be87e

23 years agoDave Hinton's modifications to the network layer interface, which
simon [Tue, 13 Mar 2001 10:22:45 +0000 (10:22 +0000)]
Dave Hinton's modifications to the network layer interface, which
should make it possible to add SSL support later.

git-svn-id: svn://svn.tartarus.org/sgt/putty@996 cda61777-01e9-0310-a592-d414129be87e

23 years agoAdd dependencies for x11fwd.obj to Makefile (thanks Catbells :-)
simon [Tue, 13 Mar 2001 09:41:02 +0000 (09:41 +0000)]
Add dependencies for x11fwd.obj to Makefile (thanks Catbells :-)

git-svn-id: svn://svn.tartarus.org/sgt/putty@995 cda61777-01e9-0310-a592-d414129be87e