I'm working on ticket 3564. The reporter is unable to use a particular key for encrypting an email. The essence of the problem is that the key's primary uid record has an empty User-ID field.
The "gpg --list-keys" command returns no uid records, and the pub record
has an empty User-ID field too. This is resulting in a pgp_key_t with
no address records.
Since "gpg --list-keys --with-colons" merges the primary uid and primary
key record, I wonder if it would be okay to modify parse_pub_line() to
*not* ignore an empty Field 10 for a pub record type.
So basically the patch would be something like:
case 10: /* name */
{
- if (!pend || !*p)
+ if (!(pend && (*p || is_pub)))
break; /* empty field or no trailing colon */
This would create an address record, recording the trust and flags, but
with a null addr field.
Can anyone think of an adverse effect from doing this? (I believe)
this would at least allow the primary key to be selected and used for
encryption.
Thank you,
-Kevin
signature.asc
Description: Digital signature
