aboutsummaryrefslogtreecommitdiffstats
path: root/g10/test-stubs.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-11-12 15:02:35 +0000
committerWerner Koch <[email protected]>2015-11-12 15:44:00 +0000
commite3c48335f9c5081c6080bceafa7a04140403427a (patch)
treeea08f4cb8b9c3139f7de57d47825ab257f69da90 /g10/test-stubs.c
parentdirmngr: Do not block during ADNS calls. (diff)
downloadgnupg-e3c48335f9c5081c6080bceafa7a04140403427a.tar.gz
gnupg-e3c48335f9c5081c6080bceafa7a04140403427a.zip
gpg: Print export statistics to the status-fd.
* common/status.h (STATUS_EXPORT_RES): New. * g10/main.h (export_stats_t): New. * g10/export.c (export_stats_s): New. (export_new_stats, export_release_stats): New. (export_print_stats): New. (export_pubkeys, export_seckeys, export_secsubkeys) (export_pubkey_buffer, do_export): Add arg "stats". (do_export_stream): Add arg stats and update it. * g10/gpg.c (main) <aExport, aExportSecret, aExportSecretSub>: Create, pass, and print a stats object to the export function calls. * g10/export.c (export_pubkeys_stream): Remove unused function. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/test-stubs.c')
-rw-r--r--g10/test-stubs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/test-stubs.c b/g10/test-stubs.c
index 0aa89b2ff..0e6616cb9 100644
--- a/g10/test-stubs.c
+++ b/g10/test-stubs.c
@@ -418,11 +418,13 @@ gpg_dirmngr_get_pka (ctrl_t ctrl, const char *userid,
gpg_error_t
export_pubkey_buffer (ctrl_t ctrl, const char *keyspec, unsigned int options,
+ export_stats_t stats,
kbnode_t *r_keyblock, void **r_data, size_t *r_datalen)
{
(void)ctrl;
(void)keyspec;
(void)options;
+ (void)stats;
*r_keyblock = NULL;
*r_data = NULL;