mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* gpgv.c (check_trustdb_stale): Stub.
* trustdb.c (get_validity): Move the up-to-date check to check_trustdb_stale (new), so that it can be called before validity is checked. * keylist.c (list_keyblock_print): Disable the overall key validity display until it can be thought about more. Use check_trustdb_stale here to avoid putting the check warning in the middle of a listed key. * trustdb.c (init_trustdb): Only verify_own_keys() for those trust models that it applies to (i.e. classic and OpenPGP).
This commit is contained in:
parent
8062cb418a
commit
52100b459a
5 changed files with 71 additions and 40 deletions
|
@ -622,12 +622,18 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
|||
}
|
||||
else
|
||||
{
|
||||
#if 0
|
||||
int validity;
|
||||
#endif
|
||||
pk = node->pkt->pkt.public_key;
|
||||
sk = NULL;
|
||||
keyid_from_pk( pk, keyid );
|
||||
|
||||
#if 0
|
||||
validity=get_validity(pk,NULL);
|
||||
#endif
|
||||
|
||||
check_trustdb_stale();
|
||||
|
||||
printf("pub %4u%c/",
|
||||
nbits_from_pk(pk),pubkey_letter(pk->pubkey_algo));
|
||||
|
@ -644,8 +650,13 @@ list_keyblock_print ( KBNODE keyblock, int secret, int fpr, void *opaque )
|
|||
if(newformat && pk->expiredate)
|
||||
printf(_(" [expires: %s]"), expirestr_from_pk( pk ) );
|
||||
|
||||
#if 0
|
||||
/* I need to think about this some more. It's easy enough to
|
||||
include, but it looks sort of confusing in the
|
||||
listing... */
|
||||
if(opt.list_options&LIST_SHOW_VALIDITY)
|
||||
printf(" [%s]",trust_value_to_string(validity));
|
||||
#endif
|
||||
}
|
||||
|
||||
for( kbctx=NULL; (node=walk_kbnode( keyblock, &kbctx, 0)) ; ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue