mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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/defs.inc: Add allow_weak_digest_algos to gpg.conf.
This commit is contained in:
parent
1e2e39c575
commit
f90cfe6b66
5 changed files with 36 additions and 3 deletions
|
@ -245,6 +245,7 @@ for f in gpg.conf gpg-agent.conf ; do
|
|||
gpg.conf)
|
||||
[ -n "${opt_always}" ] && echo "no-auto-check-trustdb" >>"$f"
|
||||
echo "agent-program $GPG_AGENT" >>"$f"
|
||||
echo "allow-weak-digest-algos" >>"$f"
|
||||
|
||||
;;
|
||||
gpg-agent.conf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue