diff options
| author | David Shaw <[email protected]> | 2003-05-31 04:06:06 +0000 |
|---|---|---|
| committer | David Shaw <[email protected]> | 2003-05-31 04:06:06 +0000 |
| commit | 9390fe676bbd619f37d147c86651f6f30a67fb9b (patch) | |
| tree | 3f70cf87ffdc4f4dba5493bd22a175de32f528d6 /g10/keylist.c | |
| parent | * gpgkeys_hkp.c, gpgkeys_ldap.c: #include <getopt.h> if it is available. (diff) | |
| download | gnupg-9390fe676bbd619f37d147c86651f6f30a67fb9b.tar.gz gnupg-9390fe676bbd619f37d147c86651f6f30a67fb9b.zip | |
* keylist.c (list_one): Don't show the keyring filename when in
--with-colons mode. Actually translate "Keyring" string.
* mainproc.c (proc_tree): We can't currently handle multiple signatures of
different classes or digests (we'd pretty much have to run a different
hash context for each), but if they are all the same, make an exception.
This is Debian bug #194292.
* sig-check.c (check_key_signature2): Make string translatable.
* packet.h, getkey.c (fixup_uidnode): Mark real primary uids differently
than assumed primaries.
* keyedit.c (no_primary_warning): Use the differently marked primaries
here in a new function to warn when an --edit-key command might rearrange
the self-sig dates enough to change which uid is primary. (menu_expire,
menu_set_preferences): Use no_primary_warning() here.
* Makefile.am: Use @DLLIBS@ for -ldl.
Diffstat (limited to 'g10/keylist.c')
| -rw-r--r-- | g10/keylist.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index f2c387b02..68d725753 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -230,16 +230,20 @@ list_all( int secret ) log_error ("keydb_get_keyblock failed: %s\n", g10_errstr(rc)); goto leave; } - resname = keydb_get_resource_name (hd); - if (lastresname != resname ) { - int i; + if(!opt.with_colons) + { + resname = keydb_get_resource_name (hd); + if (lastresname != resname ) + { + int i; - printf("%s\n", resname ); - for(i=strlen(resname); i; i-- ) - putchar('-'); - putchar('\n'); - lastresname = resname; - } + printf("%s\n", resname ); + for(i=strlen(resname); i; i-- ) + putchar('-'); + putchar('\n'); + lastresname = resname; + } + } merge_keys_and_selfsig( keyblock ); list_keyblock( keyblock, secret, opt.fingerprint, opt.check_sigs?&stats:NULL); @@ -265,7 +269,7 @@ list_one( STRLIST names, int secret ) KBNODE keyblock = NULL; GETKEY_CTX ctx; const char *resname; - char *keyring_str = N_("Keyring"); + char *keyring_str = _("Keyring"); int i; struct sig_stats stats; @@ -288,7 +292,7 @@ list_one( STRLIST names, int secret ) return; } do { - if (opt.show_keyring) { + if (opt.show_keyring && !opt.with_colons) { resname = keydb_get_resource_name (get_ctx_handle(ctx)); printf("%s: %s\n", keyring_str, resname); for(i = strlen(resname) + strlen(keyring_str) + 2; i; i-- ) @@ -308,7 +312,7 @@ list_one( STRLIST names, int secret ) return; } do { - if (opt.show_keyring) { + if (opt.show_keyring && !opt.with_colons) { resname = keydb_get_resource_name (get_ctx_handle(ctx)); printf("%s: %s\n", keyring_str, resname); for(i = strlen(resname) + strlen(keyring_str) + 2; i; i-- ) |
