SSH client (mirror)

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

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.