aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-03-17 16:54:36 +0000
committerWerner Koch <[email protected]>2014-03-17 17:14:23 +0000
commitf90cfe6b66269de0154d810c5cee1fe9a5af475c (patch)
tree8029968d62c1aa04655c4e942cb5d0b08972a5bb /tests
parentgpg: Make --auto-key-locate work again with keyservers. (diff)
downloadgnupg-f90cfe6b66269de0154d810c5cee1fe9a5af475c.tar.gz
gnupg-f90cfe6b66269de0154d810c5cee1fe9a5af475c.zip
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.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/openpgp/defs.inc1
1 files changed, 1 insertions, 0 deletions
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)