SSH client (mirror)

Simon Tatham 649480fd19 Implement "curve448-sha512" kex, from draft-ietf-curdle-ssh-curves-00. 8 years ago
charset 4d8782e74f Rework versioning system to not depend on Subversion. 10 years ago
contrib c722b2f07f Support Ed25519 in kh2reg.py. 8 years ago
doc 34add87ad2 Put DH group1-sha1 KEX below 'warn' by default. 8 years ago
icons 9866b662c4 Make an OS X icon for pterm as well as PuTTY. 8 years ago
testdata a22e43d3d8 Add a file of extra bignum tests. 8 years ago
unix 561f97874b May as well set FD_CLOEXEC on the signal pipe as well. 8 years ago
windows 2a73676490 Support frontend_is_utf8() in all front ends. 8 years ago
.gitignore 371c68e355 Rename Makefile.cyg to Makefile.mgw. 8 years ago
Buildscr d29d33e165 Update build script for Inno Setup 5.5.9. 8 years ago
Buildscr.cv 371c68e355 Rename Makefile.cyg to Makefile.mgw. 8 years ago
CHECKLST.txt 774d37a0dc Autogenerate licence text in doc subdir from LICENCE. 9 years ago
LATEST.VER 830b7f8898 Update version number for 0.67 release. 9 years ago
LICENCE cfbe604d06 It's a new year. 9 years ago
README b3c3871745 Enable various features in MinGW builds. 8 years ago
Recipe e3f5f49cc4 Correct description of NO_SECURITY. 8 years ago
be_all.c 46c00b0f38 Rationalise access to, and content of, backends[] array. 17 years ago
be_all_s.c 46c00b0f38 Rationalise access to, and content of, backends[] array. 17 years ago
be_misc.c 7c65b9c57a Option to log proxy setup diagnostics to the terminal. 9 years ago
be_none.c f14953d9e9 Fix bug in which the SSH-only tools (pscp, psftp) did not honour a 13 years ago
be_nos_s.c 46c00b0f38 Rationalise access to, and content of, backends[] array. 17 years ago
be_nossh.c 46c00b0f38 Rationalise access to, and content of, backends[] array. 17 years ago
be_ssh.c f14953d9e9 Fix bug in which the SSH-only tools (pscp, psftp) did not honour a 13 years ago
callback.c a3d069d2c1 Oops! Remove a tight-looping diagnostic. 11 years ago
cgtest.c 3e40566bb0 cmdgen: rescue test suite from bit rot. 8 years ago
cmdgen.c 57477cb7ca Warn about short RSA/DSA keys in PuTTYgen. 8 years ago
cmdline.c a454399ec8 Rationalise and document log options somewhat. 9 years ago
conf.c 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
config.c ab433e8073 Reorganise the Bugs and More Bugs config panels. 8 years ago
configure.ac c73f25564f Create OS X application bundles for PuTTY and pterm. 8 years ago
cproxy.c d700c33422 Avoid -Wmisleading-indentation warnings with GCC 6. 9 years ago
dialog.c 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
dialog.h 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
errsock.c c8f83979a3 Log identifying information for the other end of connections. 9 years ago
fuzzterm.c 2a73676490 Support frontend_is_utf8() in all front ends. 8 years ago
import.c 5b7833cd47 Fix potential segfaults in reading OpenSSH's ASN.1 key format. 9 years ago
int64.c 338cb9fa0d Further correction: on reflection, after examining all the call 16 years ago
int64.h 3d522cfd08 Some extra int64 functions. 18 years ago
ldisc.c 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
ldisc.h a1f3b7a358 Post-release destabilisation! Completely remove the struct type 13 years ago
ldiscucs.c 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
licence.pl 774d37a0dc Autogenerate licence text in doc subdir from LICENCE. 9 years ago
logging.c 8fdeb3a95c Merge tag '0.66' 9 years ago
minibidi.c 4d8782e74f Rework versioning system to not depend on Subversion. 10 years ago
misc.c 74e7629e68 Use the proper snprintf function if compiling with VS2015. 9 years ago
misc.h 0ac3526b3e Fix duplicate definition of typedef 'bufchain'. 8 years ago
miscucs.c 7762d71226 New centralised helper function dup_mb_to_wc(). 9 years ago
mkauto.sh a947c49bec Move the Unix configure script up to the top level. 11 years ago
mkfiles.pl b3c3871745 Enable various features in MinGW builds. 8 years ago
mksrcarc.sh b08895f02c New script to generate OS X icon files. 9 years ago
mkunxarc.sh 4c49e29b19 Turn mkunxarc.sh back into an ordinary sh script. 10 years ago
network.h 0ac3526b3e Fix duplicate definition of typedef 'bufchain'. 8 years ago
nocproxy.c 3af7d33340 Malcolm Smith's patch to support CHAP (digest-based) authentication 20 years ago
nogss.c d764872e9e Rewrite gprefs() in settings.c so that its input mapping includes 13 years ago
noprint.c 0a4b6612fb A few small changes to make the PuTTY source base more usable as a 19 years ago
noshare.c 01d359f4f6 Fix the prototype of the stub function in noshare.c. 10 years ago
noterm.c 4db5c2899f Make calling term_nopaste() a cross-platform feature. 11 years ago
notiming.c d5836982e2 Two related changes to timing code: 12 years ago
pageant.c c8f83979a3 Log identifying information for the other end of connections. 9 years ago
pageant.h c6c23ed84b Unix Pageant: support -D, to delete all keys. 9 years ago
pgssapi.c 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 14 years ago
pgssapi.h 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 14 years ago
pinger.c b4202c917a Fix a potential time-wraparound issue in pinger.c. 8 years ago
portfwd.c 37cdfdcd51 Tell the truth about DNS lookups in the Event Log. 9 years ago
pproxy.c a6bd42ca24 Fix signature of platform_new_connection. 9 years ago
proxy.c d700c33422 Avoid -Wmisleading-indentation warnings with GCC 6. 9 years ago
proxy.h 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
pscp.c 5c42f97b68 Switch to flow-control-based SFTP uploading. 8 years ago
psftp.c 5c42f97b68 Switch to flow-control-based SFTP uploading. 8 years ago
psftp.h b0b5d5fbe6 Extend ACL-restriction to all Windows tools. 8 years ago
putty.h f0f19b6147 Add some missing 'const' in version.c's string data. 8 years ago
puttymem.h f40d49b704 Rework the new type-check in sresize so that it doesn't cause a 12 years ago
puttyps.h e30e6b0f1d Delete the old 'macosx' directory completely. 8 years ago
raw.c 7c65b9c57a Option to log proxy setup diagnostics to the terminal. 9 years ago
release.pl f08e2de078 Further release automation. 9 years ago
resource.h c74130d423 Initial checkin: beta 0.43 26 years ago
rlogin.c 7c65b9c57a Option to log proxy setup diagnostics to the terminal. 9 years ago
sercfg.c a1f3b7a358 Post-release destabilisation! Completely remove the struct type 13 years ago
settings.c dcf4466305 Send the IUTF8 terminal mode in SSH "pty-req"s. 8 years ago
sftp.c 5c42f97b68 Switch to flow-control-based SFTP uploading. 8 years ago
sftp.h 5c42f97b68 Switch to flow-control-based SFTP uploading. 8 years ago
sign.sh 5c5879b99d New Windows installer system, using WiX to build an MSI. 9 years ago
ssh.c dcf4466305 Send the IUTF8 terminal mode in SSH "pty-req"s. 8 years ago
ssh.h f0f19b6147 Add some missing 'const' in version.c's string data. 8 years ago
sshaes.c 43be90e287 Split ssh2_cipher's keylen field into two. 9 years ago
ssharcf.c 43be90e287 Split ssh2_cipher's keylen field into two. 9 years ago
sshbcrypt.c d637528181 Implementation of OpenSSH's bcrypt. 9 years ago
sshblowf.c 43be90e287 Split ssh2_cipher's keylen field into two. 9 years ago
sshblowf.h d637528181 Implementation of OpenSSH's bcrypt. 9 years ago
sshbn.c daeeca55a4 Promote 'testbn' to a binary built by the makefiles. 9 years ago
sshbn.h 84cd309295 Add a case to sshbn.h for 64-bit Visual Studio. 9 years ago
sshccp.c c2ec13c7e9 Relegate BignumDblInt to an implementation detail of sshbn.h. 9 years ago
sshcrc.c 9351a5bfe4 Fix a 64-bit-cleanness error in sshcrc's generator. 9 years ago
sshcrcda.c 6eec320f0b Unify GET_32BIT()/PUT_32BIT() et al from numerous source files into misc.h. 20 years ago
sshdes.c 43be90e287 Split ssh2_cipher's keylen field into two. 9 years ago
sshdh.c 1293334ebf Provide an 'extra' pointer in ssh_signkey and ssh_kex. 9 years ago
sshdss.c 1293334ebf Provide an 'extra' pointer in ssh_signkey and ssh_kex. 9 years ago
sshdssg.c 9604c2b367 Generate keys more carefully, so that when the user asks for an n-bit 13 years ago
sshecc.c 649480fd19 Implement "curve448-sha512" kex, from draft-ietf-curdle-ssh-curves-00. 8 years ago
sshecdsag.c 7db526c730 Clean up elliptic curve selection and naming. 9 years ago
sshgss.h a1f3b7a358 Post-release destabilisation! Completely remove the struct type 13 years ago
sshgssc.c 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 14 years ago
sshgssc.h 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 14 years ago
sshmd5.c 42cf086b6b Add a key-length field to 'struct ssh_mac'. 9 years ago
sshnogss.c a1f3b7a358 Post-release destabilisation! Completely remove the struct type 13 years ago
sshprime.c 9604c2b367 Generate keys more carefully, so that when the user asks for an n-bit 13 years ago
sshpubk.c 89da2ddf56 Giant const-correctness patch of doom! 9 years ago
sshrand.c 1d20c1b396 Add FUZZING build option that disables the random number generator. 9 years ago
sshrsa.c 8fdeb3a95c Merge tag '0.66' 9 years ago
sshrsag.c cb1df53360 Make modinv able to return NULL if its inputs are not coprime, and 11 years ago
sshsh256.c 42cf086b6b Add a key-length field to 'struct ssh_mac'. 9 years ago
sshsh512.c 1df12e3915 Add copy and free methods to 'struct ssh_hash'. 9 years ago
sshsha.c 42cf086b6b Add a key-length field to 'struct ssh_mac'. 9 years ago
sshshare.c 5bb3334d0e Remove an accidentally committed diagnostic. 9 years ago
sshzlib.c f3f215423b Close file descriptor in test main(). 9 years ago
storage.h 62cbc7dc0b Turn 'Filename' into a dynamically allocated type with no arbitrary 13 years ago
telnet.c 7c65b9c57a Option to log proxy setup diagnostics to the terminal. 9 years ago
terminal.c dcf4466305 Send the IUTF8 terminal mode in SSH "pty-req"s. 8 years ago
terminal.h 6056396f77 More robust control sequence parameter handling. 9 years ago
testback.c 7c2ea22784 New Plink operating mode: 'plink -shareexists'. 9 years ago
testbn.c a9f591eaa8 Report the bignum word size in testbn. 9 years ago
time.c 162398e55e Comment explaining location in top-level directory. 20 years ago
timing.c b4202c917a Fix a potential time-wraparound issue in pinger.c. 8 years ago
tree234.c 84fed5c620 Fixes for the tree234 unit test: break its dependencies on half of the 11 years ago
tree234.h 3730ada5ce Run entire source base through GNU indent to tidy up the varying 24 years ago
version.c f0f19b6147 Add some missing 'const' in version.c's string data. 8 years ago
version.h 4d8782e74f Rework versioning system to not depend on Subversion. 10 years ago
wcwidth.c 947fa8f0ae Fix another type mismatch introduced by r9409. 13 years ago
wildcard.c 74cf14e4eb Add a missing null pointer check in wc_unescape, to bring it in line 11 years ago
x11fwd.c 37cdfdcd51 Tell the truth about DNS lookups in the Event Log. 9 years ago

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.

As of 2016, we successfully compiled PuTTY with both Visual Studio
7 (2003) and Visual Studio 14 (2015), so our guess is that it will
probably build with versions in between those as well.

- 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 7 and 10.

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.mgw is for MinGW / Cygwin installations. Type
`make -f Makefile.mgw' while in the `windows' subdirectory to
build all the PuTTY binaries.

MinGW and friends can lag behind other toolchains in their support
for the Windows API. Compile-time levers are provided to exclude
some features; the defaults are set appropriately for the
'mingw-w64' cross-compiler provided with Ubuntu 14.04. If you are
using an older toolchain, you may need to exclude more features;
alternatively, you may find that upgrading to a recent version of
the 'w32api' package helps.

- 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.mgw
(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.

- 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, any of Gtk+-1.2, Gtk+-2.0, and Gtk+-3.0
should be supported. If you have more than one installed, you can
manually specify which one you want by giving the option
'--with-gtk=N' to the configure script where N is 1, 2, or 3.
(The default is the newest available, of course.) In the absence
of any Gtk version, 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.mgw 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 .

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.