aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.h
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-01-14 18:13:22 +0000
committerDavid Shaw <[email protected]>2003-01-14 18:13:22 +0000
commit773513c70b470f54651b77e81438d51adad6f01a (patch)
tree4391fdef87f0c721a35b928f23d711bfaecad52f /g10/keydb.h
parent* g10.c (add_group): Fixed group parsing to allow more than one (diff)
downloadgnupg-773513c70b470f54651b77e81438d51adad6f01a.tar.gz
gnupg-773513c70b470f54651b77e81438d51adad6f01a.zip
* 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.
Diffstat (limited to '')
-rw-r--r--g10/keydb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/keydb.h b/g10/keydb.h
index d43604a22..4afc0ed70 100644
--- a/g10/keydb.h
+++ b/g10/keydb.h
@@ -237,6 +237,7 @@ u32 keyid_from_sk( PKT_secret_key *sk, u32 *keyid );
u32 keyid_from_pk( PKT_public_key *pk, u32 *keyid );
u32 keyid_from_sig( PKT_signature *sig, u32 *keyid );
u32 keyid_from_fingerprint( const byte *fprint, size_t fprint_len, u32 *keyid );
+byte *namehash_from_uid(PKT_user_id *uid);
unsigned nbits_from_pk( PKT_public_key *pk );
unsigned nbits_from_sk( PKT_secret_key *sk );
const char *datestr_from_pk( PKT_public_key *pk );