aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-01-30 16:49:28 +0000
committerDavid Shaw <[email protected]>2004-01-30 16:49:28 +0000
commit0030198cad5fa6524579d012015b0c950cb85ae6 (patch)
tree4cebb4bccc311ce5ff9df969d3ff038b7c66c36d /g10/mainproc.c
parent* getkey.c: Set MAX_PK_CACHE_ENTRIES and MAX_UID_CACHE_ENTRIES to (diff)
downloadgnupg-0030198cad5fa6524579d012015b0c950cb85ae6.tar.gz
gnupg-0030198cad5fa6524579d012015b0c950cb85ae6.zip
* g10.c (main, rm_group): Add --ungroup command to remove a particular
group. (add_group): When adding a group with the same name as an already existing group, merge the two groups. (list_config): Show an error message when listing a config item that doesn't exist. (main): Replace -z0 trick for no compression. * packet.h, keyedit.c (show_key_with_all_names_colon), keylist.c (list_keyblock_colon), mainproc.c (list_node, proc_tree): Minor cleanup to remove local_id, which is no longer used.
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r--g10/mainproc.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 4062ab95a..1f95d80b9 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -70,7 +70,6 @@ struct mainproc_context {
int have_data;
IOBUF iobuf; /* used to get the filename etc. */
int trustletter; /* temp usage in list_node */
- ulong local_id; /* ditto */
ulong symkeys;
struct kidlist_item *pkenc_list; /* list of encryption packets */
struct {
@@ -843,23 +842,18 @@ list_node( CTX c, KBNODE node )
if( opt.with_colons ) {
u32 keyid[2];
keyid_from_pk( pk, keyid );
- if( mainkey ) {
- c->local_id = pk->local_id;
- c->trustletter = opt.fast_list_mode?
+ if( mainkey )
+ c->trustletter = opt.fast_list_mode?
0 : get_validity_info( pk, NULL );
- }
printf("%s:", mainkey? "pub":"sub" );
if( c->trustletter )
putchar( c->trustletter );
- printf(":%u:%d:%08lX%08lX:%s:%s:",
+ printf(":%u:%d:%08lX%08lX:%s:%s::",
nbits_from_pk( pk ),
pk->pubkey_algo,
(ulong)keyid[0],(ulong)keyid[1],
colon_datestr_from_pk( pk ),
colon_strtime (pk->expiredate) );
- if( c->local_id )
- printf("%lu", c->local_id );
- putchar(':');
if( mainkey && !opt.fast_list_mode )
putchar( get_ownertrust_info (pk) );
putchar(':');
@@ -1658,7 +1652,6 @@ proc_tree( CTX c, KBNODE node )
if (!node)
return;
- c->local_id = 0;
c->trustletter = ' ';
if( node->pkt->pkttype == PKT_PUBLIC_KEY
|| node->pkt->pkttype == PKT_PUBLIC_SUBKEY ) {