gpg: Reject signatures made with MD5.
authorWerner Koch <wk@gnupg.org>
Mon, 17 Mar 2014 16:54:36 +0000 (17:54 +0100)
committerWerner Koch <wk@gnupg.org>
Tue, 3 Jun 2014 06:44:08 +0000 (08:44 +0200)
commit8a4bd132f73aaf1588fb03340392fe22dd8e18ed
tree5bfc1d89136491ec374afc8acda2aa73799e5aa9
parent3d4a36c8c98a15a4c5237fe2d10475a14b4c170a
gpg: Reject signatures made with MD5.

* 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
doc/gpg.texi
g10/gpg.c
g10/options.h
g10/sig-check.c
tests/openpgp/defs.inc
tests/openpgp/gpg.conf.tmpl