A mirror of the PuTTY codebase with additions to psftp.exe and plink.exe
C Perl Objective-C Python Makefile Shell Inno Setup
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
charset Rework versioning system to not depend on Subversion. Sep 24, 2014
contrib Commit my replacement Windows I-beam mouse pointer. Jun 20, 2015
doc Bump version number for 0.65 release. Jul 25, 2015
icons Stop using physical tabs in Python. (I was goaded into doing this by Feb 28, 2009
macosx Completely remove the privdata mechanism in dialog.h. Jun 20, 2015
testdata Fix an array-size bug in modmul, and add some tests for it. Aug 2, 2013
unix Fix a compile warning with -DDEBUG. Jun 20, 2015
windows Bump version number for 0.65 release. Jul 25, 2015
.gitignore New 'contrib' tool: a script for faking initial KEX. Jun 20, 2015
Buildscr Bump version number for 0.65 release. Jul 25, 2015
Buildscr.cv Rework versioning system to not depend on Subversion. Sep 24, 2014
CHECKLST.txt Add a new checklist item. Jun 20, 2015
LATEST.VER Bump version number for 0.65 release. Jul 25, 2015
LICENCE It's a new year. Jan 5, 2015
README Update documentation to refer to Git rather than Subversion. Nov 1, 2014
Recipe Log identifying information for the other end of connections. Jun 20, 2015
be_all.c Rationalise access to, and content of, backends[] array. Jun 30, 2007
be_all_s.c Rationalise access to, and content of, backends[] array. Jun 30, 2007
be_none.c Fix bug in which the SSH-only tools (pscp, psftp) did not honour a Jul 27, 2011
be_nos_s.c Rationalise access to, and content of, backends[] array. Jun 30, 2007
be_nossh.c Rationalise access to, and content of, backends[] array. Jun 30, 2007
be_ssh.c Fix bug in which the SSH-only tools (pscp, psftp) did not honour a Jul 27, 2011
callback.c Oops! Remove a tight-looping diagnostic. Sep 15, 2013
cmdgen.c Fix assertion failure in Unix PuTTYgen exports. Jan 16, 2014
cmdline.c New option to manually configure the expected host key(s). Sep 9, 2014
conf.c Tighten up a lot of casts from unsigned to int which are read by one Jul 14, 2013
config.c Fix two small memory leaks in config mechanism. Jun 20, 2015
configure.ac Log identifying information for the other end of connections. Jun 20, 2015
cproxy.c Post-release destabilisation! Completely remove the struct type Jul 14, 2011
dialog.c Add some missing initialisations. Nov 22, 2014
dialog.h Completely remove the privdata mechanism in dialog.h. Jun 20, 2015
errsock.c Log identifying information for the other end of connections. Jun 20, 2015
import.c Fix a null-dereference introduced by another mis-fix in r9919. Jul 20, 2013
int64.c Further correction: on reflection, after examining all the call Sep 16, 2008
int64.h Some extra int64 functions. Aug 5, 2006
ldisc.c Clarify when ldisc->term may be NULL. Nov 22, 2014
ldisc.h Post-release destabilisation! Completely remove the struct type Jul 14, 2011
ldiscucs.c Patch from Yoshida Masato to fill in the missing pieces of Windows Feb 17, 2012
logging.c Free copied Conf in log_free(). Nov 9, 2014
minibidi.c Rework versioning system to not depend on Subversion. Sep 24, 2014
misc.c Use a timing-safe memory compare to verify MACs. Jun 20, 2015
misc.h Use a timing-safe memory compare to verify MACs. Jun 20, 2015
mkauto.sh Move the Unix configure script up to the top level. Feb 22, 2014
mkfiles.pl Consistently use &def for %makefile_extra pieces. Nov 22, 2014
mksrcarc.sh Stop using 'zip -k' to construct the Windows source archive. Mar 4, 2014
mkunxarc.sh Turn mkunxarc.sh back into an ordinary sh script. Oct 1, 2014
network.h Log identifying information for the other end of connections. Jun 20, 2015
nocproxy.c Malcolm Smith's patch to support CHAP (digest-based) authentication Aug 30, 2004
nogss.c Rewrite gprefs() in settings.c so that its input mapping includes Jun 25, 2011
noprint.c A few small changes to make the PuTTY source base more usable as a Dec 9, 2005
noshare.c Fix the prototype of the stub function in noshare.c. Apr 22, 2014
noterm.c Make calling term_nopaste() a cross-platform feature. Aug 17, 2013
notiming.c Two related changes to timing code: Sep 18, 2012
pgssapi.c Patch from Alejandro Sedeno, somewhat modified by me, which May 19, 2010
pgssapi.h Patch from Alejandro Sedeno, somewhat modified by me, which May 19, 2010
pinger.c Two related changes to timing code: Sep 18, 2012
portfwd.c Log identifying information for the other end of connections. Jun 20, 2015
pproxy.c Post-release destabilisation! Completely remove the struct type Jul 14, 2011
proxy.c Log identifying information for the other end of connections. Jun 20, 2015
proxy.h Replace the hacky 'OSSocket' type with a closure. Nov 17, 2013
pscp.c Update command-line help and man pages for -hostkey. Sep 20, 2014
psftp.c When PSFTP exits in batch mode due to a command failure, set exit sta… Jun 25, 2015
psftp.h Propagate file permissions in both directions in Unix pscp and psftp. Aug 11, 2011
putty.h Support RFC 4419. Jun 20, 2015
puttymem.h Rework the new type-check in sresize so that it doesn't cause a Jul 19, 2012
puttyps.h Oops: r9004 should have removed various pieces from the Makefile and Sep 25, 2010
raw.c Another missing initialisation. Nov 22, 2014
resource.h Initial checkin: beta 0.43 Jan 8, 1999
rlogin.c Use the new host_str* functions to improve IPv6 literal support. Jan 25, 2014
sercfg.c Post-release destabilisation! Completely remove the struct type Jul 14, 2011
settings.c Support RFC 4419. Jun 20, 2015
sftp.c Tighten up a lot of casts from unsigned to int which are read by one Jul 14, 2013
sftp.h Propagate file permissions in both directions in Unix pscp and psftp. Aug 11, 2011
sign.sh Generate some checksum files with more up-to-date hash functions than Jul 10, 2011
ssh.c Fix a crash when connection-sharing during userauth. Jun 22, 2015
ssh.h Log identifying information for the other end of connections. Jun 20, 2015
sshaes.c Introduce a new utility function smemclr(), which memsets things to Jul 22, 2012
ssharcf.c Introduce a new utility function smemclr(), which memsets things to Jul 22, 2012
sshblowf.c Provide a script to regenerate the Blowfish init tables. Jun 20, 2015
sshbn.c Improve integer-type hygiene in bignum code. Jun 20, 2015
sshbn.h Use 64-bit BignumInt wherever __uint128_t is available. Jun 20, 2015
sshcrc.c Rename crc32() to crc32_compute(), to avoid clashing catastrophically May 13, 2003
sshcrcda.c Unify GET_32BIT()/PUT_32BIT() et al from numerous source files into m… Apr 12, 2005
sshdes.c Implement connection sharing between instances of PuTTY. Nov 17, 2013
sshdh.c Enforce acceptable range for Diffie-Hellman server value. Feb 28, 2015
sshdss.c Make modinv able to return NULL if its inputs are not coprime, and Aug 4, 2013
sshdssg.c Generate keys more carefully, so that when the user asks for an n-bit Mar 4, 2012
sshgss.h Post-release destabilisation! Completely remove the struct type Jul 14, 2011
sshgssc.c Patch from Alejandro Sedeno, somewhat modified by me, which May 19, 2010
sshgssc.h Patch from Alejandro Sedeno, somewhat modified by me, which May 19, 2010
sshmd5.c Add smemclrs of all hash states we destroy. Jun 20, 2015
sshnogss.c Post-release destabilisation! Completely remove the struct type Jul 14, 2011
sshprime.c Generate keys more carefully, so that when the user asks for an n-bit Mar 4, 2012
sshpubk.c Fix a few memory leaks. Jun 20, 2015
sshrand.c random_ref() should always increment the reference count. Oct 9, 2013
sshrsa.c Add a missing bn_restore_invariant in RSA blinding code. Feb 24, 2014
sshrsag.c Make modinv able to return NULL if its inputs are not coprime, and Aug 4, 2013
sshsh256.c Add smemclrs of all hash states we destroy. Jun 20, 2015
sshsh512.c Add smemclrs of all hash states we destroy. Jun 20, 2015
sshsha.c Add smemclrs of all hash states we destroy. Jun 20, 2015
sshshare.c Clean up downstream sockets when upstream loses its SSH connection. Jun 20, 2015
sshzlib.c Add a missing bounds check in the Deflate decompressor. Oct 1, 2014
storage.h Turn 'Filename' into a dynamically allocated type with no arbitrary Oct 2, 2011
telnet.c Use the new host_str* functions to improve IPv6 literal support. Jan 25, 2014
terminal.c Don't output negative numbers in the ESC[13t report. Jun 20, 2015
terminal.h Remove the timed part of the terminal paste mechanism. Sep 15, 2013
testback.c Rework versioning system to not depend on Subversion. Sep 24, 2014
time.c Comment explaining location in top-level directory. Feb 7, 2005
timing.c Fix a stupid sign bug in run_timers() that broke Windows Plink (and Sep 19, 2012
tree234.c Fixes for the tree234 unit test: break its dependencies on half of the Jul 11, 2013
tree234.h Run entire source base through GNU indent to tidy up the varying May 6, 2001
version.c Rework versioning system to not depend on Subversion. Sep 24, 2014
version.h Rework versioning system to not depend on Subversion. Sep 24, 2014
wcwidth.c Fix another type mismatch introduced by r9409. Mar 5, 2012
wildcard.c Add a missing null pointer check in wc_unescape, to bring it in line Jul 14, 2013
x11fwd.c Use the new host_str* functions to improve IPv6 literal support. Jan 25, 2014

README

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
Git, 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 / MinGW 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'. Or you
   can do the same in the top-level directory (we provide a little
   wrapper that invokes configure one level down), which is more like
   a normal Unix source archive but doesn't do so well at keeping the
   per-platform stuff in each platform's subdirectory; it's up to you.

   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. If you have both installed, you can manually specify
   which one you want by giving the option '--with-gtk=1' or
   '--with-gtk=2' to the configure script. (2 is the default, of
   course.) In the absence of either, the configure script will
   automatically construct a Makefile which builds only the
   command-line utilities; you can manually create this condition by
   giving configure the option '--without-gtk'.

 - pterm would like to be setuid or setgid, as appropriate, to permit
   it to write records of user logins to /var/run/utmp and
   /var/log/wtmp. (Of course it will not use this privilege for
   anything else, and in particular it will drop all privileges before
   starting up complex subsystems like GTK.) By default the makefile
   will not attempt to add privileges to the pterm executable at 'make
   install' time, but you can ask it to do so by running configure
   with the option '--enable-setuid=USER' or '--enable-setgid=GROUP'.

 - The Unix Makefiles have an `install' target. Note that by default
   it tries to install `man' pages; if you have fetched the source via
   Git then you will need to have built these using Halibut
   first - see below.

 - It's also possible to build the Windows version of PuTTY to run
   on Unix by using Winelib.  To do this, change to the `windows'
   directory and run `make -f Makefile.cyg CC=winegcc RC=wrc'.

All of the Makefiles are generated automatically from the file
`Recipe' by the Perl script `mkfiles.pl' (except for the Unix one,
which is generated by the `configure' script; mkfiles.pl only
generates the input to automake). Additions and corrections to Recipe,
mkfiles.pl and/or configure.ac are much more useful than additions and
corrections to the actual Makefiles, Makefile.am or Makefile.in.

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 Git rather
than using one of our source snapshots, you'll need to run this
yourself. The input file to Automake is generated by mkfiles.pl along
with all the rest of the makefiles, so you will need to run mkfiles.pl
and then mkauto.sh.

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.