SSH client (mirror)

Simon Tatham 649480fd19 Implement "curve448-sha512" kex, from draft-ietf-curdle-ssh-curves-00. 9 роки тому
charset 4d8782e74f Rework versioning system to not depend on Subversion. 10 роки тому
contrib c722b2f07f Support Ed25519 in kh2reg.py. 9 роки тому
doc 34add87ad2 Put DH group1-sha1 KEX below 'warn' by default. 9 роки тому
icons 9866b662c4 Make an OS X icon for pterm as well as PuTTY. 9 роки тому
testdata a22e43d3d8 Add a file of extra bignum tests. 9 роки тому
unix 561f97874b May as well set FD_CLOEXEC on the signal pipe as well. 9 роки тому
windows 2a73676490 Support frontend_is_utf8() in all front ends. 9 роки тому
.gitignore 371c68e355 Rename Makefile.cyg to Makefile.mgw. 9 роки тому
Buildscr d29d33e165 Update build script for Inno Setup 5.5.9. 9 роки тому
Buildscr.cv 371c68e355 Rename Makefile.cyg to Makefile.mgw. 9 роки тому
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. 9 роки тому
Recipe e3f5f49cc4 Correct description of NO_SECURITY. 9 роки тому
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. 9 роки тому
cmdgen.c 57477cb7ca Warn about short RSA/DSA keys in PuTTYgen. 9 роки тому
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. 9 роки тому
configure.ac c73f25564f Create OS X application bundles for PuTTY and pterm. 9 роки тому
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. 9 роки тому
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'. 9 роки тому
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. 9 роки тому
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'. 9 роки тому
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. 11 роки тому
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. 10 роки тому
pgssapi.c 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 15 роки тому
pgssapi.h 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 15 роки тому
pinger.c b4202c917a Fix a potential time-wraparound issue in pinger.c. 9 роки тому
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. 9 роки тому
psftp.c 5c42f97b68 Switch to flow-control-based SFTP uploading. 9 роки тому
psftp.h b0b5d5fbe6 Extend ACL-restriction to all Windows tools. 9 роки тому
putty.h f0f19b6147 Add some missing 'const' in version.c's string data. 9 роки тому
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. 9 роки тому
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. 9 роки тому
sftp.c 5c42f97b68 Switch to flow-control-based SFTP uploading. 9 роки тому
sftp.h 5c42f97b68 Switch to flow-control-based SFTP uploading. 9 роки тому
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. 9 роки тому
ssh.h f0f19b6147 Add some missing 'const' in version.c's string data. 9 роки тому
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. 10 роки тому
sshblowf.c 43be90e287 Split ssh2_cipher's keylen field into two. 9 роки тому
sshblowf.h d637528181 Implementation of OpenSSH's bcrypt. 10 роки тому
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. 9 роки тому
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 15 роки тому
sshgssc.h 99fffd6ed3 Patch from Alejandro Sedeno, somewhat modified by me, which 15 роки тому
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. 9 роки тому
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. 9 роки тому
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. 9 роки тому
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.