From 773513c70b470f54651b77e81438d51adad6f01a Mon Sep 17 00:00:00 2001 From: David Shaw Date: Tue, 14 Jan 2003 18:13:22 +0000 Subject: * packet.h, parse-packet.c (setup_user_id), free-packet.c (free_user_id), keydb.h, keyid.c (namehash_from_uid): New function to rmd160-hash the contents of a user ID packet and cache it in the uid object. * keylist.c (list_keyblock_colon): Use namehash in field 8 of uids. Show dates for creation (selfsig date), and expiration in fields 6 and 7. * trustdb.c (get_validity, get_validity_counts, update_validity): Use new namehash function rather than hashing it locally. --- g10/parse-packet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/parse-packet.c') diff --git a/g10/parse-packet.c b/g10/parse-packet.c index ee7091ecc..d270ece7d 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -1877,6 +1877,7 @@ static void setup_user_id(PACKET *packet) packet->pkt.user_id->help_key_usage = 0; packet->pkt.user_id->help_key_expire = 0; packet->pkt.user_id->prefs = NULL; + packet->pkt.user_id->namehash = NULL; } static int -- cgit