1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-31 20:08:43 +01:00
Go to file
Werner Koch 72feb8fa82
gpgtar: Improve error messages.
* tools/gpgtar.h (struct tarinfo_s): New.
* tools/gpgtar.c (cmd, skip_crypto, files_from, null_names): Move
global vars more to the top.
(set_cmd): Rename 'cmd' to 'c'.
* tools/gpgtar-list.c (parse_header): Add arg 'info' and improve error
messages.
(read_header): Add arg 'info' and update counter.
(skip_data): Ditto.
(gpgtar_list): Pass info object to read functions.
(gpgtar_read_header): Add arg 'info'.
* tools/gpgtar-extract.c (gpgtar_extract): add arg 'info' and pass on.
(extract_regular): Add arg 'info' and update counter.
--

This now prints the block number of a header with error.

Signed-off-by: Werner Koch <wk@gnupg.org>
2019-03-06 17:46:40 +01:00
agent agent: Default to extended key format. 2019-03-06 14:09:57 +01:00
am Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
artwork artwork: State license of the logo 2018-08-30 10:33:28 +02:00
build-aux speedo: Remove obsolete configure option of gpgme. 2018-11-05 12:47:44 +01:00
common scd: For PIV cards used NO_AUTH instead of BAD_PIN. 2019-02-11 09:07:54 +01:00
dirmngr libdns: Avoid using compound literals (8). 2019-02-26 12:26:02 +09:00
doc agent: Default to extended key format. 2019-03-06 14:09:57 +01:00
g10 gpg: Make invalid primary key algos obvious in key listings. 2019-03-05 12:39:11 +01:00
g13 all: fix spelling and typos 2018-10-24 15:56:18 -04:00
kbx gpg: Implement searching keys via keygrip. 2019-01-29 20:10:11 +01:00
m4 Remove the gpg-zip script. 2018-11-14 13:31:39 +01:00
po card: Rename gpg-card-tool to gpg-card. 2019-02-25 09:34:30 +01:00
scd card: Print card version. Check for bad Yubikeys. 2019-03-05 17:40:08 +01:00
sm sm: Print Yubikey attestation extensions with --dump-cert. 2019-03-01 15:23:49 +01:00
tests gpgscm: Build well even if NDEBUG defined. 2019-02-25 10:44:16 +09:00
tools gpgtar: Improve error messages. 2019-03-06 17:46:40 +01:00
.gitignore build: Ignore two build image files in doc/ 2016-06-17 18:38:34 +02:00
ABOUT-NLS Preparing a test release 2008-02-15 09:58:01 +00:00
acinclude.m4 Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
AUTHORS Register DCO for Jiri Kerestes. 2018-07-26 11:44:10 +09:00
autogen.rc build: Remove --with-*-prefix from configure_opts. 2018-12-04 12:32:01 +09:00
autogen.sh build: Update autogen.sh to set a git PATCH prefix. 2018-02-21 18:26:23 +01:00
ChangeLog Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
ChangeLog-2011 Added release date of older versions to NEWS. 2015-06-15 14:12:43 +02:00
configure.ac common/mischelp: use platform memory zeroing function for wipememory 2018-12-01 13:43:09 +02:00
COPYING Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
COPYING.CC0 doc: Update license information. 2016-09-19 10:03:26 +02:00
COPYING.GPL2 Change license of some files to LGPLv2.1. 2017-06-19 12:42:13 +02:00
COPYING.LGPL3 Change license of some files to LGPLv2.1. 2017-06-19 12:42:13 +02:00
COPYING.LGPL21 Change license of some files to LGPLv2.1. 2017-06-19 12:42:13 +02:00
COPYING.other doc: Add license notes for libdns. 2016-12-14 15:57:16 +01:00
INSTALL Upgraded gettext. 2007-05-07 19:49:12 +00:00
Makefile.am all: fix more spelling errors 2018-10-25 16:53:05 -04:00
NEWS doc: Add NEWS item from recent 2.2 releases. 2018-11-16 08:30:47 +01:00
README build: Update swdb tags and include release info from 2.2.5 2018-02-22 16:34:36 +01:00
README.GIT build: Require automake 1.14. 2015-01-05 14:55:36 +01:00
README.maint doc: Replace README.maint content. 2017-03-07 10:34:08 +01:00
THANKS doc: Formatting fixes. 2013-04-19 12:01:22 +02:00
TODO Impleemned gpgsm's IMPORT --re-import feature. 2009-07-07 16:52:12 +00:00

                       The GNU Privacy Guard 2
                      =========================
                         Version 2.3 (devel)

          Copyright 1997-2018 Werner Koch
          Copyright 1998-2018 Free Software Foundation, Inc.


* INTRODUCTION

  GnuPG is a complete and free implementation of the OpenPGP standard
  as defined by RFC4880 (also known as PGP).  GnuPG enables encryption
  and signing of data and communication, and features a versatile key
  management system as well as access modules for public key
  directories.

  GnuPG, also known as GPG, is a command line tool with features for
  easy integration with other applications.  A wealth of frontend
  applications and libraries are available that make use of GnuPG.
  Starting with version 2 GnuPG provides support for S/MIME and Secure
  Shell in addition to OpenPGP.

  GnuPG is Free Software (meaning that it respects your freedom). It
  can be freely used, modified and distributed under the terms of the
  GNU General Public License.

  Note that the 2.0 series of GnuPG will reach end-of-life on
  2017-12-31.  It is not possible to install a 2.2.x version along
  with any 2.0.x version.  However, it is possible to install GnuPG
  1.4 along with any 2.x version.


* BUILD INSTRUCTIONS

  GnuPG 2.2 depends on the following GnuPG related packages:

    npth         (https://gnupg.org/ftp/gcrypt/npth/)
    libgpg-error (https://gnupg.org/ftp/gcrypt/libgpg-error/)
    libgcrypt    (https://gnupg.org/ftp/gcrypt/libgcrypt/)
    libksba      (https://gnupg.org/ftp/gcrypt/libksba/)
    libassuan    (https://gnupg.org/ftp/gcrypt/libassuan/)

  You should get the latest versions of course, the GnuPG configure
  script complains if a version is not sufficient.

  For some advanced features several other libraries are required.
  The configure script prints diagnostic messages if one of these
  libraries is not available and a feature will not be available..

  You also need the Pinentry package for most functions of GnuPG;
  however it is not a build requirement.  Pinentry is available at
  https://gnupg.org/ftp/gcrypt/pinentry/ .

  After building and installing the above packages in the order as
  given above, you may continue with GnuPG installation (you may also
  just try to build GnuPG to see whether your already installed
  versions are sufficient).

  As with all packages, you just have to do

    ./configure
    make
    make check
    make install

  The "make check" is optional but highly recommended.  To run even
  more tests you may add "--enable-all-tests" to the configure run.
  Before running the "make install" you might need to become root.

  If everything succeeds, you have a working GnuPG with support for
  OpenPGP, S/MIME, ssh-agent, and smartcards.  Note that there is no
  binary gpg but a gpg2 so that this package won't conflict with a
  GnuPG 1.4 installation.  gpg2 behaves just like gpg.

  In case of problem please ask on the gnupg-users@gnupg.org mailing
  list for advise.

  Instruction on how to build for Windows can be found in the file
  doc/HACKING in the section "How to build an installer for Windows".
  This requires some experience as developer.

  Note that the PKITS tests are always skipped unless you copy the
  PKITS test data file into the tests/pkits directory.  There is no
  need to run these test and some of them may even fail because the
  test scripts are not yet complete.

  You may run

    gpgconf --list-dirs

  to view the default directories used by GnuPG.

  To quickly build all required software without installing it, the
  Speedo method may be used:

    make -f build-aux/speedo.mk  native

  This method downloads all required libraries and does a native build
  of GnuPG to PLAY/inst/.  GNU make is required and you need to set
  LD_LIBRARY_PATH to $(pwd)/PLAY/inst/lib to test the binaries.

** Specific build problems on some machines:

*** Apple OSX 10.x using XCode

  On some versions the correct location of a header file can't be
  detected by configure.  To fix that you should run configure like
  this

    ./configure  gl_cv_absolute_stdint_h=/usr/include/stdint.h

  Add other options as needed.


*** Systems without a full C99 compiler

  If you run into problems with your compiler complaining about dns.c
  you may use

    ./configure --disable-libdns

  Add other options as needed.


* MIGRATION from 1.4 or 2.0 to 2.2

  The major change in 2.2 is gpg-agent taking care of the OpenPGP
  secret keys (those managed by GPG).  The former file "secring.gpg"
  will not be used anymore.  Newly generated keys are stored in the
  agent's key store directory "~/.gnupg/private-keys-v1.d/".  The
  first time gpg needs a secret key it checks whether a "secring.gpg"
  exists and copies them to the new store.  The old secring.gpg is
  kept for use by older versions of gpg.

  Note that gpg-agent now uses a fixed socket.  All tools will start
  the gpg-agent as needed.  The formerly used environment variable
  GPG_AGENT_INFO is ignored by 2.2.  The SSH_AUTH_SOCK environment
  variable should be set to a fixed value.

  The Dirmngr is now part of GnuPG proper and also used to access
  OpenPGP keyservers.  The directory layout of Dirmngr changed to make
  use of the GnuPG directories.  Dirmngr is started by gpg or gpgsm as
  needed. There is no more need to install a separate Dirmngr package.

  All changes introduced with GnuPG 2.2 have been developed in the 2.1
  series of releases.  See the respective entries in the file NEWS.

* RECOMMENDATIONS

** Socket directory

  GnuPG uses Unix domain sockets to connect its components (on Windows
  an emulation of these sockets is used).  Depending on the type of
  the file system, it is sometimes not possible to use the GnuPG home
  directory (i.e. ~/.gnupg) as the location for the sockets.  To solve
  this problem GnuPG prefers the use of a per-user directory below the
  the /run (or /var/run) hierarchy for the the sockets.  It is thus
  suggested to create per-user directories on system or session
  startup.  For example the following snippet can be used in
  /etc/rc.local to create these directories:

      [ ! -d /run/user ] && mkdir /run/user
      awk -F: </etc/passwd '$3 >= 1000 && $3 < 65000 {print $3}' \
        | ( while read uid rest; do
              if [ ! -d "/run/user/$uid" ]; then
                mkdir /run/user/$uid
                chown $uid /run/user/$uid
                chmod 700 /run/user/$uid
              fi
            done )


* DOCUMENTATION

  The complete documentation is in the texinfo manual named
  `gnupg.info'.  Run "info gnupg" to read it.  If you want a a
  printable copy of the manual, change to the "doc" directory and
  enter "make pdf" For a HTML version enter "make html" and point your
  browser to gnupg.html/index.html.  Standard man pages for all
  components are provided as well.  An online version of the manual is
  available at [[https://gnupg.org/documentation/manuals/gnupg/]] .  A
  version of the manual pertaining to the current development snapshot
  is at [[https://gnupg.org/documentation/manuals/gnupg-devel/]] .


* Installing GnuPG 2.2. and GnuPG 1.4

  GnuPG 2.2 is a current version of GnuPG with state of the art
  security design and many more features.  To install both versions
  alongside, it is suggested to rename the 1.4 version of "gpg" to
  "gpg1" as well as the corresponding man page.  Newer releases of the
  1.4 branch will likely do this by default.  In case this is not
  possible, the 2.2 version can be installed under the name "gpg2"
  using the configure option --enable-gpg-is-gpg2.


* HOW TO GET MORE INFORMATION

  A description of new features and changes since version 2.1 can be
  found in the file "doc/whats-new-in-2.1.txt" and online at
  "https://gnupg.org/faq/whats-new-in-2.1.html" .

  The primary WWW page is "https://gnupg.org"
             or using Tor "http://ic6au7wa3f6naxjq.onion"
  The primary FTP site is "https://gnupg.org/ftp/gcrypt/"

  See [[https://gnupg.org/download/mirrors.html]] for a list of
  mirrors and use them if possible.  You may also find GnuPG mirrored
  on some of the regular GNU mirrors.

  We have some mailing lists dedicated to GnuPG:

     gnupg-announce@gnupg.org   For important announcements like new
                                versions and such stuff.  This is a
                                moderated list and has very low traffic.
                                Do not post to this list.

     gnupg-users@gnupg.org      For general user discussion and
                                help (English).

     gnupg-de@gnupg.org         German speaking counterpart of
                                gnupg-users.

     gnupg-ru@gnupg.org         Russian speaking counterpart of
                                gnupg-users.

     gnupg-devel@gnupg.org      GnuPG developers main forum.

  You subscribe to one of the list by sending mail with a subject of
  "subscribe" to x-request@gnupg.org, where x is the name of the
  mailing list (gnupg-announce, gnupg-users, etc.). See
  https://gnupg.org/documentation/mailing-lists.html for archives
  of the mailing lists.

  Please direct bug reports to [[https://bugs.gnupg.org]] or post them
  direct to the mailing list <gnupg-devel@gnupg.org>.

  Please direct questions about GnuPG to the users mailing list or one
  of the PGP newsgroups; please do not direct questions to one of the
  authors directly as we are busy working on improvements and bug
  fixes.  The English and German mailing lists are watched by the
  authors and we try to answer questions when time allows us.

  Commercial grade support for GnuPG is available; for a listing of
  offers see https://gnupg.org/service.html .  Maintaining and
  improving GnuPG requires a lot of time.  Since 2001, g10 Code GmbH,
  a German company owned and headed by GnuPG's principal author Werner
  Koch, is bearing the majority of these costs.  To keep GnuPG in a
  healthy state, they need your support.

  Please consider to donate at https://gnupg.org/donate/ .


# This file is Free Software; as a special exception the authors gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved. For conditions
# of the whole package, please see the file COPYING.  This file is
# distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY, to the extent permitted by law; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# Local Variables:
# mode:org
# End: