diff options
author | Werner Koch <wk@gnupg.org> | 2015-11-12 16:02:35 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-11-12 16:44:00 +0100 |
commit | e3c48335f9c5081c6080bceafa7a04140403427a (patch) | |
tree | ea08f4cb8b9c3139f7de57d47825ab257f69da90 /g10/gpgv.c | |
parent | dirmngr: Do not block during ADNS calls. (diff) | |
download | gnupg2-e3c48335f9c5081c6080bceafa7a04140403427a.tar.xz gnupg2-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 <wk@gnupg.org>
Diffstat (limited to 'g10/gpgv.c')
-rw-r--r-- | g10/gpgv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/gpgv.c b/g10/gpgv.c index 138f03581..d39eb6622 100644 --- a/g10/gpgv.c +++ b/g10/gpgv.c @@ -606,11 +606,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; |