1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* trustdb.h, trustdb.c (read_trust_options): New. Returns items from the

trustdb version record.

* keylist.c (public_key_list): Use it here for the new "tru" record.
This commit is contained in:
David Shaw 2003-07-21 16:51:59 +00:00
parent 9f839ac937
commit 828abe6483
4 changed files with 52 additions and 7 deletions

View file

@ -57,10 +57,31 @@ static FILE *attrib_fp=NULL;
void
public_key_list( STRLIST list )
{
if( !list )
list_all(0);
else
list_one( list, 0 );
if(opt.with_colons)
{
byte trust_model;
ulong created,nextcheck;
read_trust_options(&trust_model,&created,&nextcheck);
printf("tru:");
if(nextcheck && nextcheck <= make_timestamp())
printf("o");
if(trust_model!=0)
printf("t");
/* We don't show marginals, completes, or cert_depth since
they are not accurate in 1.2.x - they are not updated when
the trustdb is rebuilt with different options. */
printf(":%d:%lu:%lu\n",trust_model,created,nextcheck);
}
if( !list )
list_all(0);
else
list_one( list, 0 );
}
void