diff options
| author | Werner Koch <[email protected]> | 2016-11-10 16:13:02 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2016-11-10 16:13:34 +0000 |
| commit | 2a39bd6c30d21c43c86645a7908ce6c57dad5e20 (patch) | |
| tree | 44165ff7906b66c922b51821f6af2b9c7f488861 /src/status-table.c | |
| parent | tests: Fix additional memleaks in thread tests (diff) | |
| download | gpgme-2a39bd6c30d21c43c86645a7908ce6c57dad5e20.tar.gz gpgme-2a39bd6c30d21c43c86645a7908ce6c57dad5e20.zip | |
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 <[email protected]>
Diffstat (limited to 'src/status-table.c')
0 files changed, 0 insertions, 0 deletions
