diff options
author | Werner Koch <[email protected]> | 2014-03-17 16:54:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-03-17 17:14:23 +0000 |
commit | f90cfe6b66269de0154d810c5cee1fe9a5af475c (patch) | |
tree | 8029968d62c1aa04655c4e942cb5d0b08972a5bb /g10/options.h | |
parent | gpg: Make --auto-key-locate work again with keyservers. (diff) | |
download | gnupg-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 'g10/options.h')
-rw-r--r-- | g10/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h index 592e06698..c622a4639 100644 --- a/g10/options.h +++ b/g10/options.h @@ -228,6 +228,7 @@ struct unsigned int utf8_filename:1; unsigned int dsa2:1; unsigned int allow_multiple_messages:1; + unsigned int allow_weak_digest_algos:1; } flags; /* Linked list of ways to find a key if the key isn't on the local |