diff options
| author | Werner Koch <[email protected]> | 1999-07-14 17:47:23 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 1999-07-14 17:47:23 +0000 |
| commit | 40f2d9f830fc86435e4d408689cb4168892d7d4c (patch) | |
| tree | d7b35f48495dcdc673133011b96e18162928280d /g10/import.c | |
| parent | See ChangeLog: Tue Jul 13 17:39:25 CEST 1999 Werner Koch (diff) | |
| download | gnupg-40f2d9f830fc86435e4d408689cb4168892d7d4c.tar.gz gnupg-40f2d9f830fc86435e4d408689cb4168892d7d4c.zip | |
See ChangeLog: Wed Jul 14 19:42:08 CEST 1999 Werner Koch
Diffstat (limited to 'g10/import.c')
| -rw-r--r-- | g10/import.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c index a81c7edbf..6511c8e01 100644 --- a/g10/import.c +++ b/g10/import.c @@ -34,6 +34,7 @@ #include "trustdb.h" #include "main.h" #include "i18n.h" +#include "status.h" static struct { @@ -199,6 +200,24 @@ import( IOBUF inp, int fast, const char* fname ) log_info(_(" secret keys unchanged: %lu\n"), stats.secret_dups ); } + if( is_status_enabled() ) { + char buf[12*16]; + sprintf(buf, "%lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu", + count, + stats.no_user_id, + stats.imported, + stats.imported_rsa, + stats.unchanged, + stats.n_uids, + stats.n_subk, + stats.n_sigs, + stats.n_revoc, + stats.secret_read, + stats.secret_imported, + stats.secret_dups); + write_status_text( STATUS_IMPORT_RES, buf ); + } + return rc; } @@ -385,6 +404,11 @@ import_one( const char *fname, KBNODE keyblock, int fast ) /* we are ready */ if( !opt.quiet ) log_info( _("key %08lX: public key imported\n"), (ulong)keyid[1]); + if( is_status_enabled() ) { + char *us = get_long_user_id_string( keyid ); + write_status_text( STATUS_IMPORTED, us ); + m_free(us); + } stats.imported++; if( is_RSA( pk->pubkey_algo ) ) stats.imported_rsa++; |
