Mailing List Archive

importing keys: result?
sorry to bug you, but my recent q to the topic was wrong-worded, this is my
next try:

when importing keys, gpg outputs several lines of status-info, one of which
looks like:
[gnupg] import_res 1 1 0 0 0 0 0 0 0 0 0 0 (numbers might be wrong).
what, known ones, is the meaning of this conundrum?

--
ino-waiting@gmx.net
Re: importing keys: result? [ In reply to ]
ino-waiting@gmx.net writes:
> sorry to bug you, but my recent q to the topic was wrong-worded, this is my
> next try:
>
> when importing keys, gpg outputs several lines of status-info, one of which
> looks like:
> [gnupg] import_res 1 1 0 0 0 0 0 0 0 0 0 0 (numbers might be wrong).
> what, known ones, is the meaning of this conundrum?

Haven't seen this before. Maybe you could supply the version of
gpg you're using, cmd line options, and the key you want to import?
Re: importing keys: result? [ In reply to ]
> Lars Hecking (Sun 07.0500-03:16):

> > when importing keys, gpg outputs several lines of status-info, one of which
> > looks like:
> > [gnupg] import_res 1 1 0 0 0 0 0 0 0 0 0 0 (numbers might be wrong).
> > what, known ones, is the meaning of this conundrum?
>
> Haven't seen this before. Maybe you could supply the version of
> gpg you're using, cmd line options, and the key you want to import?

gpg (GnuPG) 1.0.1
Copyright (C) 1999 Free Software Foundation, Inc.

Home: ~/.gnupg
Supported algorithms:
Cipher: IDEA, 3DES, CAST5, TWOFISH
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Hash: MD5, SHA1, RIPEMD160

next i will give a live typescript. please keep in mind that names
associated with keys are a private matter and that i did only include this
publicly available information for demonstrational purposes:

v0 /root; gpg --recvkey c7a5f402
gpg: requesting key C7A5F402 from horowitz.surfnet.nl ...
gpg: armor header: Version: 5.0
gpg: armor header: Comment: PGP Key Server 0.9.4+patch2
gpg: pub 1024D/C7A5F402 1999-01-27 Jennifer Ann Lowe <jenni.lowe@btinternet.com>
gpg: key C7A5F402: public key imported
[GNUPG:] IMPORTED FF91E62CC7A5F402 Jennifer Ann Lowe <jenni.lowe@btinternet.com>
gpg: key DB6068C6.1528: Good subkey binding
gpg: uid C7A5F402.1528: Good self-signature
gpg: uid C7A5F402.1528: Good self-signature
gpg: Total number processed: 1
gpg: imported: 1
[GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0
v0 /root; gpg --recv-key 1d9d804b
gpg: requesting key 1D9D804B from horowitz.surfnet.nl ...
gpg: armor header: Version: 5.0
gpg: armor header: Comment: PGP Key Server 0.9.4+patch2
gpg: pub 1024D/1D9D804B 1998-10-14 Ian Robert Lowe <ian@wintermute-ltd.com>
gpg: key 1D9D804B: public key imported
[GNUPG:] IMPORTED EDDE71441D9D804B Ian Robert Lowe <ian@wintermute-ltd.com>
gpg: key 7AC2EED6.1536: Good subkey binding
gpg: uid 1D9D804B.1536: Good self-signature
gpg: uid 1D9D804B.1536: Good self-signature
gpg: Total number processed: 1
gpg: imported: 1
[GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0
v0 /root;
Script done on Sun May 7 10:09:27 2000

--
ino-waiting@gmx.net
Re: importing keys: result? [ In reply to ]
> Eric Hanchrow (Sun 07.0500-11:17):

> >>>>> "ino-waiting" == ino-waiting <ino-waiting@gmx.net> writes:
>
> ino-waiting> [GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0
> ...
> ino-waiting> [GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0
>
> I'm just guessing, but those look to me like debugging messages. If

look, these are my .gnupg/options:

status-fd 2
logger-fd 2
verbose

and these are the settings that provide me with the cited kind of status
info. nothing wrong anywhere, but i can't unpack the sources at the moment
to determine what import_res means. i have a very small machine and can't
do everything that tckles my fancy, so to speak.

Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/wd0s1a 24607 21074 1565 93% /
/dev/wd0s1f 99406 89757 1697 98% /usr
/dev/wd0s1e 20511 16678 2193 88% /var
procfs 4 4 0 100% /proc

you see? please, anybody, just "ctags" and a quick look into the source...?

--
clemens (ino-waiting@gmx.net, pgp key available)
Re: importing keys: result? [ In reply to ]
ino-waiting@gmx.net writes:
> > Eric Hanchrow (Sun 07.0500-11:17):
>
> > >>>>> "ino-waiting" == ino-waiting <ino-waiting@gmx.net> writes:
> >
> > ino-waiting> [GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0
> > ...
> > ino-waiting> [GNUPG:] IMPORT_RES 1 0 1 0 0 0 0 0 0 0 0 0
> >
> > I'm just guessing, but those look to me like debugging messages. If

> you see? please, anybody, just "ctags" and a quick look into the source...?

g10/import.c. I don't claim to fully understand this, but it kinda
makes sense :)

| static void
| print_stats()
| {
| if( !opt.quiet ) {
| log_info(_("Total number processed: %lu\n"), stats.count );
| if( stats.no_user_id )
| log_info(_(" w/o user IDs: %lu\n"), stats.no_user_id );
| if( stats.imported || stats.imported_rsa ) {
| log_info(_(" imported: %lu"), stats.imported );
| if( stats.imported_rsa )
| fprintf(stderr, " (RSA: %lu)", stats.imported_rsa );
| putc('\n', stderr);
| }
| if( stats.unchanged )
| log_info(_(" unchanged: %lu\n"), stats.unchanged );
| if( stats.n_uids )
| log_info(_(" new user IDs: %lu\n"), stats.n_uids );
| if( stats.n_subk )
| log_info(_(" new subkeys: %lu\n"), stats.n_subk );
| if( stats.n_sigs )
| log_info(_(" new signatures: %lu\n"), stats.n_sigs );
| if( stats.n_revoc )
| log_info(_(" new key revocations: %lu\n"), stats.n_revoc );
| if( stats.secret_read )
| log_info(_(" secret keys read: %lu\n"), stats.secret_read );
| if( stats.secret_imported )
| log_info(_(" secret keys imported: %lu\n"), stats.secret_imported );
| if( stats.secret_dups )
| log_info(_(" secret keys unchanged: %lu\n"), stats.secret_dups );
| }
|
| if( is_status_enabled() ) {
| char buf[12*20];
| sprintf(buf, "%lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu %lu",
| stats.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);

buf now holds the "1 0 1 0 0 0 0 0 0 0 0 0" part of the string you're seeing.

| write_status_text( STATUS_IMPORT_RES, buf );

This prepends the "[GNUPG:] IMPORT_RES" part and prints the whole lot.

| }

HTH. HAND.