From 29c7fb4053d207c163802642babbdbb6f885727e Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 11 Jul 2019 12:32:44 +0900 Subject: gpg: Fix getting User ID. * g10/getkey.c (user_id_db): Remove, as no use anymore. (get_user_id_string): Use cache_get_uid_bykid. (get_user_id_byfpr): Use cache_get_uid_byfpr. * g10/objcache.c (cache_get_uid_byfpr): New. * g10/objcache.h (cache_get_uid_byfpr): New. Fixes-commit: 64a5fd37271a3e454c0d59ac3500e1a1b232e4f7 Signed-off-by: NIIBE Yutaka --- g10/objcache.h | 1 + 1 file changed, 1 insertion(+) (limited to 'g10/objcache.h') diff --git a/g10/objcache.h b/g10/objcache.h index e92679168..edf129525 100644 --- a/g10/objcache.h +++ b/g10/objcache.h @@ -24,5 +24,6 @@ void objcache_dump_stats (void); void cache_put_keyblock (kbnode_t keyblock); char *cache_get_uid_bykid (u32 *keyid, unsigned int *r_length); +char *cache_get_uid_byfpr (const byte *fpr, size_t fprlen, size_t *r_length); #endif /*GNUPG_G10_OBJCACHE_H*/ -- cgit v1.2.3