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.