Home GnuPG
Diffusion GnuPG 76e2aa739c0c

g10: Improve handling of no corresponding public key.
76e2aa739c0cUnpublished

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.

(ported from 1.4 commit b3fd30451a5464b124b0296afbc341cb98b3977c)

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
rGbe1362734545: gpg-connect-agent: Fix quoting of internal percent+ function.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG76e2aa739c0c: g10: Improve handling of no corresponding public key. (authored by NIIBE Yutaka <gniibe@fsij.org>).May 19 2015, 3:25 AM