aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/keybox.h
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-12-15 12:09:27 +0000
committerNeal H. Walfield <[email protected]>2015-12-15 12:09:50 +0000
commitf369efd6712148dc7ed40dba6d1ff5b0e169431a (patch)
tree49ee59d35181b65a7f7062b6235db207870020d7 /kbx/keybox.h
parentgpg: Improve the keyblock cache's transparency. (diff)
downloadgnupg-f369efd6712148dc7ed40dba6d1ff5b0e169431a.tar.gz
gnupg-f369efd6712148dc7ed40dba6d1ff5b0e169431a.zip
gpg: Improve the keyblock cache's transparency.
* kbx/keybox-search.c (keybox_seek): New function. * g10/keydb.c (keydb_search): When reading from the cache, seek to just after the cached record. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'kbx/keybox.h')
-rw-r--r--kbx/keybox.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbx/keybox.h b/kbx/keybox.h
index c91a28299..8b75db45c 100644
--- a/kbx/keybox.h
+++ b/kbx/keybox.h
@@ -77,8 +77,6 @@ int keybox_set_ephemeral (KEYBOX_HANDLE hd, int yes);
int keybox_lock (KEYBOX_HANDLE hd, int yes);
-off_t keybox_offset (KEYBOX_HANDLE hd);
-
/*-- keybox-file.c --*/
/* Fixme: This function does not belong here: Provide a better
interface to create a new keybox file. */
@@ -97,6 +95,8 @@ int keybox_search (KEYBOX_HANDLE hd, KEYBOX_SEARCH_DESC *desc, size_t ndesc,
keybox_blobtype_t want_blobtype,
size_t *r_descindex, unsigned long *r_skipped);
+off_t keybox_offset (KEYBOX_HANDLE hd);
+gpg_error_t keybox_seek (KEYBOX_HANDLE hd, off_t offset);
/*-- keybox-update.c --*/
gpg_error_t keybox_insert_keyblock (KEYBOX_HANDLE hd,