[svn] GnuPG - r4180 - trunk/g10
svn author dshaw
cvs at cvs.gnupg.org
Wed Jun 28 17:26:07 CEST 2006
Author: dshaw
Date: 2006-06-28 17:26:05 +0200 (Wed, 28 Jun 2006)
New Revision: 4180
Modified:
trunk/g10/ChangeLog
trunk/g10/pkclist.c
Log:
* pkclist.c (algo_available): Automatically enable DSA2 mode when handling
a key that clearly isn't DSA1 (i.e. q!=160).
Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog 2006-06-28 15:14:09 UTC (rev 4179)
+++ trunk/g10/ChangeLog 2006-06-28 15:26:05 UTC (rev 4180)
@@ -1,3 +1,8 @@
+2006-06-28 David Shaw <dshaw at 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 at g10code.com>
* app-openpgp.c (do_writekey): Fixed computation of memmove
Modified: trunk/g10/pkclist.c
===================================================================
--- trunk/g10/pkclist.c 2006-06-28 15:14:09 UTC (rev 4179)
+++ trunk/g10/pkclist.c 2006-06-28 15:26:05 UTC (rev 4180)
@@ -1212,12 +1212,12 @@
{
if(hint)
{
- if(opt.flags.dsa2)
+ if((*(int *)hint)!=20 || opt.flags.dsa2)
{
- /* If --enable-dsa2 is set, then we'll accept a hash
- that is larger than we need. If --enable-dsa2 is not
- set, then we won't accept any hash that isn't exactly
- the right size. */
+ /* If --enable-dsa2 is set or the hash isn't 160 bits
+ (which implies DSA2), then we'll accept a hash that
+ is larger than we need. Otherwise we won't accept
+ any hash that isn't exactly the right size. */
if((*(int *)hint) > md_digest_length(algo))
return 0;
}
More information about the Gnupg-commits
mailing list