mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyedit.c (print_and_check_one_sig, show_key_and_fingerprint,
menu_addrevoker), keylist.c (list_keyblock_print, print_fingerprint): Show "T" or the trust depth for trust signatures, and add spaces to some strings to make room for it. * packet.h, parse-packet.c (dump_sig_subpkt, parse_one_sig_subpkt, parse_signature): Parse trust signature values. * tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record): Reserve a byte for the minimum ownertrust value (for use with trust signatures).
This commit is contained in:
parent
e4021a4c95
commit
809b8b031a
7 changed files with 56 additions and 11 deletions
|
@ -1197,6 +1197,7 @@ tdbio_read_record( ulong recnum, TRUSTREC *rec, int expected )
|
|||
rec->r.trust.depth = *p++;
|
||||
p += 2;
|
||||
rec->r.trust.validlist = buftoulong(p); p += 4;
|
||||
rec->r.trust.min_ownertrust = *p++;
|
||||
break;
|
||||
case RECTYPE_VALID:
|
||||
memcpy( rec->r.valid.namehash, p, 20); p+=20;
|
||||
|
@ -1275,6 +1276,7 @@ tdbio_write_record( TRUSTREC *rec )
|
|||
*p++ = rec->r.trust.depth;
|
||||
p += 2;
|
||||
ulongtobuf( p, rec->r.trust.validlist); p += 4;
|
||||
*p++ = rec->r.trust.min_ownertrust;
|
||||
break;
|
||||
|
||||
case RECTYPE_VALID:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue