From af6e3ef0459f47fadb6dce598ca255ca17aa314f Mon Sep 17 00:00:00 2001 From: David Shaw Date: Mon, 6 Jan 2003 22:56:08 +0000 Subject: * packet.h, tdbio.h, tdbio.c (tdbio_read_record, tdbio_write_record), trustdb.c (update_validity): Store temporary full & marginal counts in the trustdb. (clear_validity, get_validity_counts): Return and clear temp counts. (store_validation_status): Keep track of which keyids have been stored. (validate_one_keyblock, validate_key_list): Use per-uid copies of the full & marginal counts so they can be recalled for multiple levels. (validate_keys): Only use unused keys for each new round. (reset_unconnected_keys): Rename to reset_trust_records, and only skip specifically excluded records. --- g10/tdbio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'g10/tdbio.c') diff --git a/g10/tdbio.c b/g10/tdbio.c index 8c49fefb9..c7f04f441 100644 --- a/g10/tdbio.c +++ b/g10/tdbio.c @@ -1218,6 +1218,8 @@ tdbio_read_record( ulong recnum, TRUSTREC *rec, int expected ) memcpy( rec->r.valid.namehash, p, 20); p+=20; rec->r.valid.validity = *p++; rec->r.valid.next = buftoulong(p); p += 4; + rec->r.valid.full_count = *p++; + rec->r.valid.marginal_count = *p++; break; default: log_error( "%s: invalid record type %d at recnum %lu\n", @@ -1299,6 +1301,8 @@ tdbio_write_record( TRUSTREC *rec ) memcpy( p, rec->r.valid.namehash, 20); p += 20; *p++ = rec->r.valid.validity; ulongtobuf( p, rec->r.valid.next); p += 4; + *p++ = rec->r.valid.full_count; + *p++ = rec->r.valid.marginal_count; break; default: -- cgit v1.2.3