From f90cfe6b66269de0154d810c5cee1fe9a5af475c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 17 Mar 2014 17:54:36 +0100 Subject: 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. --- tests/openpgp/defs.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/openpgp/defs.inc b/tests/openpgp/defs.inc index 008d32a43..2faa4c25a 100755 --- a/tests/openpgp/defs.inc +++ b/tests/openpgp/defs.inc @@ -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) -- cgit v1.2.3