aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tofu.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-08-05 12:40:36 +0000
committerWerner Koch <[email protected]>2016-08-10 14:55:04 +0000
commit5b59999ce0dd1650ebe47a74a30ded6af00eeed3 (patch)
treec54e05104131ed154ddb282df92ed412c2b95bab /g10/tofu.h
parentg10: Fix opening of trust database. (diff)
downloadgnupg-5b59999ce0dd1650ebe47a74a30ded6af00eeed3.tar.gz
gnupg-5b59999ce0dd1650ebe47a74a30ded6af00eeed3.zip
gpg: Remove tofu database format "split".
* g10/options.h (struct opt): Remove field tofu_db_format. * g10/gpg.h (server_control_s): Add fields tofu.batch_update_ref and tofu.batch_update_started. * g10/gpg.c (parse_tofu_db_format): Remove. (main): Make option --tofu-db-format obsolete. * g10/tofu.c: Major rework. Remove the pretty complicated and slower split format and with that all the caching. Use the dbs struct directly. Move global vars for batch update into CTRL. Change calling conventions of some function to take CTRL or DBS pointers instead of the former low-level database pointer. -- The split database format might have been nice for use with Unison but it bypasses the concept of a relational database by doing parts of this itself and also risking deadlocks. Working with the Tofu database for debugging or experiments is also not possible with parts of the database logic implemented in gpg. The Tofu support is quite new and we can assume that it is not in real use now. Thus we better remove that now so that we do not need to maintain it for all future. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/tofu.h')
-rw-r--r--g10/tofu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/tofu.h b/g10/tofu.h
index d3448b92f..e3ec81965 100644
--- a/g10/tofu.h
+++ b/g10/tofu.h
@@ -112,8 +112,8 @@ gpg_error_t tofu_get_policy (ctrl_t ctrl,
/* When doing a lot of DB activities (in particular, when listing
keys), this causes the DB to enter batch mode, which can
significantly speed up operations. */
-void tofu_begin_batch_update (void);
-void tofu_end_batch_update (void);
+void tofu_begin_batch_update (ctrl_t ctrl);
+void tofu_end_batch_update (ctrl_t ctrl);
/* Release all of the resources associated with a DB meta-handle. */
void tofu_closedbs (ctrl_t ctrl);