1. 17 Aug, 2016 8 commits
  2. 09 Aug, 2016 1 commit
    • Daniel Kahn Gillmor's avatar
      gpg: Avoid publishing the GnuPG version by default · 61539efc
      Daniel Kahn Gillmor authored
      
      
      * g10/gpg.c (main): initialize opt.emit_version to 0
      * doc/gpg.texi: document different default for --emit-version
      
      --
      
      The version of GnuPG in use is not particularly helpful.  It is not
      cryptographically verifiable, and it doesn't distinguish between
      significant version differences like 2.0.x and 2.1.x.
      
      Additionally, it leaks metadata that can be used to distinguish users
      from one another, and can potentially be used to target specific
      attacks if there are known behaviors that differ between major
      versions.
      
      It's probably better to take the more parsimonious approach to
      metadata production by default.
      
      (backport of master commit c9387e41db7520d176edd3d6613b85875bdeb32c)
      
      Signed-off-by: Daniel Kahn Gillmor's avatarDaniel Kahn Gillmor <dkg@fifthhorseman.net>
      61539efc
  3. 04 Aug, 2016 3 commits
  4. 03 Aug, 2016 1 commit
  5. 09 Jul, 2016 1 commit
    • NIIBE Yutaka's avatar
      gpgv: Tweak default options for extra security. · cf01cf8b
      NIIBE Yutaka authored
      
      
      * g10/gpgv.c (main): Set opt.no_sig _cache, so that it doesn't depend on
      cached status.  Similarly, set opt.flags.require_cross_cert for backsig
      validation for subkey signature.
      
      --
      
      (backport of master
      commit e32c575e0f3704e7563048eea6d26844bdfc494b)
      
      It is common that an organization distributes binary keyrings with
      signature cache (Tag 12, Trust Packet) and people use gpgv to validate
      signature with such keyrings.  In such a use case, it is possible that
      the key validation itself is skipped.
      
      For the purpose of gpgv validation of signatures, we should not depend
      on signature cache in keyrings (if any), but we should validate the key
      by its self signature for primary key, and back signature for subkey.
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      cf01cf8b
  6. 06 Jul, 2016 1 commit
  7. 28 Jun, 2016 1 commit
    • NIIBE Yutaka's avatar
      g10: Fix --list-packets. · 39e32d37
      NIIBE Yutaka authored
      
      
      * g10/gpg.c (main): Call set_packet_list_mode after assignment of
      opt.list_packets.
      * g10/mainproc.c (do_proc_packets): Don't stop processing with
      --list-packets as the comment says.
      * g10/options.h (list_packets): Fix the comment.
      * g10/parse-packet.c: Fix the condition for opt.list_packets.
      
      --
      
      (backport from 2.0 commit 4f336ed780cc2783395f3ff2b12b3ebb8e097f7b
      which is backport of master
      commit 52f65281f9743c42a48bf5a3354c9ab0ecdb681a)
      
      Debian-bug-id: 828109
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      39e32d37
  8. 15 Jun, 2016 1 commit
    • NIIBE Yutaka's avatar
      g10: Fix another race condition for trustdb access. · db246f8b
      NIIBE Yutaka authored
      
      
      * g10/tdbio.c (create_version_record): Call create_hashtable to always
      make hashtable, together with the version record.
      (get_trusthashrec): Remove call to create_hashtable.
      
      --
      
      GnuPG-bug-id: 1675
      Thanks to Scott Moser to reproducible script and patience.
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      (backport from master
       commit 35a3ce2acf78a95fecbccfd8db0560cca24232df)
      db246f8b
  9. 08 Jun, 2016 1 commit
  10. 22 Apr, 2016 1 commit
  11. 04 Apr, 2016 1 commit
  12. 12 Feb, 2016 1 commit
    • NIIBE Yutaka's avatar
      g10: Make sure to have the directory for trustdb. · d957e438
      NIIBE Yutaka authored
      
      
      * g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE.  Check
      the directory and create it if none before calling take_write_lock.
      
      --
      
      Thanks to Marc Deslauriers for the bug report and his patch.
      
      GnuPG-bug-id: 2246
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      
      (backport from master
       commit 2f3e42047d17313eeb38d354048f343158402a8d)
      d957e438
  13. 01 Feb, 2016 1 commit
  14. 26 Jan, 2016 1 commit
    • NIIBE Yutaka's avatar
      g10: Fix iobuf API of filter function for alignment. · aa4a3aa3
      NIIBE Yutaka authored
      
      
      * include/iobuf.h (struct iobuf_struct): Remove DESC.
      * util/iobuf.c (iobuf_desc): New.
      (print_chain, iobuf_close, iobuf_open, iobuf_fdopen, iobuf_sockopen)
      (iobuf_create, iobuf_append, iobuf_openrw, iobuf_ioctl)
      (iobuf_push_filter2, pop_filter, underflow): Use iobuf_desc.
      (file_filter, sock_filter, block_filter): Fill the description.
      * g10/armor.c, g10/cipher.c, g10/compress-bz2.c, g10/compress.c,
      g10/encode.c, g10/encr-data.c, g10/mdfilter.c, g10/pipemode.c,
      g10/progress.c, g10/textfilter.c: Likewise.
      
      --
      
      Newer GCC warns against possible alignment difference of pointers.
      This change can silence those warnings.
      
      Signed-off-by: NIIBE Yutaka's avatarNIIBE Yutaka <gniibe@fsij.org>
      
      (backported from 2.1 commit 3f52c7da3940ec06572270d511000dc7fe9c27d2)
      aa4a3aa3
  15. 15 Jan, 2016 1 commit
  16. 13 Jan, 2016 1 commit
  17. 21 Dec, 2015 1 commit
  18. 20 Dec, 2015 1 commit
  19. 19 Dec, 2015 7 commits
    • Werner Koch's avatar
      Release 1.4.20 · 19549aec
      Werner Koch authored
      19549aec
    • Werner Koch's avatar
      w32: Avoid warning when using newer mingw versions. · 56daf9b6
      Werner Koch authored
      
      
      * g10/tdbio.c (ftruncate): Do not define if already defined.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      56daf9b6
    • Werner Koch's avatar
      po: Auto-update · 2ef92bb3
      Werner Koch authored
      --
      2ef92bb3
    • Werner Koch's avatar
      po: Update German translation · 84fe2e55
      Werner Koch authored
      
      
      --
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      84fe2e55
    • Ineiev's avatar
      po: Update Russian translation · 2561aaec
      Ineiev authored
      
      
      --
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      2561aaec
    • Daniel Kahn Gillmor's avatar
      gpg: Add option --weak-digest to gpg and gpgv. · 924518b1
      Daniel Kahn Gillmor authored
      
      
      * g10/options.h: Add weak_digests linked list to opts.
      * g10/main.h: Declare weakhash linked list struct and
      additional_weak_digest() function to insert newly-declared weak
      digests into opts.
      * g10/misc.c: (additional_weak_digest): New function.
      (print_digest_algo_note): Check for deprecated digests.
      * g10/sig-check.c: (do_check): Reject all weak digests.
      * g10/gpg.c: Add --weak-digest option to gpg.
      * doc/gpg.texi: Document gpg --weak-digest option.
      * g10/gpgv.c: Add --weak-digest option to gpgv.
      * doc/gpgv.texi: Document gpgv --weak-digest option.
      
      --
      gpg and gpgv treat signatures made over MD5 as unreliable, unless the
      user supplies --allow-weak-digests to gpg.  Signatures over any other
      digest are considered acceptable.
      
      Despite SHA-1 being a mandatory-to-implement digest algorithm in RFC
      4880, the collision-resistance of SHA-1 is weaker than anyone would
      like it to be.
      
      Some operators of high-value targets that depend on OpenPGP signatures
      may wish to require their signers to use a stronger digest algorithm
      than SHA1, even if the OpenPGP ecosystem at large cannot deprecate
      SHA1 entirely today.
      
      This changeset adds a new "--weak-digest DIGEST" option for both gpg
      and gpgv, which makes it straightforward for anyone to treat any
      signature or certification made over the specified digest as
      unreliable.
      
      This option can be supplied multiple times if the operator wishes to
      deprecate multiple digest algorithms, and will be ignored completely
      if the operator supplies --allow-weak-digests (as before).
      
      MD5 is always considered weak, regardless of any further
      --weak-digest options supplied.
      
      Signed-off-by: Daniel Kahn Gillmor's avatarDaniel Kahn Gillmor <dkg@fifthhorseman.net>
      
      (this is a rough cherry-pick of applying the following commits to
       STABLE-BRANCH-1-4:
        76afaed65e3b0ddfa4923cb577ada43217dd4b18
        b98939812abf6c643c752ce7c325f98039a1a9e2
        91015d021b3dcbe21ad0e580a4f34c523abf9e72
      )
      924518b1
    • Werner Koch's avatar
      gpg: Reject signatures made with MD5. · 43e5d28c
      Werner Koch authored
      * g10/gpg.c: Add option --allow-weak-digest-algos.
      (main): Set option also in PGP2 mode.
      * g10/options.h (struct opt): Add flags.allow_weak_digest_algos.
      * g10/sig-check.c (do_check): Reject MD5 signatures.
      * tests/openpgp/gpg.conf.tmpl: Add allow_weak_digest_algos.
      --
      (cherry picked from commit f90cfe6b66269de0154d810c5cee1fe9a5af475c)
      
      Resolved conflicts:
      	g10/gpg.c - adjust.
      	tests/openpgp/defs.inc - no changes
      43e5d28c
  20. 17 Dec, 2015 2 commits
  21. 20 Nov, 2015 1 commit
    • Werner Koch's avatar
      gpg: Avoid cluttering stdout with trustdb info in verbose mode. · 8b5cb544
      Werner Koch authored
      
      
      * g10/trustdb.c (validate_keys): Call dump_key_array only in debug
      mode.
      --
      
      I guess that is a left-over from an early attempt to output
      information on the trustdb for use by other tools.  Maybe related to
      the former --list-trust-path command.  Sending it to stdout is
      probably useful so we do this now only in debug mode.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      
      Backported to STABLE-BRANCH-1-4 from
      b03a2647299a6c8764a2574590cbaccdff9e497d by dkg
      8b5cb544
  22. 01 Oct, 2015 1 commit
    • Werner Koch's avatar
      gpg: Silence a compiler warning. · 6db18e29
      Werner Koch authored and NIIBE Yutaka's avatar NIIBE Yutaka committed
      * g10/parse-packet.c (enum_sig_subpkt): Replace hack.
      
      --
      
      GCC 5 failure reported by Kevin Locke <kevin@kevinlocke.name>
      
      (backport from master commit 6a0c3fa19cfcdd590b96691e8a8ffb48fb5e0ec4)
      6db18e29
  23. 17 Sep, 2015 1 commit
  24. 08 Sep, 2015 1 commit