mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02:00
* pkclist.c (algo_available): Automatically enable DSA2 mode when handling
a key that clearly isn't DSA1 (i.e. q!=160).
This commit is contained in:
parent
23380119ee
commit
7c457fac67
@ -1,3 +1,8 @@
|
|||||||
|
2006-06-28 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* pkclist.c (algo_available): Automatically enable DSA2 mode when
|
||||||
|
handling a key that clearly isn't DSA1 (i.e. q!=160).
|
||||||
|
|
||||||
2006-06-28 Werner Koch <wk@g10code.com>
|
2006-06-28 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* app-openpgp.c (do_writekey): Fixed computation of memmove
|
* app-openpgp.c (do_writekey): Fixed computation of memmove
|
||||||
|
@ -1212,12 +1212,12 @@ algo_available( preftype_t preftype, int algo, void *hint )
|
|||||||
{
|
{
|
||||||
if(hint)
|
if(hint)
|
||||||
{
|
{
|
||||||
if(opt.flags.dsa2)
|
if((*(int *)hint)!=20 || opt.flags.dsa2)
|
||||||
{
|
{
|
||||||
/* If --enable-dsa2 is set, then we'll accept a hash
|
/* If --enable-dsa2 is set or the hash isn't 160 bits
|
||||||
that is larger than we need. If --enable-dsa2 is not
|
(which implies DSA2), then we'll accept a hash that
|
||||||
set, then we won't accept any hash that isn't exactly
|
is larger than we need. Otherwise we won't accept
|
||||||
the right size. */
|
any hash that isn't exactly the right size. */
|
||||||
if((*(int *)hint) > md_digest_length(algo))
|
if((*(int *)hint) > md_digest_length(algo))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user