mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
disable DSA2 for old Libgcrypts.
This commit is contained in:
parent
80f77d79c5
commit
5e755a2222
@ -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.
|
||||
|
@ -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 ());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user