1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 09:27:59 +00:00
Go to file
Simon Tatham a1f3b7a358 Post-release destabilisation! Completely remove the struct type
'Config' in putty.h, which stores all PuTTY's settings and includes an
arbitrary length limit on every single one of those settings which is
stored in string form. In place of it is 'Conf', an opaque data type
everywhere outside the new file conf.c, which stores a list of (key,
value) pairs in which every key contains an integer identifying a
configuration setting, and for some of those integers the key also
contains extra parts (so that, for instance, CONF_environmt is a
string-to-string mapping). Everywhere that a Config was previously
used, a Conf is now; everywhere there was a Config structure copy,
conf_copy() is called; every lookup, adjustment, load and save
operation on a Config has been rewritten; and there's a mechanism for
serialising a Conf into a binary blob and back for use with Duplicate
Session.

User-visible effects of this change _should_ be minimal, though I
don't doubt I've introduced one or two bugs here and there which will
eventually be found. The _intended_ visible effects of this change are
that all arbitrary limits on configuration strings and lists (e.g.
limit on number of port forwardings) should now disappear; that list
boxes in the configuration will now be displayed in a sorted order
rather than the arbitrary order in which they were added to the list
(since the underlying data structure is now a sorted tree234 rather
than an ad-hoc comma-separated string); and one more specific change,
which is that local and dynamic port forwardings on the same port
number are now mutually exclusive in the configuration (putting 'D' in
the key rather than the value was a mistake in the first place).

One other reorganisation as a result of this is that I've moved all
the dialog.c standard handlers (dlg_stdeditbox_handler and friends)
out into config.c, because I can't really justify calling them generic
any more. When they took a pointer to an arbitrary structure type and
the offset of a field within that structure, they were independent of
whether that structure was a Config or something completely different,
but now they really do expect to talk to a Conf, which can _only_ be
used for PuTTY configuration, so I've renamed them all things like
conf_editbox_handler and moved them out of the nominally independent
dialog-box management module into the PuTTY-specific config.c.

[originally from svn r9214]
2011-07-14 18:52:21 +00:00
charset Propagate my ctype fixes (r8404) from libcharset. 2009-01-11 14:20:34 +00:00
contrib Add a directory 'contrib/cygtermd', containing the source code for my 2011-07-10 14:22:32 +00:00
doc Bump version number prior to tagging 0.61 release. 2011-07-12 18:26:18 +00:00
icons Stop using physical tabs in Python. (I was goaded into doing this by 2009-02-28 23:04:58 +00:00
macosx Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
testdata Make bignum.py self-contained, by importing versions of the two 2011-02-22 00:06:12 +00:00
unix Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
windows Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
be_all_s.c Rationalise access to, and content of, backends[] array. 2007-06-30 21:56:44 +00:00
be_all.c Rationalise access to, and content of, backends[] array. 2007-06-30 21:56:44 +00:00
be_none.c Rationalise access to, and content of, backends[] array. 2007-06-30 21:56:44 +00:00
be_nos_s.c Rationalise access to, and content of, backends[] array. 2007-06-30 21:56:44 +00:00
be_nossh.c Rationalise access to, and content of, backends[] array. 2007-06-30 21:56:44 +00:00
Buildscr Generate some checksum files with more up-to-date hash functions than 2011-07-10 11:45:52 +00:00
CHECKLST.txt Readjust checklist, because actually the section on updating the 2011-07-12 19:59:15 +00:00
cmdgen.c Fixes (mostly from Colin Watson, a couple redone by me) to make Unix 2011-05-07 10:57:19 +00:00
cmdline.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
conf.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
config.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
cproxy.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
dialog.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
dialog.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
import.c Add comments on OpenSSH AES-encrypted key support, including one 2010-04-12 11:02:06 +00:00
int64.c Further correction: on reflection, after examining all the call 2008-09-16 22:56:08 +00:00
int64.h Some extra int64 functions. 2006-08-05 13:48:53 +00:00
LATEST.VER Bump version number prior to tagging 0.61 release. 2011-07-12 18:26:18 +00:00
ldisc.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
ldisc.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
ldiscucs.c Fix the _rest_ of the Windows compile warnings. (ahem) 2011-07-12 18:13:33 +00:00
LICENCE It's a new year. 2011-01-05 12:01:00 +00:00
logging.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
minibidi.c Fixes (mostly from Colin Watson, a couple redone by me) to make Unix 2011-05-07 10:57:19 +00:00
misc.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
misc.h Sprinkle some header comments in various files in an attempt to explain what 2006-04-23 18:26:03 +00:00
mkauto.sh Merge from trunk up to r8020. 2008-05-28 19:28:17 +00:00
mkfiles.pl Add an 'XLFLAGS' make variable to Makefile.vc, permitting user- 2010-12-20 13:04:34 +00:00
mksrcarc.sh Fiddle with source archive for new OS X files. 2005-03-11 09:07:37 +00:00
mkunxarc.sh Fixes for snapshot building using bob. All of releases, snapshots 2007-02-05 12:49:24 +00:00
network.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
nocproxy.c Malcolm Smith's patch to support CHAP (digest-based) authentication 2004-08-30 13:11:17 +00:00
nogss.c Rewrite gprefs() in settings.c so that its input mapping includes 2011-06-25 17:37:31 +00:00
noprint.c A few small changes to make the PuTTY source base more usable as a 2005-12-09 20:04:19 +00:00
notiming.c A few small changes to make the PuTTY source base more usable as a 2005-12-09 20:04:19 +00:00
pgssapi.c Patch from Alejandro Sedeno, somewhat modified by me, which 2010-05-19 18:22:17 +00:00
pgssapi.h Patch from Alejandro Sedeno, somewhat modified by me, which 2010-05-19 18:22:17 +00:00
pinger.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
portfwd.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
pproxy.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
proxy.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
proxy.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
pscp.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
psftp.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
psftp.h Large file support for psftp and pscp on both Windows and Unix. On Unix 2006-08-12 15:20:19 +00:00
putty.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
puttymem.h Missing argument in MALLOC_LOG version of snrealloc() macro. 2005-07-06 18:26:41 +00:00
puttyps.h Oops: r9004 should have removed various pieces from the Makefile and 2010-09-25 08:37:30 +00:00
raw.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
README Mention Makefile.ux. 2009-07-28 23:30:38 +00:00
Recipe Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
resource.h Initial checkin: beta 0.43 1999-01-08 13:02:13 +00:00
rlogin.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
sercfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
settings.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
sftp.c Get rid of all the MSVC warnings. 2007-01-09 18:24:07 +00:00
sftp.h Joe Yates's memory leak patches. 2003-12-19 12:44:46 +00:00
sign.sh Generate some checksum files with more up-to-date hash functions than 2011-07-10 11:45:52 +00:00
ssh.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
ssh.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
sshaes.c Support importing of new-style OpenSSH private keys (encrypted by 2010-04-12 10:55:31 +00:00
ssharcf.c Get rid of all the MSVC warnings. 2007-01-09 18:24:07 +00:00
sshblowf.c Enable blowfish-ctr by default. It's been tested and found working. 2005-04-28 08:56:03 +00:00
sshbn.c Fix Windows compile warnings by adding explicit casts. 2011-07-12 18:09:46 +00:00
sshcrc.c Rename crc32() to crc32_compute(), to avoid clashing catastrophically 2003-05-13 18:23:43 +00:00
sshcrcda.c Unify GET_32BIT()/PUT_32BIT() et al from numerous source files into misc.h. 2005-04-12 20:04:56 +00:00
sshdes.c Replace mentions of SSH-2 I-Ds with references to the corresponding RFCs. 2007-10-03 21:21:18 +00:00
sshdh.c Add support for RFC 4432 RSA key exchange, the patch for which has been 2007-04-30 22:09:26 +00:00
sshdss.c Replace mentions of SSH-2 I-Ds with references to the corresponding RFCs. 2007-10-03 21:21:18 +00:00
sshdssg.c Arrgh, there's always one. Actually check in the extra file :-) 2001-09-22 21:00:53 +00:00
sshgss.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
sshgssc.c Patch from Alejandro Sedeno, somewhat modified by me, which 2010-05-19 18:22:17 +00:00
sshgssc.h Patch from Alejandro Sedeno, somewhat modified by me, which 2010-05-19 18:22:17 +00:00
sshmd5.c Mitigation for VU#958563: When using a CBC-mode server-to-client cipher 2008-11-26 12:49:25 +00:00
sshnogss.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
sshprime.c Fix a memory leak in key generation. 2006-02-27 23:55:07 +00:00
sshpubk.c Make key file import robust against a PPK file that has somehow lost its 2008-11-23 20:11:12 +00:00
sshrand.c Plug a few minor memory leaks, based on a patch by Sirp Potijk. 2010-01-17 16:20:45 +00:00
sshrsa.c Implement the Chinese Remainder Theorem optimisation for speeding up 2011-02-18 08:25:39 +00:00
sshrsag.c Add support for DSA authentication in SSH2, following clever ideas 2001-09-22 20:52:21 +00:00
sshsh256.c Log the hash used for DH kex (now there's a choice). 2006-03-12 15:39:19 +00:00
sshsh512.c Patch from Tim Kosse to fix 64-bit-cleanness in SHA-512. 2009-11-10 19:14:15 +00:00
sshsha.c Mitigation for VU#958563: When using a CBC-mode server-to-client cipher 2008-11-26 12:49:25 +00:00
sshzlib.c Implement zlib@openssh.com, using the rekey-after-userauth method suggested in 2011-03-04 22:34:47 +00:00
storage.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
telnet.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
terminal.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
terminal.h Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
testback.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
time.c Comment explaining location in top-level directory. 2005-02-07 15:23:45 +00:00
timing.c Revert r8847, which was bilge; I can't magically change the order of a tree 2010-01-17 23:53:29 +00:00
tree234.c Patch from Colin Watson intended to give a clean Unix compile with GCC 4. 2006-12-30 23:00:14 +00:00
tree234.h Run entire source base through GNU indent to tidy up the varying 2001-05-06 14:35:20 +00:00
version.c When doing custom bob builds from a given SVN revision, include the 2010-04-26 17:28:42 +00:00
wcwidth.c `wcwidth-upgrade': upgrade to latest wcwidth.c from Markus Kuhn 2005-03-23 20:04:08 +00:00
wildcard.c Add notes on our globs' incompatibilities with POSIX 2004-04-27 12:52:34 +00:00
x11fwd.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00

This is the README for the source archive of PuTTY, a free Win32
and Unix Telnet and SSH client.

If you want to rebuild PuTTY from source, we provide a variety of
Makefiles and equivalents. (If you have fetched the source from
Subversion, you'll have to generate the Makefiles yourself -- see
below.)

There are various compile-time directives that you can use to
disable or modify certain features; it may be necessary to do this
in some environments. They are documented in `Recipe', and in
comments in many of the generated Makefiles.

For building on Windows:

 - windows/Makefile.vc is for command-line builds on MS Visual C++
   systems. Change into the `windows' subdirectory and type `nmake
   -f Makefile.vc' to build all the PuTTY binaries.

   Last time we checked, PuTTY built with vanilla VC7, or VC6 with
   an up-to-date Platform SDK. (It might still be possible to build
   with vanilla VC6, but you'll certainly have to remove some
   functionality with directives such as NO_IPV6.)

   (We've also had reports of success building with the
   OpenWatcom compiler -- www.openwatcom.org -- using Makefile.vc
   with `wmake -ms -f makefile.vc' and NO_MULTIMON, although we
   haven't tried this ourselves. Version 1.3 is reported to work.)

 - Inside the windows/MSVC subdirectory are MS Visual Studio project
   files for doing GUI-based builds of the various PuTTY utilities.
   These have been tested on Visual Studio 6.

   You should be able to build each PuTTY utility by loading the
   corresponding .dsp file in Visual Studio. For example,
   MSVC/putty/putty.dsp builds PuTTY itself, MSVC/plink/plink.dsp
   builds Plink, and so on.

 - windows/Makefile.bor is for the Borland C compiler. Type `make -f
   Makefile.bor' while in the `windows' subdirectory to build all
   the PuTTY binaries.

 - windows/Makefile.cyg is for Cygwin / mingw32 installations. Type
   `make -f Makefile.cyg' while in the `windows' subdirectory to
   build all the PuTTY binaries.

   You'll probably need quite a recent version of the w32api package.
   Note that by default the multiple monitor and HTML Help support are
   excluded from the Cygwin build, since at the time of writing Cygwin
   doesn't include the necessary headers.

 - windows/Makefile.lcc is for lcc-win32. Type `make -f
   Makefile.lcc' while in the `windows' subdirectory. (You will
   probably need to specify COMPAT=-DNO_MULTIMON.)

 - Inside the windows/DEVCPP subdirectory are Dev-C++ project
   files for doing GUI-based builds of the various PuTTY utilities.

The PuTTY team actively use Makefile.vc (with VC7) and Makefile.cyg
(with mingw32), so we'll probably notice problems with those
toolchains fairly quickly. Please report any problems with the other
toolchains mentioned above.

For building on Unix:

 - unix/configure is for Unix and GTK. If you don't have GTK, you
   should still be able to build the command-line utilities (PSCP,
   PSFTP, Plink, PuTTYgen) using this script. To use it, change
   into the `unix' subdirectory, run `./configure' and then `make'.

   Note that Unix PuTTY has mostly only been tested on Linux so far;
   portability problems such as BSD-style ptys or different header file
   requirements are expected.

 - unix/Makefile.gtk and unix/Makefile.ux are for non-autoconfigured
   builds. These makefiles expect you to change into the `unix'
   subdirectory, then run `make -f Makefile.gtk' or `make -f
   Makefile.ux' respectively. Makefile.gtk builds all the programs but
   relies on Gtk, whereas Makefile.ux builds only the command-line
   utilities and has no Gtk dependence.

 - For the graphical utilities, Gtk+-1.2 and Gtk+-2.0 should both be
   supported.

 - Both Unix Makefiles have an `install' target. Note that by default
   it tries to install `man' pages, which you may need to have built
   using Halibut first -- see below.

All of the Makefiles are generated automatically from the file
`Recipe' by the Perl script `mkfiles.pl'. Additions and corrections
to Recipe and the mkfiles.pl are much more useful than additions and
corrections to the alternative Makefiles themselves.

The Unix `configure' script and its various requirements are generated
by the shell script `mkauto.sh', which requires GNU Autoconf, GNU
Automake, and Gtk; if you've got the source from Subversion rather
than using one of our source snapshots, you'll need to run this
yourself.

Documentation (in various formats including Windows Help and Unix
`man' pages) is built from the Halibut (`.but') files in the `doc'
subdirectory using `doc/Makefile'. If you aren't using one of our
source snapshots, you'll need to do this yourself. Halibut can be
found at <http://www.chiark.greenend.org.uk/~sgtatham/halibut/>.

The PuTTY home web site is

    http://www.chiark.greenend.org.uk/~sgtatham/putty/

If you want to send bug reports or feature requests, please read the
Feedback section of the web site before doing so. Sending one-line
reports saying `it doesn't work' will waste your time as much as
ours.

See the file LICENCE for the licence conditions.