[svn] GnuPG - r5329 - branches/STABLE-BRANCH-2-0/g10
svn author wk
cvs at cvs.gnupg.org
Fri May 7 13:15:26 CEST 2010
Author: wk
Date: 2010-05-07 13:15:26 +0200 (Fri, 07 May 2010)
New Revision: 5329
Modified:
branches/STABLE-BRANCH-2-0/g10/ChangeLog
branches/STABLE-BRANCH-2-0/g10/import.c
Log:
Fix for bug 1223
Modified: branches/STABLE-BRANCH-2-0/g10/ChangeLog
===================================================================
--- branches/STABLE-BRANCH-2-0/g10/ChangeLog 2010-05-07 10:36:24 UTC (rev 5328)
+++ branches/STABLE-BRANCH-2-0/g10/ChangeLog 2010-05-07 11:15:26 UTC (rev 5329)
@@ -1,5 +1,8 @@
2010-05-07 Werner Koch <wk at g10code.com>
+ * import.c (chk_self_sigs): Check direct key signatures. Fixes
+ bug#1223.
+
* import.c (chk_self_sigs): Re-indent and slighly re-arrange code.
Use test macros for the sig class.
Modified: branches/STABLE-BRANCH-2-0/g10/import.c
===================================================================
--- branches/STABLE-BRANCH-2-0/g10/import.c 2010-05-07 10:36:24 UTC (rev 5328)
+++ branches/STABLE-BRANCH-2-0/g10/import.c 2010-05-07 11:15:26 UTC (rev 5329)
@@ -1431,6 +1431,19 @@
unode->flag |= 1; /* Mark that signature checked. */
}
}
+ else if (IS_KEY_SIG (sig))
+ {
+ rc = check_key_signature (keyblock, n, NULL);
+ if ( rc )
+ {
+ if (opt.verbose)
+ log_info (gpg_err_code (rc) == G10ERR_PUBKEY_ALGO ?
+ _("key %s: unsupported public key algorithm\n"):
+ _("key %s: invalid direct key signature\n"),
+ keystr (keyid));
+ n->flag |= 4;
+ }
+ }
else if ( IS_SUBKEY_SIG (sig) )
{
/* Note that this works based solely on the timestamps like
More information about the Gnupg-commits
mailing list