summaryrefslogtreecommitdiffstats
path: root/g10/objcache.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2019-07-11 05:32:44 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2019-07-11 05:32:44 +0200
commit29c7fb4053d207c163802642babbdbb6f885727e (patch)
treee755afaf29e3dae9de9d855d943a95c6839ff005 /g10/objcache.h
parentgpg: Improve import slowness. (diff)
downloadgnupg2-29c7fb4053d207c163802642babbdbb6f885727e.tar.xz
gnupg2-29c7fb4053d207c163802642babbdbb6f885727e.zip
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 <gniibe@fsij.org>
Diffstat (limited to 'g10/objcache.h')
-rw-r--r--g10/objcache.h1
1 files changed, 1 insertions, 0 deletions
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*/