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.