summaryrefslogtreecommitdiffstats
path: root/sm/keydb.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-01-13 15:08:42 +0100
committerWerner Koch <wk@gnupg.org>2016-01-13 15:08:42 +0100
commitc7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0 (patch)
tree0148dd57d0618522515d0da351db23794cf0d1a8 /sm/keydb.h
parentgpg: Improve error code from lock_all. (diff)
downloadgnupg2-c7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0.tar.xz
gnupg2-c7ca0f73dbe7c080b79f93f90f00ba2396fc4bd0.zip
kbx: Change return type of search functions to gpg_error_t.
* kbx/keybox-search.c (keybox_search_reset): Change return type to gpg_error_t. (keybox_search): Ditto. Also handle GPG_ERR_EOF. * sm/keydb.c (keydb_search_reset): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r--sm/keydb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/keydb.h b/sm/keydb.h
index 03de1c69e..3c0f2d6ee 100644
--- a/sm/keydb.h
+++ b/sm/keydb.h
@@ -54,7 +54,7 @@ int keydb_delete (KEYDB_HANDLE hd, int unlock);
int keydb_locate_writable (KEYDB_HANDLE hd, const char *reserved);
void keydb_rebuild_caches (void);
-int keydb_search_reset (KEYDB_HANDLE hd);
+gpg_error_t keydb_search_reset (KEYDB_HANDLE hd);
int keydb_search (KEYDB_HANDLE hd, KEYDB_SEARCH_DESC *desc, size_t ndesc);
int keydb_search_first (KEYDB_HANDLE hd);
int keydb_search_next (KEYDB_HANDLE hd);