disable DSA2 for old Libgcrypts.

This commit is contained in:
Werner Koch 2008-04-02 18:03:04 +00:00
parent 80f77d79c5
commit 5e755a2222
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-04-02 Werner Koch <wk@g10code.com>
* gpg.c (main): Do not allow DSA2 with a too old Libgcrypt.
2008-03-26 Werner Koch <wk@g10code.com>
* tdbio.c (lookup_hashtable): Make cmp args const.

View File

@ -2932,6 +2932,15 @@ main (int argc, char **argv)
"use!\n");
#endif
/* Older Libgcrypts fail with an assertion during DSA key
generation. Better disable DSA2 entirely. */
if (opt.flags.dsa2 && !gcry_check_version ("1.4.0") )
{
log_info ("WARNING: "
"DSA2 is only available with Libgcrypt 1.4 and later\n");
opt.flags.dsa2 = 0;
}
if (opt.verbose > 2)
log_info ("using character set `%s'\n", get_native_charset ());