From ae29b52119aa419989b773b2d6abb6e287dfc81b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 12 Aug 2014 10:36:30 +0200 Subject: gpg: Disable an MD5 workaround for pgp2 by default. * g10/sig-check.c (do_check): Move some code to ... * g10/misc.c (print_md5_rejected_note): new function. * g10/mainproc.c (proc_tree, proc_plaintext): Enable MD5 workaround only if option --allow-weak-digest-algos is used. --- g10/misc.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'g10/misc.c') diff --git a/g10/misc.c b/g10/misc.c index 0ad4602f9..54c2f8995 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -342,6 +342,21 @@ print_digest_algo_note (digest_algo_t algo) } +void +print_md5_rejected_note (void) +{ + static int shown; + + if (!shown) + { + log_info + (_("Note: signatures using the %s algorithm are rejected\n"), + "MD5"); + shown = 1; + } +} + + /* Map OpenPGP algo numbers to those used by Libgcrypt. We need to do this for algorithms we implemented in Libgcrypt after they become part of OpenPGP. */ -- cgit