Home GnuPG
Diffusion GnuPG b3fd30451a54

g10: Improve handling of no corresponding public key.
b3fd30451a54Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Improve handling of no corresponding public key.

* g10/getkey.c (get_seckey): Return G10ERR_NO_PUBKEY when it's not
exact match.

In the situation of corrupted .gnupg/ where only private subkey is
available but no corresponding public key of the subkey, the code
returned public primary key which caused mysterious error (for a
user). This fix detects an error earlier.

Details

Provenance
gniibeAuthored on May 19 2015, 3:14 AM
Parents
rG04667cabef2d: g10: fix cmp_public_key and cmp_secret_keys.
Branches
Unknown
Tags
Unknown