Home GnuPG
Diffusion GPGME 2a39bd6c30d2

core: Detect unreadable keyrings.
2a39bd6c30d2Unpublished

Unpublished Commit · Learn More

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

Description

core: Detect unreadable keyrings.

* src/keylist.c (op_data_t): Add field keydb_search_err.
(keylist_status_handler): Parse STATUS_ERROR into that var.
(gpgme_op_keylist_next): Use that err instead of GPG_ERR_EOF.

With a recent GnuPG version this allows to detect a keyring with wrong
permissions (i.e. no read access). GPG_ERR_OPEN_KEYRING will be
returned instead of GPG_ERR_EOF.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Nov 10 2016, 5:13 PM
Parents
rMd0030efb45ec: tests: Fix additional memleaks in thread tests
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rM2a39bd6c30d2: core: Detect unreadable keyrings. (authored by Werner Koch <wk@gnupg.org>).Nov 10 2016, 5:13 PM