[patch] Re: non self-signed RSA PGP keys
Werner Koch
wk@gnupg.org
Fri, 26 Nov 1999 10:57:11 +0100
Zygo Blaxell <eayhfhbo@umail.corel.com> writes:
> I was trying to verify an X-Force PGP-signed message the other day.
> Here is the key and my attempt to import it:
>
> gpg: key 7DF5E1BD: no valid user IDs
> gpg: this may be caused by a missing self-signature
> gpg: Total number processed: 1
> gpg: w/o user IDs: 1
I have fixed this problem and it will go into 1.0.1. Here is a patch
against 1.0.0g:
--- archive/gnupg-1.0.0g/g10/import.c Fri Nov 12 17:51:12 1999
+++ gnupg-stable/g10/import.c Thu Nov 25 09:58:57 1999
@@ -794,7 +794,8 @@
KBNODE node;
for(node=keyblock->next; node; node = node->next ) {
if( node->pkt->pkttype == PKT_USER_ID && !(node->flag & 1) ) {
- if( node->next && node->next->pkt->pkttype == PKT_SIGNATURE ) {
+ if( (node->next && node->next->pkt->pkttype == PKT_SIGNATURE)
+ || !node->next ) {
node->flag |= 1;
log_info( _("key %08lX: accepted non self-signed user ID '"),
(ulong)kid[1]);
--
Werner Koch at guug.de www.gnupg.org keyid 621CC013