mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
2b8d8369d5
commit
ae29b52119
4 changed files with 32 additions and 22 deletions
15
g10/misc.c
15
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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue