aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-10-26 15:38:41 +0000
committerWerner Koch <[email protected]>2015-10-26 15:38:41 +0000
commit0d37a40fc34519e93af3ceffff2cd726d29576d3 (patch)
tree6c88ec110cc19cf46d577818ec95093bb5f7cd63
parentdirmngr: Add example Tor hidden service. (diff)
downloadgnupg-0d37a40fc34519e93af3ceffff2cd726d29576d3.tar.gz
gnupg-0d37a40fc34519e93af3ceffff2cd726d29576d3.zip
w32: Make it build again if Tofu support is not available.
* g10/keylist.c (public_key_list) [!USE_TOFU]: Do not call tofu functions. Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--g10/keylist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index d4e6b7434..509cf7c1b 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -132,7 +132,9 @@ public_key_list (ctrl_t ctrl, strlist_t list, int locate_mode)
which is associated with the inode of a deleted file. */
check_trustdb_stale ();
+#ifdef USE_TOFU
tofu_begin_batch_update ();
+#endif
if (locate_mode)
locate_one (ctrl, list);
@@ -141,7 +143,9 @@ public_key_list (ctrl_t ctrl, strlist_t list, int locate_mode)
else
list_one (ctrl, list, 0, opt.with_secret);
+#ifdef USE_TOFU
tofu_end_batch_update ();
+#endif
}